|
I don't understand the problem. Handle the closing event ??
only two letters away from being an asset
|
|
|
|
|
Basicaly i am looking for a event prior to the form_closing event, when i click X in that form.
|
|
|
|
|
|
You might want to ask this in the Mobile Development forum
only two letters away from being an asset
|
|
|
|
|
Hi All,
I am working on the project using c# 2.0. I need to get the contents of window.status bar and save into string variable. Please help if you can.
Thanks in advance.
A.Asif
|
|
|
|
|
What window are you talking about? The web browser's status bar?
|
|
|
|
|
yes web browser window. I am using the following code but doesn't work.
string result = LPBrowser.Document.Window.StatusBarText;
Thanks.
A.Asif
|
|
|
|
|
I'm sorry, I still don't understand. Is LPBrowser something in ASP.NET? Or is this a Windows Forms web browser control?
If it's a Windows Forms web browser, have you looked at browser.StatusText property?
If this is something in ASP.NET, I recommend you post your question in the ASP.NET forum.
|
|
|
|
|
Hi,
LPBrowser is just the name I gave to browser control. Currently I am using following code but for some reason these codes not working,
string result;
string someVar;
some Var = LPBrowser.StatusBarText //This line doesn't work
result = LPBrowser.StatusText; ///This line doesn't work
A.Asif
|
|
|
|
|
Hi everyone.
I have got some VB6 code i need to translate to C#, but i really cant understand the VB code.
The program is something that communicates with a serial dervice.
I do not know how much of the code I need to get translated, so it is possible that I will post more code later.
Until now i've got this code:
Private Sub Command1_Click()
Dim CheckSum As Byte, x, Tid
MSComm1.Settings = "1200,N,8,1"
Buffer = "GET" + vbCr
CheckAndSum Buffer ' add Checksum and Length of string
Buffer = Buffer + SumStr
'For x = 1 To Len(Buffer)
' Tid = Timer
' Do
' DoEvents
' Loop Until (Timer - Tid > 0.01)
' MSComm1.Output = Mid(Buffer, x, 1)
'Next x
MSComm1.Output = Buffer
End Sub
This should write some code to the Serial Port.
I have already got the code for creating the checksum.
When my device receives the GET command with vbCr (Carridge return), the checksum and the string Length, it should return 10 characters an example could be c=02345"Carrigde return"Checksum1Checksum2
I do not think you need more code that i pasted to do this. But I am not sure..
It would really be a great help if you could help me with this..
|
|
|
|
|
|
I already had looked at MSDN.. I have tried make some code.. But no matter what i do it doesn't seem to work..
|
|
|
|
|
Wow, one of the reasons I am out of VB6.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Ennis Ray Lynch, Jr. wrote: one of the reasons I am out of VB6
One of the reasons I never adopted it in my shop
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
haolan wrote: Private Sub Command1_Click()
Dim CheckSum As Byte, x, Tid
MSComm1.Settings = "1200,N,8,1"
Buffer = "GET" + vbCr
CheckAndSum Buffer ' add Checksum and Length of string
Buffer = Buffer + SumStr
'For x = 1 To Len(Buffer)
' Tid = Timer
' Do
' DoEvents
' Loop Until (Timer - Tid > 0.01)
' MSComm1.Output = Mid(Buffer, x, 1)
'Next x
MSComm1.Output = Buffer
End Sub
A few questions...
Which serial port? How do you know this does not work? Where is code to listen for the result your program is expecting? What is the specification of the device that needs this input? Maybe the port parameters do not match up?
|
|
|
|
|
I want to create a Xml editor.I have added a Richtextbox control named as "editor" on the form as to enter text(Elements and attributes).Please tell me I have done right or not????
Now I want to read the text on the RichtextBox and make an Dtd or Xsd file by using the property "edtor.text".How can I create those files??.
1.By conventional/ordinary method and just set the file extension to that(Xsd/Dtd)???.
2.Is there any special method to write/create those files???.
Please urgent!!
Thanks in Advance.
Regards,
chanzeb chaudhary.
|
|
|
|
|
Does this article[^] help? It shows how to create an XSD file from a class.
Also, there is an XSD.exe utility in the .NEt framework SDK that may help you out.
|
|
|
|
|
Hi all,
I'm trying to show a tooltip for a button.
I have a StopWatch,
the purpose is to show the elapsed Time into the tooltip string. and to get the refreshed value each time the mouse is under the button
I'm doing like that
this.toolTip1.SetToolTip(button1, Stopwatch.Elapsed.ToString());
but the tooltip shown have always the same value
How can I update this value ?
Thanks for help
|
|
|
|
|
I think you may have to hide the tool tip and reshow it again.
That, or use a custom tooltip that lets you set the text while it's visible.
|
|
|
|
|
Hi,
I have a problem to understand one thing concerning structs.
It is said that structs are value types. But what happens when a Reference Type member is defined for a struct? Because it is a member of a struct does it behave like a value type -meaning both its value and reference address are stroed in the stack together?
Thanks!
|
|
|
|
|
Then, the struct still behaves as a value type; every time you pass it to a function, the struct will be copied.
The reference contained in it is just a pointer to a location in memory where the real object resides. Thus, when the struct is copied, the pointer is copied; but big deal, the real object exists just once and still remains there.
Make sense?
|
|
|
|
|
Definetly makes sense;
Thanks a lot!
|
|
|
|
|
My WebService application responds the clients well generally. But sometimes in some cases or in some environments (which I could not explain when or in which cases yet) web service function calls return back too late (I mean the caller client waits almost 2-3 minutes). Moreover, in spite of this delay, the web service continues to respond clients, meaning no crush or lock occurs.
Normally a client calls web service functions frequently. Every things seems well but after a period of time web service functions become late in responding and returning back..
Not many client requests for Web service functions at the same time. Only one client application exists.
What might cause these delays ?
Thnx in advance..
|
|
|
|
|
Lost packets, perhaps? First thing I'd determine is where the problem is occurring - does your web service actually receive this request that takes 2-3 minutes? Or does the client make a request, but it never makes it to the web service?
|
|
|
|
|
Have you every tried to go to a website and had it not respond but then clicking refresh gets an immediate reply? I think it is the same thing. Some requests will just fail over the internet.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|