|
just create worker threads to do the background work... that way you leave the ui thread free to deal with the ui. just do a search on worker threads on google or here at codeproject.
|
|
|
|
|
Thank you so much, gurus
I haven't given it a shot, but I think that will solve the problem.
|
|
|
|
|
|
does anyone know how can i display a balloon tooltip in C# ?
thanx
shakooosh
|
|
|
|
|
|
A better example - had you searched for "balloon tooltip" on CodeProject - can be found in the article Adding Balloon Windows to a .NET Application[^]. There are other articles that uses IExtenderProvider s to provide balloon tooltips, too. Just search this site.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I have been working on a custom tab control and at this poitn everything works and acts like it should EXCEPT for when you first open the designer for my tabcontrol... the designer doesnt see any of the tabs/pages that are assigned to it in the code. In order for it to see them i have to go and add another tabpage to the tabcollection, when this is done it adds the collection of pages to the tabcontrol. After thats done the designer works like it should..... its only on init of the designer that this problems happens. is there an easy way to these items at init? how does one make the init find the associated controls to the tabpage?
i have looked at Magic tabcontrol version 1.7 and pallaControls but this is just a rip of the Magic code (with a few minor changes).
perhaps just a good tutorial on creating custom ParentControlDesigner.
ps. if you would like to see some code or just more info then let me know
thanks for any info.
mb
|
|
|
|
|
perhaps its the problem is that i can not fire events from my custom TabButton control.... after i add a tabpage to my collection i then get focus on those tabpages and then can click on the tabbuttons and everything is just great.... so maybe its an issue about not setting the correct focus?
anyone?
thanks
mb
|
|
|
|
|
nevermind.... i fig it out. i just had to reinit everything from with in the designer. all fixed and working well.
|
|
|
|
|
Hello,
Here is my problem:
I made a custom button, derived from Button. Now, in my custom button I have a MyInfo struct.
I also have two forms, call them Form1 and Form2.
Form1 creates a custom button, myButton. What I want to do is pass myButtons MyInfo struct by reference to Form2 from Form1. I tried to do it like so:
<br />
f2.setInfo(ref myButton.myInfo);<br />
where myInfo is a MyInfo struct.
However, when I compile, I get something like this error:
Cannot pass 'MyButton.myInfo' as ref or out, because 'MyButton.myInfo' is a marshal-by-reference class
How can I pass my struct by reference to this other form?
Thanx for the help
-Flack
|
|
|
|
|
Since System.Windows.Forms.Button inherits from MarshalByRefObject, instances of System.Windows.Forms.Button could be used as cross-process proxies. No field of a potential proxy can be allowed to be passed by reference.
There's a fairly good treatment of it at here[^]
Why do you want to pass the structure by reference?
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
you should probably post some more code for people to be able to help you such as your definition of MyInfo struct and your setInfo function
|
|
|
|
|
Hi,
I have a C# windows app and I need to create a desktop short cut and a IE favorites short cut. Can anyone tell me how to programatically do this? I'd like to do this when my application first runs.
Thanks
|
|
|
|
|
|
I am running Visual Studio .NET 2002. When I create a user control via a project and add a reference to its DLL in a test project it does not appear in the toolbox. How do place my control in the toolbox?
Gary A. Hyslop
|
|
|
|
|
Right-click on the Toolbox and select Customize. Browse to your assembly and check the controls you want to add to the toolbox. There are other ways you can do this using the designer interfaces. See the System.ComponentModel namespace for more information (as well as System.ComponentModel.Design ).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
How do you do it? Write click on your ToolBox and select Customize ToolBox , then select your dll from .NET Component tab.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
I have written a consle application and wabt to exit the program if the user select the exit program option. Can u please write the code and the namespace details as well.
|
|
|
|
|
See the Environment.Exit method documentation in the .NET Framework SDK.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
It ends the console window as well, I only want to exit the program.
|
|
|
|
|
No, it unloads the CLR and quits the application. If you start the command prompt and then run your application, you'll see it doesn't close the command prompt. If you simply execute your console application, a command prompt is started. When your application exits, the command prompt exits as well because it was only started for your console application.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
If the program is launched by double-clicking on the .EXE, the Console window will close when the app closes. You can't stop it.
But, if you double click on a shortcut icon that has a target line like this:
cmd /K "C:\full path to.exe"
then the Console will stay open after the user exists the program.
RageInTheMachine9532
|
|
|
|
|
Probably you could try
Process myProcess = Process.GetCurrentProcess() ;
myProcess.Kill();
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
The console that is launched with the process will also be killed. He wants to the console to stay open when the app is killed off. This has to be done by launching two seperate processes. The command shell first, then the command shell has to launch the app for this effect to be seen.
RageInTheMachine9532
|
|
|
|
|
Hi
I have a COM+ .NET components that runs as a Server application. I have to configure it for ExceptionManagement blocks, but I don't how to do it (not the ExceptionManagement block, but the location of the configuration file).
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|