|
So...let me get this straight.
You posted this EXACT same message about 1/2 an hour ago, got a response in something like 7 minutes, but posted again....why? Didn't like the response? Didn't understand the response? Did you READ the response?
|
|
|
|
|
how to convert the details listed in gridview to the excel sheet.
Thanks.
Prya
|
|
|
|
|
|
I am developing an application in VC dotnet.However, the resources used by this project for example menus, toolbars will also be used in other VC applications.Is there any way i can use these resources as a CSharp resource Dll, so then they can be imported to my vc application.
|
|
|
|
|
So... you have a CSharp DLL and this DLL has a resource file. Is that right ?
Then you can use this DLL in your VC++.NET Application. Just use "Reference | Add Reference" then select your CSharp DLL.
|
|
|
|
|
my project has a phone book.and it has a birthday date. how
i notify by birthday at system tray.plz help.
|
|
|
|
|
Use "NotifyIcon". Just give an icon and text in it.
|
|
|
|
|
thanks u.i want that it can auto notify by birthday.
|
|
|
|
|
Then you must have a checking function 1 time / day. If birthday == DateTime.Now, then show notifyIcon.
|
|
|
|
|
sorry, i forgate to tell u that, my program is not run all time.. so how it possible.help me.
|
|
|
|
|
If your program is not running, then it is impossible to show notify icon. Just like outlook. If your outlook not running, then you cannot get message whether you get a new message or not.
|
|
|
|
|
how can i run a process when windows is start.thank for help.
|
|
|
|
|
Use System.Diagnostics.Process.Start(string filename);
for example : System.Diagnostics.Process.Start(@"C:\WINNT\NOTEPAD.EXE");
|
|
|
|
|
sorry here windows means operating system. so how can i run my program when os start.thanks.
|
|
|
|
|
You must copy your application to this directory :
C:\Documents and Settings\All Users\Start Menu\Programs\Startup
That directory is for all users. If you want to specific user only, then you must change "All User" to other user, for example (MyAccount):
C:\Documents and Settings\MyAccount\Start Menu\Programs\Startup
|
|
|
|
|
can i use windows service for that.thankxs.
|
|
|
|
|
can i use windows service for that than how. thanks.
|
|
|
|
|
It depends on your application. If you application is a service, then you must install it in services, set to automatic, then if you start your windows, it will be started automatically.
But I don't know how to install a service. Sorry.
|
|
|
|
|
|
You could have a look at this article. Tray Icon[^]
Tarakeshwar
MCP, CCIE Q(R&S)
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes.
!sgub evah t'nseod margorP sihT ?sgub naem ayaddahW
|
|
|
|
|
I want to allow a user of my user control to overrule the default painting of my control through a Paint event handler. I was thinking along the lines of...
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
if (this.Paint != null)
base.OnPaint(e);<br />
else<br />
this.MyDefaultPainting(e);<br />
}
This doesn't work because the Paint event belongs to the base class and my derived class can't access it (as far as I know). I don't want to create another drawing event next to the Paint event and I don't want a construction that to forces an override of MyDefaultPainting either. More importantly, I don't want my default drawing done in the first Paint event handler in line that may be followed by the user's to prevent redundant painting.
So, is there a way to see whether or not an event handler is attached to an event that is defined in a base class?
|
|
|
|
|
if(base.Paint!=null) //should work
All the best,
Martin
|
|
|
|
|
Nope. Same problem as if (this.Paint != null)
Thanks for the reply, though.
|
|
|
|
|
Can you tell me more about your constilation of the UserControl?
Does the base UserControl also override the OnPaint?
....
|
|
|
|
|
No, it doesn't. My control is the first to override this method.
|
|
|
|