|
Instead of putting this code in the Form.Load event, override the OnLoad method of your form and put it in there. You have much greater control over the form visibility that way.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Probably the cleanest hack: Set the application to start minimized. Also specify that your application doesn't show in the taskbar.
Alex Korchemniy
|
|
|
|
|
I use a RichTextBox to load a "*.txt" file. But I can't find out which font to use for the text to be display correctly!
(the text is written in Vietnamese, and the true font name is "VNI-Times", but how to know it programatically?)
And one more question: how can I read a Word file, and display it correctly? (can it displayed in RichTextBox control?)
please help me, thanks!
|
|
|
|
|
I'm not sure I understand what you mean here. A text file contains no information about any fonts or other formatting. A txt file only contains a bunch of characters so the font you choose to display the text with is completely up to you. There simply doesnt exist any information about a font to a text file.
|
|
|
|
|
Text files don't contain ANY font information, so there's no way top tell what font was used to write the text file with.
Word has an EXTREMELY complicated file using a multiple-stream file format. There is documentation on older versions of Word on the 'Net somewhere (I can't remember where through). Just Google for "Word File Format". Not everything is covered, so there will be parts of the file you cannot read, and therefore, cannot render correctly.
A RichTextBox CANNOT be used to display a Word file. The RTB control knows nothing of the Word file format.
You have a few options:
1) Use Word to load and display the file
2) Use a commerically available 3rd party component to load and display the file. (Don't know of any myself.)
3) Use Word to save the file in RTF format so it can be loaded into a RichTextBox. (Least desirable because some formatting is lost.)
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
involved in developing a windows service. after doing build solution, got the exe in the release folder of the windows service. using Installutil tool i installed the service too. and got the messgae "The transacted install has completed." in vs.net command prompt. but the problem is that am unable to see those services in Administrative tools in the services section.
kindly help me out.
|
|
|
|
|
did you restart the system ?
|
|
|
|
|
i rebooted the system but stil unable to see...........
|
|
|
|
|
We probably need more information to be able to help. Like what you did with the installers and such.
|
|
|
|
|
using service installer am able to create service and able to see in the services. but its not running saying "the services on the host started and stopped. some services automatically stopped beacuse of no work to do like alerts"
|
|
|
|
|
That error usually means that an exception occured in the service when the service tried to start. See if you can build the service and run it as a winforms application or a console application and try to find what is causing the error. Alternatively you could use exception handling and write all exceptions to a file or to the windows log. That way you might be able to find what is causing the service to stop when trying to start.
|
|
|
|
|
I encountered the same error once. My Windows Service was a accessing the network and I made it a local Service. If you're doing the same.. try making it a network service..
Regards
|
|
|
|
|
Could it be that you have .NET 1.0 AND 1.1 on the same machine?
I've experienced some weird effects when I had developed a .NET 1.1 (VS2003) windows service and calling "installutil" from the commandline picked the executable from .NET 1.0.
Try calling installutil with the full path (...\Microsoft.NET\Framework\v1.1.4322\...) and see if it helps.
Regards,
mav
|
|
|
|
|
I would like to know how & where to connect my C# application in order to get the latest & updated currency rates in my C# program.
Jassim Rahma
|
|
|
|
|
|
no..
I never tried any webservice..
can you please brief me on how it work and how to connect
with many thanks...
Jassim Rahma
|
|
|
|
|
Is it possible to add horizontal and vertical scrollbars to a datagrid?
If so, how?
|
|
|
|
|
Hi,
I created a DLL by VC++ and want to register and install it
onto WinXP. I would like to know what choices are available for
achieving it ?
1. Can I get it done by programming with C# ?
If yes, how ?
2. Can I get it done by .msi or .cab ?
If yes, how ?
And I want to know that the general practice for creating the
CLSID for the dll for deploying a software dll. Is the clsID generated
at the developer machine ? or generated
at the target machine ?
Thanks
|
|
|
|
|
Hi!
If you mean you want to register a COM object then the easiest way is to call DllRegisterServer in the DLL.
This can be achieved by calling "regsvr32 TheDll.dll" (using the Process class, for example).
Or, if you want to include the COM dll in a setup, you usually can set the "SelfRegister" flag for the dll to true. In this case, windows installer calls DllRegisterServer in the dll during install.
Regards,
mav
|
|
|
|
|
wat is VOIP ,wat is use ..
plz explain..with example
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
|
im trying to change a value in a popup dialog window.
the dialog window is not created by me.
so i need to find the dialog on the screen in run time (similer to the spy++)
then find on it - its textbox - and change the string in it.
does any body know how i can find a window in runtime ??
|
|
|
|
|
You are going to have to use native calls to what you want to do. Just google for FindWindow SetWindowText ...
Alex Korchemniy
|
|
|
|
|
Currently i am facing a problem of resetting focus on DateTimePicker control.
Problem: I enter to DateTimePicker control and change the MM value. Now i traverse to another control and came back to DateTimePicker control then it default set the focus on last activate section; in this case on MM where i wanted it to focus on HH.
My DateTimePicker format is DateTimePickerFormat.Custom and CustomeFormat is "HH:mm:ss".
|
|
|
|
|
Can any one suggest me any topics/sites for shell programming for drag and drop either in C# or vb.net. any samples for that
Nothing
|
|
|
|