|
I am not going to Belgium again - not for you, not for anybody!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
hi. how shall i publish my id.
"You just become, like a flower becomes the fruit. It's all built in within you. Allow it to work out."
-- Shri Mataji Nirmala Devi.........
for more details visit : http://www.sahajayoga.org
Akhilesh Singh
modified on Wednesday, August 26, 2009 5:41 AM
|
|
|
|
|
why dont u post the code that sends to one budy and we will give u a hint ..
|
|
|
|
|
Hi just wondering if there is a simple way to force the form to reload.
"this.Refresh()" does not seem to work. nether does "form.Load";
private void VMCU_BlanktheDisplay()
{
try
{
VMCU.UpdateDisplay(VMCU.BlankDisplay);
this.Load;
}
catch (Exception)
{
VMCU.UpdateError(cmdError.BlanktheDisplay);
}
}
Above the code i have so far. It is for a screen update, as the update works it just doesnt refresh the form. Does anyone know what i can do?
Thanx George
|
|
|
|
|
If you want the form to repaint itself, call Invalidate(). If you want to reset your form to a known state, you need to write code to do that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank you for the reply, i tried this however i think it was a problem with me not updating the picture box in my program and thats why it did not appear. As i was converting an array into an image and forgot about updating the image box.
|
|
|
|
|
I was pondering setting up a base class for an object and having multiple interfaces for object qualities that are optional. I was considering how I could set these up in XML and have them deserialized to be classes with only the interfaces that are used in the xml...
Such as:
<?xml version="1.0" encoding="utf-8"?>
<Class1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Class1Boolean>false</Class1Boolean>
<Interface1Int32>0</Interface1Int32>
<Interface2String />
</Class1>
When loaded would produce a Class1 that has Interface1 and Interface2, but if there were no Interface2String in there, it would not implement that interface when loaded.
Suggestions?
|
|
|
|
|
Booth sends data to server, but on Server, it gives error as "Only one usage of each socket address (protocol/network address/port) is normally permitted"
My code is as:
TcpListener tcpListener = new TcpListener(5500);
tcpListener.Start();
Error comes at tcpListerner.Start();
Help plz
Tufail
|
|
|
|
|
reason might using the same socket for more than one instance at the the same time, make sure you close all the sockets after use.
most of the times this happens, because of unclosed sockets,only one socket is allowed at a time with a specific ip and port
|
|
|
|
|
You can only listen on a port once, after you have a listener you can accept incoming socket connections through it.
I recommend looking at TcpListener.Pending(), TxpListener.AcceptSocket(), and if you want to get fancier, TcpListener.BeginAcceptSocket() and TcpListener.EndAcceptSocket().
There is a wonderful example here, Simple TCP Server[^] and here, Asynchronous socket communication[^]
|
|
|
|
|
please guide me that should i use WinSocket (as in vb6) or i should use TCP's
Thanks
|
|
|
|
|
if your app uses threads, and does not handle IsBackground correctly, older versions of your app might still be running, preventing the latest instance from functioning properly.
|
|
|
|
|
Hi ,
two notepad are running one is saved as first.txt other is saved as second.txt how to kill only one process first.txt
I am using the following code which is closing all the notepad
foreach (Process pre in Process.GetProcesses())
{
if (pre.ProcessName.StartsWith("notepad"))
{
pre.Kill();
}
}
Regards,
Amit Patel
|
|
|
|
|
Find the main window of the process first,
next get the caption of window,
check your condition, if it's satisfy then kill that process...
|
|
|
|
|
You can do that by checking Process.MainWindowTitle property.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
what about this
Process[] pro = Process.GetProcessesByName("Notepad");
pro[0].Kill();
|
|
|
|
|
this is way i m not getting the saved file name
|
|
|
|
|
I'm not sure what you mean with this.. But if you're having trouble closing the correct notepad process, try keeping the Process's Id in memory (knowing the Id of the first and the second notepad process). Then you are sure to close the right one..
|
|
|
|
|
hello all:
i have an application what i want to do in it is, i want to change the url so no user could see the parameters for example the url is www.CodeProject.com/Page.aspx?Id=Xmdwdr
Where Xmdwdr is an encryption
What i want the client to see is www.CodeProject.Com
Could any one help me with it
|
|
|
|
|
There is a lot of information right here[^] about URL rewriting.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Please don't spam the whole damn site.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
No problem its just that on that forum there was no answer and it was the JS forum where i think the answer should be so i thought will there could be a solution using code behind or something
|
|
|
|
|
|
Do you have a programming question ? This doesn't look like one to me.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
need help with a regex that would split a given fullname to its corresponding
first name, last name, middle initial
im trying to emulate outlook's way of breaking down the full name to its corresponding
fields.
any regex or class to do this? help is highly appreciated.
Life - Dreams = Job
TheCardinal
BenPOS Systems
|
|
|
|