|
without your answers, I have to look around in the net and still cant find it. Is my question hard to answer or you dont want to answer me? I just want to know in order to find it somewhere else
|
|
|
|
|
I am working on messenger.On each client side there is an interface that listens the new user request and opens a new window for chatting.But when i use to show the application halts i am writing the code if some one know the solution please Let me know.
Thread thread=new Thread(new ThreadStart(reciveConnection));
thread.Start();
Socket sock;
public void reciveConnection()
{
TcpListener tcp=new TcpListener(4600);
tcp.Start();
While(true)
{
sock=tcp.AcceptSocket();
Client cli=new Client();/////Initiating object for new clent window
cli.Show();/////Here problem Accours.
}
}
|
|
|
|
|
should u not declare Socket sock above the thread.Start()?
There is a good chance that the sock=tcp.AcceptSocket() will be called before the socket is actually declared!
|
|
|
|
|
You can't display a modeless dialog on a thread that doesn't have a message pump. Without a message pump, the window (cli) won't be able to process messages it receives, that's why the application appears to hang.
If it is okay for the dialog to be modal, call cli.ShowDialog() instead of cli.Show() . Otherwise, you need to start a separate thread with a message pump (you've to call Application.Run()).
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi
How i may to convert dec values arry to correspnded hex values array.
Examp:
<br />
byte[] decArray = new byte[]{7, 8, 9};<br />
byte[] hexArray = SomeConverterFunction(decArray);<br />
byte[] decArray1 = new byte[]{5, 5, 9};<br />
byte[] hexArray1 = SomeConverterFunction(decArray1);<br />
THANK
|
|
|
|
|
You can convert decimal values to hex-values by using the Format(...)-function or the ToString(...)-function of 'string'. A small example:
private string[] SomeConverterFunction(int[] array)
{
string[] retArray = new string[array.Length];
for(int i = 0; i < array.Length; i++)
{
int curRow = array[i];
retArray[i] = curRow.ToString("x");
}
return retArray;
}
Now you can customize it as you want. If you need a numeric return just Parse it to your desired type.
|
|
|
|
|
|
When we run an application that we made, we got messege.
CLR Error 8007000b.
What is this message?
What is that resion?
How can I do for this problem?
please give me any idea.
RICH LEO
|
|
|
|
|
If it's a COM error code (it surely looks like one) then it is COR_E_BADIMAGEFORMAT, meaning that an assembly that's being loaded is corrupt.
mav
|
|
|
|
|
Hi,
I am a Software Eng. an Indian Company based in TVM City.
am currently working on "WEB client" for a case study.
Would like some guidence on the implementaion aspects for sumitting a WEB Form Page Programatically i.e, A HTML/Web Forms filled with required values and trigger the click event of associated element for submission.
Intended tech is .NET (C# with ASP.NET).
Jefy
|
|
|
|
|
Have you tried using the System.Net.WebClient class? It has a OpenWrite function that allows you to POST data. Sending information with GET is easy, just append the query string (varname=value&varname2=value2..) to the URL.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thank u for ur replay.
One more quetion is how to fill different fields (edit box or combo box) in a web forms and how to trigger the click event of a button Programatically?
Regards
Jefy
|
|
|
|
|
Master Bushnell wrote:
I need a program
I'm sure you do. You're mistaking this site for rentacoder, I believe. Here, you need to write your own code, and ask questions when you get stuck.
Master Bushnell wrote:
C# please, if you make it easy to use, then C++ will be accepted
Wow - that's pretty damn big of you, to accept C++ if it's good enough. Seriously, what's wrong with this picture ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Sure! Just send a cashiers check for $1,000 to me and I'll get started when it clears. I only deal in cash-up-front.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Everybody,
I got a problem. I have a treeview with an iamgelist attachted to it. it works fine but when i try to drag and drop (so when i turn the property from the treeview.allowdrop to true) it gives an error message:
An unhandled exception of type 'System.InvalidOperationException' occurred in system.windows.forms.dll
Additional information: DragDrop registration failed.
somebody knows whats happening here???
Rob
|
|
|
|
|
And you're sure, that has something to do with the image list?
Claudio
Claudio's Website
|
|
|
|
|
no i'm not. Don't know what the problem is but i have found out that the problem occurs when i set the panel on witch the treeview is located to visible...
|
|
|
|
|
I want to tile a 1 pixel wide buy 20 or so pixels heigh image horizontally.
I tried just taking drawimage and setting the image width to the desired length but it produces a sortof gradient affect where the stretch fades off into nothingness...instead of filling the region properly.
Besides using a for loop and incrementally calling drawimage, is their any other way?
|
|
|
|
|
Yes, if you're using GDI+, you can create a bitmapbrush, and set it's tiling option to what you want, then fill your area with a rectangle using that brush.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Can you show me how to declare a bitmapbrush.
I tried searching google, msdn, and the vs.net object browser and found no reference to them.
|
|
|
|
|
Sorry, it's called TextureBrush
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hey
I am not getting this event to fire?
<br />
PortConnection PCon = new PortConnection(delegatePassError);<br />
serialPort = PCon.connectPort(inSettings);
<br />
serialPort.ReadTimeout = 10000;<br />
serialPort.ReceivedEvent += new SerialReceivedEventHandler(incoming);
<br />
<br />
serialPort.ReadTo("test");
<br />
private void incoming(object sender, SerialReceivedEventArgs e)<br />
{<br />
}<br />
I know that the serial port is working, and i know that there is data that are being sent from a CellPhone on the port.
But i cant get the event to fire? have i connected it wrong?
|
|
|
|
|
I have no notice that the event is only fired when i am using
<br />
string data = SP.ReadExisting();<br />
or likevice?
This does not help me! i dont whant a Thead that goes in a loop and looka if there is somthing in the serialport stream, i whant an event to be fired instead. Is there no way to do that?
|
|
|
|
|
Is there realy no one that nows of this problem? Or am i explaining it bad?
|
|
|
|
|
You might try and contact the guy who wrote the "I/O-Ports uncensored"-articles.
Maybe the solution is in one of the articles as well.
Cheers
Sid
|
|
|
|