|
Acctually I also dont know the answer perfactly coz I didnt realize the problem ,but I can suggest you one solution ,try that one and inform me if that works or not ,ok?
You should convert your string in to UTF8 encoding first and than send it,or you can use StringBuilder with UTF8 ,Which is there in System.Text namespace, try that out and let me know ok?
<marquee>nishu
<marquee>nishu
|
|
|
|
|
lo,
the text i want to encode comes form textbox.text, so this is a string
if i use encoding.utf8.getbyte(textbox.text) i get an error because it
is'nt a char[] char.
do you know how to solve this or am i going the wrong way here?
grz
|
|
|
|
|
lo,
found the solution:
public Form1()
{
InitializeComponent();
port.Encoding = System.Text.Encoding.UTF8;
}
in case you'll ever need it :p
thx alot
grz
|
|
|
|
|
i have application program taht will use
username and password
i ask about what is the best coding algorithm
to pasword and where i can find it
Palestine
|
|
|
|
|
Hi,
You can try using MD5. There is an encoder built in VS2005. However you must know that MD5 cannot be decoded so if you want to test the input password with a stored one you should convert the input password to MD5 and then compare it with the stored password. Search MSDN for MD5.
Hope it helps.
Do your best to be the best
|
|
|
|
|
Hello
I have a C# application that uses several Libraries (Crystal ...). The application always runs well.
Since a few days I focus the problem, that I can start my application only with the debugger (the Debug and the Release version).
If I start the *.exe directly, the application crashes ... Most times an 'Out Of Memory' exception occurs.
I added some debugging output and I see, that I enter the Main() but then it crashes ...
The application also crashes, if I take an old (former running) *.exe file.
Do you have any hint how I could handle it?
Thanks and best regards,
Martin
|
|
|
|
|
Hello!
I have an application that uses a tabcontrol with a couple of tabpages. However, I wonder if anyone knows if there is a way to make one of the tabs appear without clicking it?
Best regards,
Hampus
|
|
|
|
|
Set either TabControl.SelectedIndex or TabControl.SelectedTab property.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Thank you for that answer. SelectedTab really solved my problem.
/Hampus
|
|
|
|
|
Yes. Use a timer to toggle between tabs, and on elapsed duration, send a click event to the tabcontrol with the required paramaters, simulating as if the user clicked. This will make teh tab control change the active tab, based on which tab index was passed in the event handler call
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
Hi,
I am writing one applicaion. When user clicks the close button the application minimizes to system tray. I need to add some animation like adding a tail to applicaon, or one like added in Windows Live Messanger. How can I achive this?
Any idead is welcome !
Regards,
Hemant Kulkarni.
|
|
|
|
|
|
I have MyControl (Grid), and i override IsInputKey method in it.
protected override bool IsInputKey(Keys keyData)<br />
{<br />
bool bIsInputKey = true;<br />
<br />
switch (keyData)<br />
{<br />
case Keys.Left:<br />
break;<br />
case Keys.Right:<br />
break;<br />
case Keys.Down:<br />
break;<br />
case Keys.Up:<br />
break;<br />
default:<br />
bIsInputKey = base.IsInputKey(keyData);<br />
break;<br />
}<br />
<br />
return bIsInputKey;<br />
}
It work ok, but if i place MyControl on other control(TabControl for example), that don't respond to keys.
What i must do?
Thank's to all answers asap!
|
|
|
|
|
Hi,
Is there any way to convert a windows application to web applicatin.
i.e. I have a windows appliation, I want to run it in IE.
I have heard that using ActivX it is possible.
Best wishes
|
|
|
|
|
Check out this link
http://www.c-sharpcorner.com/UploadFile/asprabahar/1WindowsonWeb05302006023206AM/1WindowsonWeb.aspx?ArticleID=2f5df473-5b2d-4c6b-abc8-8a5ef7ef14c8
Navi
|
|
|
|
|
Could any one tell me how to create richtextbox control with text inside.
Kumar Gaurav
|
|
|
|
|
RichTextBox richTextBox1 = new RichTextBox();
richTextBox1.Text = "Text inside";
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Does anyone know how you select a pixel from a BitmapImage instance, say the one at 0.0, and set that as the transparent color for a bitmap.
|
|
|
|
|
Have a look at the Bitblt in Win32 APIs.
thats one way fo doing this, though through Interop in .NET
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
Thanks for that.
With Windows Forms etc it was easy just
bitmap.MakeTransparent(bitmap.GetPixel(0, 0));
and I'm sure Bitblt would do it but I always try and avoid unmanaged code as it seems like such a backward step especially with WPF and XAML on the horizon.
|
|
|
|
|
|
try this[^]
hope that helps,
it did me
g00fy
|
|
|
|
|
Wow.And to think I just used to write
bitmap.MakeTransparent(bitmap.GetPixel(0, 0));
Still, that's progress for you.
Thanks for the info, I'll give it a try.
|
|
|
|
|
Hello !
I have a question about DB specifications :
Do we have to call IDbCommand.Dispose ?
What does IDbCommand.Dispose mean?
We have problem doing this :
<br />
IDbConnction pipe = new OleDbConnection(connString);<br />
IDbCommand command = pipe.CreateCommand();<br />
command.QueryString = "select ...";<br />
IDataReader reader = command.ExecuteReader();<br />
command.Dispose();<br />
reader.Close();<br />
pipe.Close();<br />
The problem get solved if we don't do IDbCommand.Dispose
Your comments would be very helpful. Thanks.
Sovann
|
|
|
|
|
You cannot Dispose Command Object after ExecuteReader Method, the datareader object maintains the connection to the database as it will not pull all data at once, and it will pull data record by record. So dispose the command object after getting all the data.
Naveen G
MCSD.Net
|
|
|
|