|
Subclass DataGrid and override the PreProcessMessage method
public override bool PreProcessMessage(ref Message msg)
{
Keys keyCode = (Keys)(int) msg.WParam & Keys.KeyCode;
switch (keyCode)
{
case Keys.Enter:
....
}
}
Live Life King Size
Alomgir Miah
|
|
|
|
|
Hi,
I am having a list url in a text file.These url are utf8 encoded.
eg. http%3A%2F%2Fwww.abc.com%2Findex.htm
I need to parse these and convert it normal string like
http://www.abc.com/index.htm
Is there any way for doing this ....
Thanks in advance
|
|
|
|
|
That's not UTF-8. That's URL hex encoding. Use the System.Uri class to convert to a canonical representation.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
No, they are not utf8 encoded. They are url encoded.
Use HttpServerUtility.UrlDecode() to decode them.
---
b { font-weight: normal; }
|
|
|
|
|
Is there any other way of doing this ..
To use HttpServerUtility one needs Server object...
|
|
|
|
|
You can also use HttpUtility.UrlDecode().
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
I’m currently developing a Client/Server application based on Socket, on which the client runs a UI and submit some request which will be send to the server then the client exit. Then the server manipulates these data on his side.
1. I’m trying to force a simple dialog to run at the client machine, on which the user provide an answer from that dialog (Yes/ No) and click O.K.
2. The server then receives this feedback and does something.
I need some help on this issue, I’ll appreciate it. Thanks
Kind Regards,
Mohammad
|
|
|
|
|
mohammad929 wrote:
I need some help on this issue, I’ll appreciate it. Thanks
What exactly is the help you need?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I want to render simple HTML on a form without the overhead webbrowser control.
I'd like to render IMG, H1, TABLE tags - and ideally INPUT tags too.
I appreciate that implementing a full web browser is no simple task, but this is much simpler.
Anyone come across any suitable code (even in another language)?
Thanks
Robin
|
|
|
|
|
May this help
XHTMLStatic [^]
And there are another one at code project but i dont remember its name its some thing like draw html
MCAD
|
|
|
|
|
|
|
Hi,
i have a handle some aplication... how can i simulate click on some coordinate or keyboard typing?
Greetings
|
|
|
|
|
Hello...
To simulate a click or keyboard typing you can use SendMessage to send a spefied message to the window...
|
|
|
|
|
Hi,
i have two images :
- image A
- image B - is small part image B
how to find location(x,y) image B in image A?
Greetings
|
|
|
|
|
Hi,
In a relational database, I would to like to know the performance difference between of using a string and an integer as the primary key field for the tabl;e. Will a column field of integer be indexed faster than a string column field ?
Thanks
|
|
|
|
|
|
Hi!
When I try to send udp-packets broadcasted in my local LAN by this code:
<br />
Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);<br />
s.SendTo(Encoding.ASCII.GetBytes("Some text to send"), new IPEndPoint(IPAddress.Parse("192.168.0.255"), 11000));<br />
And do the receive with this:
<br />
client = new UdpClient(11000);<br />
IPEndPoint EP = new IPEndPoint(IPAddress.Any, 11000);<br />
byte[] buffer = client.Receive(ref EP);<br />
I always get two messages received! My explanation for this is, that udp is connectionless and by broadcasting it it's returned by some other device - I don't know.. Can you explain it to me and give a tip how to avoid it?
|
|
|
|
|
Hi,
Is it just me or does the ListBox class in .net 2.0 exhibit some odd behaviour?
For instance, when I use the mouse wheel to scroll it seems to do some weird redraw-from-the-top update method.
Also, it flickers like crazy when resizing. I've tried enabling the double buffering mode to no avail. I have overridden it to draw icons next to the text which works fine, but it seems to clear the entire background, not just the dirty area, every time.
As a sanity check I then placed a stock ListBox control on a new form to see if it works in its standard mode but it exhibited the same symptoms. The odd thing is it doesn't do this with .net 1.1.
Does anyone else suffer from this or know of a solution?
Regards,
Shane
Shane Stevens
Technical Director
Blue Tongue Entertainment
www.bluetongue.com
|
|
|
|
|
hi
im using MS access database to keep my data and using visual studio .net 2003 to design forms...
i want to know how to retrieve data from access to my forms in visual studio .net.. what codes must i write in visual studio .net or must i use some access wizard to do what i want?
thanks!
|
|
|
|
|
see System.Data.Oledb Namespace[^]
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
ok, now i want to check with you>
where do i write my codes to connect to my database from within my app? do i write the codes in a new form or the form i've been using all along to create my app?
thanks!
|
|
|
|
|
nidhelp wrote:
ok, now i want to check with you>
where do i write my codes to connect to my database from within my app? do i write the codes in a new form or the form i've been using all along to create my app?
if you have to get many data when you start your appliactio use splash screen to connect and get the data
and when the you got the data show the form that deal with data
But general rule try to separate the code that access and manipulate the database and put it in dll and call it from your win forms
MCAD
|
|
|
|
|
Its more of a preference for the programmer but security-wise and readability i agree it has to be put in a different form. I usualy do my queries in a different form, pass it to another dll for sorting, editing, etc then finally pass it to my win app or web app.
Hope that helps!
Kampai!!!
|
|
|
|
|
Hi, examine the following code.. for my puspose it works fine..
but, -How do I check 'myType' realy exists ???
public static object Construct(Type myType)
{
return System.Activator.CreateInstance(myType);
}
|
|
|
|