|
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
|
|
|
|
|
Please use This[^] it will provide you bits and pieces on your system's memory utilization.
|
|
|
|
|
My application gets memory from 13000 to 30000 and CPU Usage is 0 to 1.
I am developing application in vb.net.And i am using image in application.
is Image or .Net framework or comment occoupies memory.
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
I have tried to copy from Sheets("S") rows meeting condition and copy those rows to a new sheet, but not able to get the code to work. Here is my code. What could I be doing wrong?
Here is the spreadsheet fields.
Date Requested Requesting Entity Information Requested Contact Name Contact Telephone/Email OIG Contact OIG Contact Telephone/Email "Deadline Back
to Requesting Entity" "Deadline to theOIG Contact" "Actual Date Returned
to the OIG Contact" Status Comments
There is a funciton in A5 that sets the condition:
A4= 1/29/09 or =today
i12 and k12 contain dates
variable dates are being swapped out for Sheets("D").Cell("c9") based on whether the funtion computes to True for the selected row.
Funcitonion assigned to Cell A5:
=IF(S!A4<S!I12,IF(S!K12<>"Completed",S!C10," ")," ")
'Try this where you fire from the source sheet. Change wks2 to your
'destination sheet conditionally copy rows to another worksheet
'Declare variables
Sub findNew()
Dim rCell As Range
Dim D As Worksheet
Dim S As Worksheet
Dim SL As Range
Dim RD As Range
Dim RS As Range
Dim RA As Range
Dim RB As Range
Dim RC As Range
Dim RE As Range
Dim compDate As Boolean
'Initialize the worksheets
Set S = Sheets.Item("S")
Set D = Sheets.Item("D")
'Initialize the Ranges
Set RA = Sheets.Item("S").Range("a4")
Set RB = Sheets.Item("S").Range("I12")
Set RC = Sheets.Item("S").Range("K12")
Set R1 = Sheets.Item("D").Range("C9")
Set R2 = Sheets.Item("S").Range("C10")
Set RD = Sheets.Item("D").Range("a8:l8")
Set RS = Sheets.Item("S").Range("a8:l8")
'Initialize the Function in cell a5 from Sheet "s"
Set Sheets.Item("S").compDate = Sheets.Item("S").cell(a5)
'Select the Source Worksheet
Sheets("S").Select
'Set up Loop
For Each rCell In RD
rCell.Activate
'For i = 1 To Cells(8.Count, "a").End(xlUp).Row
'Run compDate for Sheets("S").Cell(5,1)to evaluate row
If compDate = True Then
Sheets("S").Select
Range("RS").Select
ActiveSheet.Copy
Sheets("D").Select
Range("R1").Select
Range("R2").Paste
Sheets.Item("D").cell(C9) = S!C10
Else
Sheets.Item("D").cell(C9) = " "
Exit For
End If
Next rCell
'Find LastRow in Worksheet "D" and increase values of input
'Set RB = Worksheet.Sheets("D").Range("a8:l8")
'If (S!A4<S1!I14,IF(S!K14<>"Completed",S!C9," "),S!C10)
'Continue with copy Paste Function
'Set Worksheet.Sheets("S") = ActiveSheet
End Sub
|
|
|
|
|
I have a multiline textbox control on a form. When a user focuses on the textbox I want to check and see if a certain string (user's name and todays date) are in the textbox. If not, I want to automatically add the user's name and todays date to the end of the textbox and position the curor and scroll to the bottom. I am having trouble with the scrolling/cursor positioning part. My code will scroll down, but the cursor ends up moving to where ever the user clicked in the textbox. Does anyone know of a way to ignore where they clicked so as to override where the cursor goes? Is there another event that fires that I can grab? Am I missing something obvious here?
Private Sub txtInput_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtInput.GotFocus
Dim strAutoLabel As String = gblstrUserName.Trim & " - " & Now.ToString("M/d/yy")
'If the textbox does not contain the auto label, add it
If Not txtInput.Text.Contains(strAutoLabel) Then
If txtInput.Text.Trim.Length <> 0 Then txtInput.Text &= vbCrLf & vbCrLf
txtInput.Text &= strAutoLabel & vbCrLf
txtInput.SelectionStart = txtInput.Text.Length - 1
txtInput.ScrollToCaret()
End If
End Sub
I'd appreciate any help or advice you can give me.
|
|
|
|
|
In the mouse click event for the tetbox you could try:
if not (Me.txtNvs.SelectionStart = txtInput.text.length -1) then <br />
Me.txtNvs.SelectionStart = txtInput.text.length -1<br />
Me.txtNvs.SelectionLength = 0<br />
end if
'it may be something similar to determine the current selected index in the if statement
good luck
|
|
|
|
|
Thanks for taking the time to help me. It's not quite what I was after, but it's a step in the right direction. I want the autoscroll to the bottom to happen only the first time they click...if they click once to get focus and then click again because they are trying to highlight a word or edit text it should not scroll. So I did this:
Dim intMouseClickCounter As Integer = 0
Private Sub txtInput_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtInput.GotFocus
Dim strAutoLabel As String = gblstrUserName.Trim & " - " & Now.ToString("M/d/yy")
'If the textbox does not contain the auto label, add it
If Not txtInput.Text.Contains(strAutoLabel) Then
If txtInput.Text.Trim.Length <> 0 Then txtInput.Text &= vbCrLf & vbCrLf
txtInput.Text &= strAutoLabel & vbCrLf
txtInput.SelectionStart = txtInput.Text.Length
txtInput.ScrollToCaret()
'Set counter to one so the mouseclick event will scroll to the bottom
intMouseClickCounter = 0
Else
'Set counter to one so the mouse click will not scroll to the bottom
intMouseClickCounter = 1
End If
End Sub
Private Sub txtSpecialReport_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles txtInput.MouseClick
If intMouseClickCounter = 0 _
AndAlso Not (txtInput.SelectionStart = txtInput.Text.Length) Then
txtInput.SelectionStart = txtInput.Text.Length
txtInput.SelectionLength = 0
txtInput.ScrollToCaret()
End If
'Increment counter so if user clicks inside textbox after focus has already been set,
'the code to scroll to the bottom will not run again
intMouseClickCounter += 1
End Sub
Private Sub txtInput_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtInput.LostFocus
intMouseClickCounter = 0 'Reset counter
End Sub
But this solution has flaws. It doesn't work the way I'd like when a user tabs into the textbox, and it will scroll when I don't want it to if the user activates another window/program and then returns to this form and this textbox. If anyone has any further suggestions I would appreciate it.
|
|
|
|
|
hi
i developed one project in visual studio 2005..... worked under vb.net with ms access 2003..... i did my project successfully........ when i came to publish i have attached my database successfully........ during setup.exe running one error occur like this " could not find installable ISAM..... anyone help me for this query....
|
|
|
|