|
Friend,
This is the sample code for moving label. you need to add a label from tool box and paste this code into form load event.
Label1.Move 1000, 1500, 5000, 5000
|
|
|
|
|
hii all..i want the user to enter hexedecimal valuein the text box, so i need to convert it..but i dont know how..anyone can help me plss
this is my email: hafizul_10422@yahoo.com
|
|
|
|
|
|
how to validate the hexadecimal value??
thanks for ur help!!
|
|
|
|
|
Hi,
You can use the Parse or TryParse methods of the number types to do the conversion. This fragment in c# should get you started.
String userInput = "ab7f";
Int64 value = Int64.Parse(userInput, System.Globalization.NumberStyles.HexNumber);
Alan N
|
|
|
|
|
What do want to convert it to?
The assumption is that it's to integer but it could be to character or binary or unicode.
E.g. 4C hex goes to:
integer 76
binary 01001100
ASCII L
EBCDIC <<br mode="hold" />
You really need to be specific when asking questions.
|
|
|
|
|
I’m stuck on how to enter a HEX number into a text box
|
|
|
|
|
Strictly speaking, what you are asking for is actually not possible. There is nu such thing as a hexadecimal numbe, you either have a number or the hexadecimal textual representation of a number. Converting the textual representation into a number is called parsing.
Entering the hexadecimal textual representation of the number in a textbox is easy. Make sure that the textbox has focus (you will see the blinking caret in the tectbox), then you just push keys on the keyboard to enter characters in the textbox. Valid characters for the hexadecimal representation are the digits 0 to 9 and the letters A to F. The letters can be either upper case or lower case.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Everyone,
Can anyone guide me to install a vb6 application in a dotnet machiene.
Regards,
Manowj
|
|
|
|
|
Can you please elaborate : what are trying to do and where exactly you are facing problem
|
|
|
|
|
The fact it has the .net framework installed makes no difference to a vb6 app. The two are not related, just install the app in the normal way.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
tab skips the controls inside panel in winforms!!
How to set tab index so that it go through all controls in panel and then to next control on form??
|
|
|
|
|
I Hope this will Help Click[^]
|
|
|
|
|
Don't crosspost[^].
You don't want to risk Chuck Norris reading your post twice.
I are troll
|
|
|
|
|
Hi All,
My application takes a lot of Memory usage and CPU usage. I am using thread in timer and i am using 7 timer in a class.So please help me.
Thanks
Best Regard
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
Please use profiling tools any of following tools :
CLR Profiler[^]
NDepends[^]
By using above tools, you will come to know expensive part of code. Then you can try to optimize that code.
|
|
|
|
|
But how can i know in which module is generating that problem.and I m using on error resume next for error resloving.
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
eg_Anubhava wrote: how can i know in which module is generating that pr
Thats what the profiling tools show you.
eg_Anubhava wrote: on error resume next for error resloving
Nothing to do with profiling, but it could mean you are not freeing up resources if you get an error.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Have you tried to use any of mentioned tool. Better to try out, You will granular report on which function or module is taking most of CPU time.
|
|
|
|
|
Hi,
When i m starting application throw CLRProfiler it generates an error.
Error Detail is given below:
ee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at CLRProfiler.Form1.WaitForProcessToConnect(String tempDir, String text)
at CLRProfiler.Form1.startApplicationButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///D:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
CLRProfiler
Assembly Version: 1.0.1395.16737
Win32 Version: 1.0.1395.16737
CodeBase: file:///E:/Other/Download%20Projects/CLR/Binaries/CLRProfiler.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
Comment out your error handlers. It appears that your code is generating errors in a loop, but your "error handling" code is burying the errors so you can't see them.
|
|
|
|
|
eg_Anubhava wrote: and I m using on error resume next for error resloving.
That's not "error resolving", that's burying the errors. If you're using "On Error..." in VB.NET code, you're digging yourself a hole. That only exists for VB6 backwards compatiblity. I highly recommend re-writing the code to use Try/Catch blocks instead.
eg_Anubhava wrote: mailto: anubhava.prodata@gmail.com
And noone cares about your email address except spammers.
|
|
|
|
|
Hi Sir,
My application normally takes CPU usage 0 - 5 in administrator account but in Guest account it takes 10- to 46.
please suggest me what is the problem
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
You're using VB.NET and the old VB6 error handling?? Not a good idea...
Anyway, it's impossible to tell you what the problem is because we haven't seen your code. Don't post the entire project.
What you have to do is use a code profiler to find out where the problem is. Since the app works as an admin and bogs down as a normal user, I'd say you're doing something that requires admin rights, but your error handling is written so badly, it's burying all the errors.
|
|
|
|
|
How can i know that in which process takes a lot of memory.
mailto: anubhava.prodata@gmail.com
|
|
|
|