they were disabled...
Druuler
Posts
-
Which is faster? -
Which is faster?both compiled down to the same code for me. :)
-
Splitter control, resize immediately?thanks for your reply, but i think ive fixed it. :) the solution is pretty ugly but it works, all i did was overide OnSplitterMoving and set the Splitter.SplitPostion = sevent.X or sevent.Y and then just invalidate the splitter. also invalidate OnMouseDown and OnMouseUp to get rid of the hatched line which showed up until the mouse was moved.
-
Splitter control, resize immediately?in windows vista and windows 7 the splitter control used in explorer windows doesnt draw the "hatched line" when it moves instead the controls (listview and treeview) automatically resizes immediately, i want the splitter control in .net to behave like that but cant really figure out how? heres a pic of the hatched line: http://sv.tinypic.com/view.php?pic=2qa8izk&s=6[^]
-
windows 7 jumplist window border style?http://i.msdn.microsoft.com/dynimg/IC295013.png[^] i dont know if this is the right place to ask this but i just want to know if the small popup window on picture above is custom window or if there is an api or something so we can use windows with that kind of border?
-
extract each character from image with text?how can i split this image up in to smaller images of each character in the image? http://kanal5.se/k5_image/text?c=0x000000&sz=100&t=codeproject&.png[^]
-
gdiplus jpeg encodng performance?if i have placed this post in wrong board then please feel free to move it. so..can anyone tell me why gdiplus is more then twice as slow in encoding jpeg images on windows xp compared to windows 7? i need a fast jpeg encoding and gdiplus is fine as long as i use windows 7 but on windows xp its to slow for what i need, so currently im using Blackfin Fast JPEG Encoding on windows xp but its still around 40% slower then gdi+ on windows 7. Encoding 100 images of size 1980 x 1080 on my machine: GDI+ windows 7: 3000 to 3500 millseconds (extremly fast!) GDI+ windows XP: ~8000 millisecs (too slow) Blackfin Fast JPEG: around 5000 ms on any OS any suggestions how to improve the speed of gdi+ on XP?
-
Translating pixel postion?I did a quick test and it wasnt able to get the exact pixel but it works much much better then my own formula,atleast im little cloesr to my goal now :) Thanks for your help :cool:
-
Translating pixel postion?I get what you are saying, but i thought we could solve this by doing some math, which i completely suck at :^) I have seen some vnc client do something similar to this, it has an option to autoscale/stretch the client view to any size but yet it can translate the current mouse location to original screen coordinates :confused:
-
Translating pixel postion?So ive got a bitmap image of say size 1000*500 and use it as the background image of the form with layout property set to Stretch, now if user clicks on the form i want to be able to get the pixel postion of original image and not the x/y of the form beacuse that image is stretched? is this even possible?:confused:
-
Encryption with tcpclient and tcplistner?Hi! im new to encryption and would appreciatelittle help :) currently im using CryptoStream(RijandelManaged) with NetworkStream and it seems to work except that i dont get all the data right away. this is my current code:
RijndaelManaged r = new RijndaelManaged();
cryptoReadStream = new CryptoStream(netStream, r.CreateDecryptor(key, iv), CryptoStreamMode.Read);byte[] buffer= new byte[10000];
cryptoReadStream.Read(buffer,0, buffer.Length);the problem is: 1.cryptoStream.Read blocks until 10000 bytes have been recived, unlike NetworkStream.Read which returns when theres is nothing more to read, this is a problem beacuse if the server only writes 10 bytes then ill have to wait forever before i can diplay the results.
-
socket not closing even after the listening app has terminated?!the problem was that all processes was inherting sockets handle :sigh: Anyhow i thought i might post the solution if any1 else have same problem, simply use SetHandleInformation [^]thru pinvoke!
-
C# Problems with background worker - progress barbut isnt the purpose of backgroundworker that u dont need to explicitly invoke the controls? if i call worker.ReportProgress i dont need to invoke the controls and they are updated without cross threading exceptions! i might have missed but idont see you calling worker.ReportProgress from your worker_DoWork method?
modified on Tuesday, August 4, 2009 11:37 AM
-
socket not closing even after the listening app has terminated?!After little more investigation with process hacker (Process Hacker/[^]) i see that the apps started from the main listening app and there child process gets the handle to the named pipes and somthing called \device\afd that main app has created, if i close those handles then the port is released, if i dont then the main app actuallty keeps running and listening on that port according to process hacker but doenst respond to incoming connections. :wtf: so the main app, after its terminated doenst show upp in process list/taskmanager or netstat tool but shows up as UnknownpProcess in process hackers "network connections" listening on the port??:confused: How can i fix this? This is how the app currently works... My App --> starts app2 and creates pipes. Now if my app gets terminated then app 2 is also terminated, but i have no control of which apps app2 might start and they are not terminated once app2 gets terminated so they keeps the handle to named pipes and (mainly)device\afd and keeps the port busy?
-
socket not closing even after the listening app has terminated?!hi! i have a very weird problem: i have an app which listens for connections, and once a client connects it starts anothter app, now if the main listening app terminates but app2 is still running then the port isnt released and when the main app starts up again and try to bind to the port it fails (port already in use). the port is first released when app2 or all of its child processes has terminated, but these processes has nothing to with the main app, so why isnt port released after the main app has been terminated?
-
ListView SelectedIndexChanged exceptionBefore doing anything else check the if the SelectedItems.Count property is > 0.
-
cmd.exe standardinput problem, please help?!?!hmm...But cmd exits when i close the input stream and even if it didnt exit how would i go about write to the input stream again? Could you give an code example maybe?
-
cmd.exe standardinput problem, please help?!?!Hi thanks for ur answer...but im using asynchronous beginreadline and need to keep cmd alive?
-
cmd.exe standardinput problem, please help?!?!I have very weird problem with the windows command prompts standard input. When i write regular dos command like cd or dir to the input stream everything goes as expected BUT when i want to execute a GUI app (say notepad) the window doesnt show up until i write some empty lines to the stream?:confused:
cmd.StandardInput.WriteLine("notepad");
cmd.StandardInput.Flush();
//notepad windows hanst shown up and will not show up untill
//i write empty lines/thrash to the input strem, btu the process notepad.exe is started with memory on ~1300 kbcmd.StandardInput.WriteLine("blaaaaa");// notepad.exe's mem goes to 2000+ kb
cmd.StandardInput.WriteLine("blaaaaa");// notepad.exe's mem goes to 3000+ kb
cmd.StandardInput.WriteLine("blaaaaa");// and finally notepads window shows up//allright, the notepad window is up now after i wrote those 3 lines but why is this happning?
//if i want to start visualstudio form cmd by writing to its input stream i have to write 5+ lines to //the streamPlease help..this is so weird, even my friend google couldnt help me :omg: