|
thank you.
I have an another question.
how I can rais an desired event(not only Click)?
|
|
|
|
|
There's no consistent way for doing this.
If you want to raise the event from a derived control, then usually the base class offers protected OnEvent... methods to call, but if you're trying to raise an event from a different class than you're probably out of luck.
You usually have to call a method/set a property of the object you want to fire the event in such a way that the event desired is fired.
For example, if you want the TextChanged event of a TextBox to fire you can call
myTextBox.Text = "Some new Text"; and the event gets fired.
If you already have an event handler in your class for the desired event, then you can simply call this method by yourself.
For example:
button1.Click += new EventHandler(this.button1_Click);
...
this.button1_Click(this, new EventArgs());
Regards,
mav
|
|
|
|
|
Does anyone know when the new release for SQL Server and the MSDN will be launched? I am thinking of buying an MSDN subscription, but I don't want to buy if I know if there is a new version coming soon.
Brendan
|
|
|
|
|
If you buy an MSDN Subscription you get all the new software available to you as soon as it comes out. That's why it is called a "Subscription".
|
|
|
|
|
Is there any way to add some controls on a frame windows in SDI/MDI applications (NOT toolbars) ?
|
|
|
|
|
Is there anyone that would have an example of how to change the wallpaper using the systemparametersinfo. How do you use it, what needs to be impoted and an example code would be nice.Thanks.
|
|
|
|
|
How can I display more than 10 projects in the Start Page? (in studio)
"For all of our languages, we cannot communicate" - Christy Moore, Natives
|
|
|
|
|
Change the number of Most Recently Used projects in the options dialog. The affects the list of projects in the file menu also.
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Thanks.
"For all of our languages, we cannot communicate" - Christy Moore, Natives
|
|
|
|
|
Hello @all,
in my Mobile Application (Windows Mobile2003 / CompactFramework / VB.NET) i programmaticly set the focus to a button.
But the Button dont't get the focus??
If i debug the code it works fine (if I can belive the debugger), but the button don't get the focus.
I really don't know what to do. Is anyone here who got the same problem??
Any help is welcome
Regards
Sascha
|
|
|
|
|
How would I go about using the .NET Framework to get and set the Master and Wave Volume of the user's computer? Can it be done with .NET, or is Direct Sound required to do this? Any leads in the right direction would be appreciated.
Happy Programming and may God Bless!
"Your coding practices might be buggy, but your code is always right."
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
You can P/Invoke waveOutSetVolume() to set the volume of a waveform audio output device.
[DllImport("winmm.dll")]
public static extern int waveOutSetVolume(IntPtr hwo, UInt32 dwVolume);
...
waveOutSetVolume(IntPtr.Zero, 0xFFFFFFFF);
... This sets both channels of master volume to maximum.
For special target devices you might have to use other WaveOut-functions, but they're all documented in the platform SDK.
Regards,
mav
|
|
|
|
|
Thanks for your reply.
Happy Programming and may God Bless!
"Your coding practices might be buggy, but your code is always right."
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
hi friends,
heard that MTS is not supported in .NET Framework. I guess .NET framework supports COM+ runtime services so how come MTS is not supported ??
tHanKs,
Hatim Ali.
|
|
|
|
|
Hi ali
I guess your are using incorrect version of MTS.If you are using 2000 Professional surely i will not support for COM+.For deploying COM+ components use 2003 server or Latest version of MTS(Non NT flavour)
Thanks
M.Sendilkumar
Senior Software Engineer
TVS Infotech
Chennai,TamilNadu,India.
98413 27002
|
|
|
|
|
M.Sendilkumarm wrote:
I guess your are using incorrect version of MTS.If you are using 2000 Professional surely i will not support for COM+.
Are you sure? Windows 2000 Professional does have support for COM+, and .NET components can be published in the COM+ catalog using the System.EnterpriseServices namespace.
COM+ is "COM + MTS". MTS was introduced in NT 4.0, and became part of the COM+ services in Windows 2000.
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
Windows 2000 Professional does have support for COM+, and .NET components can be published in the COM+ catalog using the System.EnterpriseServices namespace.
COM+ is "COM + MTS". MTS was introduced in NT 4.0, and became part of the COM+ services in Windows 2000 under the MS DTC (distributed transaction coordinator).
So, NT MTS (version 1.0) is not supported, but 2000 COM+ (DTC) is.
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
I want to start a project in VisualC++, with VS .NET 2003. Is there any way to make the app work on a machine that has .NET framework not installed ? If not is there a VC++ (or higher) with no .NET ?
|
|
|
|
|
Yes. Just make sure you select one of the unmanaged project types, from the ATL, MFC or Win32 categories. Obviously you can't use any .NET features.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
is there a default mail server reference string using .net. I have a little app that I send email on, but I want to ensure that it always obtains the correct mail server.
If there is not a default mail server, how would a person determine the mail server that is being used?
Thanks for the help
|
|
|
|
|
Any one know how to add and handle MouseEvents on Items in ListBox?
Pls tell me.
Thanks
|
|
|
|
|
Hi,
Since assembly compiles in IL, the binary reusability paradigm introduced by COM is no longer alive.
Is an assembly a healthier substitute of classic COM infrastructure ??? There also lies a performance trade-off in using assemblies as they are JUST in TIME compiled while COM components are pre-compiled.
What are the major benefits of using assemblies over COM ?? I've never encountered DLL HELL issues then why should i use assemblies ??
Thanks,
Regards,
Hatim Ali.
|
|
|
|
|
hatim_ali wrote:
I've never encountered DLL HELL issues then why should i use assemblies ??
Aren't you lucky.
hatim_ali wrote:
There also lies a performance trade-off in using assemblies as they are JUST in TIME compiled while COM components are pre-compiled.
If it concerns you that much why not just run the assemblies through ngen first and compile them in to a native format in advance.
hatim_ali wrote:
Is an assembly a healthier substitute of classic COM infrastructure ???
According to Don Box .NET was originally called COM3
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
Hi,
I want to find out whether some application is trying to access the network resource like internet (HTTP,SMTP POP,FTP etc etc. –any sort of network resource usage) or any other network resource like mapped drives,VPN etc.
I want to capture this .
Secondly I want to determine which application is trying to access that resource.
Specifically in .NET , is there such support for firewall packet sniffing in .NET
Regards
Tarun
Blue Pill or Red Pill........??
|
|
|
|
|
Hi,
.NET is not a jack of all trades You will need to implement it yourself using WinSock layered providers, which is not an easy thing to implement
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|