|
UpdateNumLockIndicator is a method that you have to supply to update whatever control your using to show the status of the toggle.
The My namespace is only available in VB.NET 2005. It doesn't exist in 2002 or 2003.
Public Declare Auto Function GetKeyState Lib "user32.dll" (ByVal KeyCode As Integer) As Short
Public ReadOnly Property NumLock As Boolean
Get
Return ((GetKeyState(144) And 1) > 0)
End Get
End Property
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i am using below function but doen't work. if you please me how to use it this function in detail so i can solve my problem.
Public Declare Auto Function GetKeyState Lib "user32.dll" (ByVal KeyCode As Integer) As Short Public ReadOnly Property NumLock As Boolean
Get
Return ((GetKeyState(144) And 1) > 0)
End Get
End Property
Thanks
Rehan.
|
|
|
|
|
You update the status of the indicators by checking this NumLock Property in your KeyDown event code.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello,
i have a question about the WebBrowser.NewWindow Event.
How can i open an Popup in a new Window? In this event, i can only Cancel the Internet Explorer, but i cannot tell my application, that it should open the Page in a new Form?
In VisualBasic 6 it has worked, when i use the Microsoft WebBrowser COM Tool, then it works too, but i want to use the VisualBasic. net 2005 WebBrowser Class.
Has anybody a solution for this problem?
Thanks to you all
|
|
|
|
|
Does anyone know how to add a tasks window to a vb.net control? It's the small arrow at the top right area of the control. When a developer clicks on it, it shows a drop down menu.
|
|
|
|
|
how do i programatically insert a text at a particular cursor location in a text box
t.aransiola
|
|
|
|
|
replace the text "hello" with whatever you want
Select Case Me.TextBox1.SelectionStart
Case 0
Me.TextBox1.Text = "hello" & Me.TextBox1.Text
Case Else
Me.TextBox1.Text = Mid(Me.TextBox1.Text, 1, Me.TextBox1.SelectionStart) & _
"hello" & _
Mid(Me.TextBox1.Text, Me.TextBox1.SelectionStart + 1)
End Select
|
|
|
|
|
Hi,
What abt this solution
textbox1.SelectedText="Text To Insert"<br />
Hope this Works...
Nitin...
|
|
|
|
|
i stored text in a rich text control to a memo field in Access 2000 database.
I want to display teh content and append teh content using another richtext box control but the content of previous stored text shows garbage characters
any help
t.aransiola
|
|
|
|
|
Formatted text?? How is it formatted? How is the format information retained? Is it inline with the text, like HTML tags?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
not like HTML tags. Its like the text intermixed with some other ascii characters.
I will come with a sample characters it shows. i dont have it here now.
thank u
t.aransiola
|
|
|
|
|
please i need to know how to count the words in a sentence in console application using the mid function?
Thanks
|
|
|
|
|
Hi,
Why do you use mid by the way ?. Just split the sentence on space character and then finding the length of array gives you the number of words in the string.
Just simple as it looks.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Hi,
How do I run the excel macro from Visual Basic6.
thank you
|
|
|
|
|
you have to use MS Excel COM in VB.
your macro code will be running. in VB6.0 Editor.
Cheer
Pavan Pareta
|
|
|
|
|
Hi,
How i can get Hard Disk Serial No in VB Dot Net 2005 Application.
I want to get serial no in Text Box
Vikash Yadav
|
|
|
|
|
|
I have a problem with transparent. On form, i have 30 controls. And i want 30 controls have backcolor= transparent ( so the BackGroundImage of form can be displayed ). But when i did that, the performance is very bad. When the form is loaded, it's very slow.
So, how could i increase the performance of the form ( when form is loaded )
Please give some some instructions
|
|
|
|
|
30 controls each with a transparent background?? There's really nothing you can do about the performance. When a controls BackColor is set to Transparent, it's not really transparent. This tells the controls to take on the properties of the parent containers background. So, if you use a BackgroundImage in a parent container, portions of the image are copied to the background of the controls it contains. You're not using one background image, you're using 31 images. So, knowing that, there's really no way of speeding it up, short of not using a background image.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Please don't cross post. Especially not in totally unreladed forums.
---
b { font-weight: normal; }
|
|
|
|
|
i have problem in FCK Editor if you know it i add arabic text and its transfer after saving to "???????????"
why this happen?
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|
Man i have problem in FCK Editor if you know it i add arabic text and its transfer after saving to "???????????"
why this happen?
Waseem
.Net
|
|
|
|
|
i tried the editor, and i did not face this problem !!!!
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
i want 7all la el problem
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|
Man you check what i use it in real website not in homework so please if you have solution give it else getout from here.
|
|
|
|