|
Hi, Thanks J4amiec
I dont want to set the new font to the Whole textbox
but it should be reflected only for the text that will be written after changing the font
If i set this to the Font property then the text which was written
earlier with someother font also changes
please if anymore idea
Thanks
Pramod
|
|
|
|
|
Yup you are right, I tried a rich text box and a button, with this code on the button
private void button1_Click(object sender, System.EventArgs e)
{
this.richTextBox1.SelectionFont = new Font(this.richTextBox1.Font.FontFamily,this.richTextBox1.SelectionFont.Size+10);
}
And it worked fine... each time i clicked the button, further typing in the box was bigger. Have you tried running through your code with the debugger to see that everything is being set correctly?
|
|
|
|
|
Ya i have debugged it many times
but still cannot find any error in the code
this gives problem only Japanese O.S
it works fine on Windows Proffessional 2K
Thanks
Pramod
|
|
|
|
|
Hi all,
Can anybody help me how to tile a texture in managed directx?
The texture i draw on my surface is stretched, and it does not look very nice?
What are the device settings needed to tile/wrap a texture on a surface??
Thanx all
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
I think you get more help over there
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi everyone,
I did a windows application using c#. If I want to distribute this as trial version software that is after certain period the application should not work, is there any tools or features to do this in c#???
Otherwise how can I do it? Can you tell me? Thanks. Bye
|
|
|
|
|
Hi,
you can do one thing
Check the current system date when the application is loaded and
execute it further only if the date is less than the required date
else exit the application by giving the error message
Regards,
Pramod
|
|
|
|
|
Hi,
thanks for your reply Yadav. Yes. I can do it. But what I did is, actually its a screen saver application. So I changed the application'e exe file extension from .exe to .scr and placed that .scr file into system32 folder when deployment process. So how can I control this .scr application?
|
|
|
|
|
Hi,
You have changed the extension from .exe to .scr but
whenever the executable is invoked it will execute in the same way so you can
do as i said earlier and that will work. it doesn't matters if the file is .exe or .scr
Regards,
Pramod
|
|
|
|
|
ok. But how Windows able to understand it as a screen saver file if its extension is exe file?
|
|
|
|
|
Basically the screensaver executes that means it is an exe and you dont need to worry for that windows will handle it
Regards
Pramod
|
|
|
|
|
Hi there,
Basically i'm a noob with C# and web service, and i'm working on my project of building a C# web service to connect between a supplier system and a client system.
For example, a making order task would involve the client system sending that order data to the web service and from there it will relay the information towards the supplier system. I know basically how to send data and receive data from the web service by button clicking event. So the first part shouldn't be a problem. But how do i get it to relay data from the web service to the other system?
And the supplier system is built using c# and sql server, while the client systems which consist of a java with mysql system and another vb.net with ms access. I plan to use the basic template wdsl that is provided by the .net framework, is there going to be any problem connecting to the java system?
Thanks in advance~
"Better live as a horse than the goose."
|
|
|
|
|
How can we validate Textbox and other controls in Windows forms applications?
Also plz suggest the various validation expressions. Any relevant topic for validation in Windows Forms would be a great help................
Thanks,
Sandeep
+919891027854
|
|
|
|
|
Try reading this one[^]
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
I want to read data from foxpro 2.6, then write data to sql server or oracle, but i can't connect to foxpro 2.6 by odbc
you can help me.
thank you very much!
|
|
|
|
|
hi
my html mail is in correct format at mailroot queue but when send to receipent it is in text format
iam sending mail as html format..after sending in the mailroot queue it is in html format,
but,after the delevering to reeipent it is displaying as text
what is the problem
can any one help.
byeeee
regrds
sree
|
|
|
|
|
Is their anyway to do this besides doing an "out" parameter of type T?
public static T Deserialize <T> (IXPathNavigable xml)<br />
{<br />
if (xml == null)<br />
throw new ArgumentNullException("xml");<br />
<br />
XPathNavigator navigator = xml.CreateNavigator();<br />
navigator.MoveToRoot();<br />
<br />
XmlSerializer xmlSerializer = new XmlSerializer(typeof(T));
<br />
return (T)xmlSerializer.Deserialize(navigator.ReadSubtree());<br />
}
it compiles, but code analysis says i'm wrong.
|
|
|
|
|
The more I see of generics the less I like them!
As I understand it - typeof(T) == typeof(object) here for all T!
Even an out parameter wouldn't be ideal as it could be null - you would want a ref so that GetType() is gauranteed OK.
Alternatively just create a temporary T and call GetType on it - there must be a no-parameter ctor or XmlSerializer cannot deserialize anyway so you can put a new() constraint on T.
Note that you should make xmlSerializer static and create it in a static initializer because creation of a serializer is very time consuming.
|
|
|
|
|
Thx for the help...real good advice.
I don't understand why i wanted to get rid of typeof call anway...was misintrupruting code-analysis warning i think. I found i could just do "default(T).GetType()" in it's place...but this is for bad peformance i think cause it has to initialize zzz...typeof is just fine for gettin the type of a generic.
|
|
|
|
|
Hi everybody,
I am new at this forum. I like to ask if anyone knows how to programatically shutdowns, reset pc? I am using Windows XP. Also, controlling the audio on /off and its volume. Also, Is there api for controling the monitor screen brightness? What is the api for monitoring a specific port (USB)? The TcpCleint and TcpListner is not appraoch applicable. What are the api used to control this functionalities in VB.net or C#?
denpsia
-- modified at 0:36 Friday 9th December, 2005
|
|
|
|
|
Hi! try this[^] for computer shutdown
Aim small, miss small...
|
|
|
|
|
Thanks for reply Tatchung, I have seen similar topic where you use System.Diagnostics.Process Kill Method. That is not the approach I needed, I like a direct approach using api dll.
denpsia
|
|
|
|
|
ExitWindowsEx[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
denpsia wrote: Also, controlling the audio on /off and its volume.
See the Windows Multi Media API. I think you're looking for waveoutSetVolume[^]. Google for examples[^].
denpsia wrote: Is there api for controling the monitor screen brightness?
No.
denpsia wrote: What is the api for monitoring a specific port (USB)?
That is device dependant. There is no one port, or example code, that works for all devices. You would have to consult the developer documentation on the device your talking about.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave for link to the docs, this is for CE, is it applicable in XP? I test it. You specify modem specific to device, there is no commonality between them?
denpsia
|
|
|
|