You can use Application.Run more then once in an Application. Try creating new splash form, pass it to Appication.Run method then run your main form (Application.Run(new MainForm());) When you need to close the splash screen just close the splashForm (splashForm.BeginInvoke(new MethodInvoker(splashForm.Close));)
lesnikowski
Posts
-
UI Thread in C# -
Thread questionAll threads will see the same struct.
-
Right click?that was of course association code. You can also use .reg files during installation. Look also at this methods: CWinApp::EnableShellOpen CWinApp::ParseCommandLine CWinApp::ProcessShellCommand
-
Right click?MFC code:
CRegKey *r=new CRegKey(HKEY_CLASSES_ROOT); r->RecurseDeleteKey(".xyz"); r->RecurseDeleteKey("xyzfile"); r->Create(HKEY_CLASSES_ROOT,".xyz"); r->SetStringValue("","xyzfile"); r->Close(); r->Create(HKEY_CLASSES_ROOT,"xyzfile"); r->SetStringValue("","file description"); r->Close(); r->Create(HKEY_CLASSES_ROOT,"xyzfile\\shell\\open\\command"); r->SetStringValue("","c:\\YourApplication.exe \"%1\""); r->Close(); r->Create(HKEY_CLASSES_ROOT,"xyzfile\\DefaultIcon"); r->SetStringValue("","c:\\YourApplication.ico"); r->Close(); delete r;
-
Process Information -
using unsafe code in c#CppClass::Foo(System::String *s) { const Char __pin* name = PtrToStringChars(s); SomeSystemFunctionW(name) //W=WIDE (UnicodeVersion) } That way you'll get nice interface in c# .
-
Named pipes over different processesbut what kind of a value does dwOpenMode have? Access specified when a pipe is opened (CreateFile) must be compatible with the access specified in the dwOpenMode (CreateNamedPipe). if PIPE_ACCESS_OUTBOUND or PIPE_ACCESS_INBOUND you must call CreateFile with GENERIC_READ, GENERIC_WRITE accordingly as dwDesiredAccess param.
-
Newline in Textboxtry using "firstline\r\nsecondline";.