|
__DanC__ wrote: The NetworkStream is closed and disposes after use.
Try without closing the NetworkStream.
|
|
|
|
|
Just tried that but it didn't make any difference.
|
|
|
|
|
Client maybe closing the connection?
|
|
|
|
|
Hello,
I use hotkey for activate my form with the NotifyIcon.
It work but i still want to send the HotKey to the current activated application also.
I use '²' key on my french keyboard (only akey simultanous).
code:
protected override void WndProc(ref Message m){
base.WndProc(ref m);
if (m.Msg == WM_HOTKEY){
if (contextMenuStrip_fenetre.Visible)
{
this.ferme_fenetre();
}
else
{
this.affiche_fenetre();
}
}
}
public void RegisterGlobalHotKey(Keys hotkey, int modifiers)
{
String atomName = AppDomain.GetCurrentThreadId().ToString("X8");
GlobalAddAtom(atomName);
RegisterHotKey(this.Handle, hotKeyId, modifiers, (int)hotkey);
modified on Tuesday, July 1, 2008 2:35 PM
|
|
|
|
|
|
|
Thanks,
I have read totally articles, there are very interesting.
But, it doesn't match my feature.
( My hotkey is '²' )
exemple:
I am under a text editor, and i am writing a document.
and, I want to press the char '²'.
The Char isn't send to the text editor.
The Char is send to my owm app that catch it ( by hotkey system).
Conclusion:
so, I don't know activited/focused application before hotkey,so i can't get his handle, so i can't send it a message with the char.
I want when i press the char, I want that these 2 application recive the char.
How CAN I do
|
|
|
|
|
troiszyzy wrote: so, I don't know activited/focused application before hotkey,so i can't get his handle
[DllImport("user32.dll", SetLastError = true)]
internal static extern IntPtr GetForegroundWindow();
private void myMethod()
{
IntPtr h = GetForegroundWindow();
string str = h.ToString();
}
|
|
|
|
|
|
|
Thank you my friend.
Freshman
|
|
|
|
|
Hello Friends
I want to make a windows application that can check any website rank according to the keyword on any of the search engines like Google, Yahoo, and MSN.
Can any one help me how can i start..
i got a link that is of web application i tried it to convert into C# windows application but i am unable to do that..
http://www.codeproject.com/KB/aspnet/search_engine_rank_check.aspx
|
|
|
|
|
I have a buffer object which is basically just an array of Int32s - is there an easy/fast way to write the whole buffer at once to disk in C#? Or, for that matter, to a SQL Server Blob?
|
|
|
|
|
Oops, I meant an array of UInt32
|
|
|
|
|
|
hi . i write application in .net1.1 and use crystal report.
application working in windows xp profetional correct but don't work in windows xp embedded please help me
|
|
|
|
|
Hi,
m using user control contains a grid
when cellvaluechanges event rais i want to rais an event in the form that have this user control,
how can i do that, i tryed set the grid to public but it didnt solve the problem ,
So any body can help me with it
|
|
|
|
|
mrcooll wrote: i tryed set the grid to public but it didnt solve the problem ,
It's a bad idea. You have to declare an event in the user control, handle the cell changed event in the user control and fire the user controls event. Your form should handle the event fired by user control.
|
|
|
|
|
Hello,
I am working on win forms C#.net and i use AppUpdater to update my version. i Use ServerManifest check option for updating. i have a xml file on server to indicate version and folder to download. i have given all permission from IIS to my folder still i get error as
Auto update Failed: with network error the remote server returned an error :(403)Forbidden.
TO correct try rebooting or relaunching application.
Some suggestions please. thanks in advance
|
|
|
|
|
check do you have access on that server or not .
|
|
|
|
|
i have checked for access it gives me all rights
|
|
|
|
|
When creating .NET Assembly for COm Usage manualy, there are many steps:
1. compile the type library you have created through C# compiler
2. use the type library exporter utility.
3. you need to create a resource script for your type library using the
command IDR_TYPELIB1 typelib "YourLibrary.tlb"
4. you need to recompile the type library with the new resource file added
i coudn't understand step number 3. what is the necessity of creating the
resource script, and is it done automatically when using visual studio to
expose the assembly and do the job for you.
|
|
|
|
|
|
Im working in .net for last 2 years and I hope I have pretty good Knowledge in C# with ASP .Net technology(.Net Framework 2.0). So I have decided to prepare for Microsoft certifications(MCTS-Microsoft Certified Technology Specialist).
Can any one help for the following details
1)Details of MCTS
2)Model MCTS Quesiton
|
|
|
|
|
There is a MS page about the requirements and some resources here: http://www.microsoft.com/learning/mcp/mcts/winapps/default.mspx[^]
I used the MS self paced learning books, which are absolutely rubbish so I can't recommend them, but I passed no problem so they were obviously enough. I'm not sure the certs are that valuable any more, I probably wouldn't have done them if it wasn't for my company paying because they wanted the points in the MS partner program.
Simon
|
|
|
|