Skip to content

Visual Basic

Visual Basic Questions

This category can be followed from the open social web via the handle visual-basic@forum.codeproject.com

34.4k Topics 120.1k Posts
  • Recording reaction time

    csharp help lounge
    2
    0 Votes
    2 Posts
    0 Views
    D
    The most accurate timer in the system is accessed by QueryPerformanceCounter and QueryPerformanceFrequency. You can refer to this[^] MSDN article on how to use it from VB.NET. RageInTheMachine9532
  • IF STATEMENT

    beta-testing regex help code-review
    2
    0 Votes
    2 Posts
    0 Views
    D
    Uhhh...Your IF statement doesn't have to be multiple ranges like that, because, so far, your range is 510250000 to 510252999, with no breaks between the ranges you listed! What's the logic behind what you want to do? So far, all we've seen is that your coloring cells, but why? What determines what color the cell is going to be? And what is the problem that your having? Is it performance related? RageInTheMachine9532
  • Extract Icon

    css help question
    2
    0 Votes
    2 Posts
    1 Views
    D
    Since you didn't include a code sample of what your doing, I have to ask: Are you sure you pulling out ALL the icons? Apps store various sizes of the same image, including different color depths and grey scale versions. RageInTheMachine9532
  • Help me in generating data reports

    help
    2
    0 Votes
    2 Posts
    0 Views
    B
    please explain more clearly If it's broken, I probably did it bdiamond
  • Data Grid Control

    csharp css database tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • a Poor Student

    csharp
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Regarding Data Grid Control

    csharp css database tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Compile VBScript

    csharp question
    2
    0 Votes
    2 Posts
    0 Views
    D
    Well, there is no compiler for turning the script into an EXE. But you can encrypt the script using the Script Encoder Tool from Microsoft, found here[^]. RageInTheMachine9532
  • Rich Text Box with images (vb6)

    question
    2
    0 Votes
    2 Posts
    0 Views
    D
    Only if you set the Enabled property of the RichTextBox to False. RageInTheMachine9532
  • CRC32

    help
    12
    0 Votes
    12 Posts
    1 Views
    D
    You'll have to post what you have so we can see what your doing. The only code example I have is in my previous post. RageInTheMachine9532
  • multiline txtbox

    question
    3
    0 Votes
    3 Posts
    0 Views
    N
    hmm.. i nvr used that line() property before, ill chk it out, thanks. however, since the site was down last nite, i had nothing to do but test my elaborate theory. i got it to work. i had to save each line from the txtbox (up to 4 lines) to 4 different textboxes (singlelined). here is how i did it: For i = 1 To textLarge.TextLength If Mid(textLarge.Text, i, 1) = Chr(13) Then labelNum += 1 i += 1 Else If labelNum = 1 Then text1.Text &= Mid(textLarge.Text, i, 1) End If If labelNum = 2 Then text2.Text &= Mid(textLarge.Text, i, 1) End If If labelNum = 3 Then text3.Text &= Mid(textLarge.Text, i, 1) End If If labelNum = 4 Then text4.Text &= Mid(textLarge.Text, i, 1) End If End If Next i could have made it more efficient by using an array of txtboxes instead of 4, so i could reuse the code, but, hey... ------------------------ Jordan. III
  • how to add new button on the toolbar of ms-word ? (vb)

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Can anyone solve Richards problem?

    help tutorial question workspace
    3
    0 Votes
    3 Posts
    0 Views
    R
    Thx but I want it in Vb.net Richards
  • HOw to Change Font Language in Menus in VB.Net?

    csharp help tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Print at the center

    tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    D
    Are you using VB6 or VB.NET? The code sample works as advertised on VB.NET. The equivelent code in VB6 would be this: Dim sText As String Dim iPad As Long sText = "Text to print Centered" iPad = ( 40 - Len(sText) ) / 2 sText = String$( iPad, 32 ) & sText RageInTheMachine9532
  • what is hWnd and how is it used

    question
    2
    0 Votes
    2 Posts
    0 Views
    D
    gpa2000 wrote: I believe that every object has a hWnd Not true. every Window has a Window Handle. Individual controls are also windows and have a window handle. But not every element you see on the screen or every object in memory has a Window Handle. gpa2000 wrote: using this hWnd you can color the background of a treeview or do all sorts of thing Uhhh...not exactly. The hWnd is the identifier for a Window that you can use to talk to the Window or other functions that take a hWnd as an input parameter. The Win32 API is FULL of funtions that use hWnd and not just for modifiying control properties. There isn't any one article that covers all the uses for Window Handles, but you can start here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows.asp[^] RageInTheMachine9532
  • wat is subclassing and how is it used?

    question
    2
    0 Votes
    2 Posts
    0 Views
    M
    Hi there. Subclassing is the act of deriving a new class by inheriting from an existing class. You would do this if you wanted to take advantage of functionality in the base class and add functionality of your own. For example, let's say you want a text box for your windows forms application, but one that accepts only numbers and ignores other characters typed from the keyboard. In most ways, you want your text box to behave just like a regular text box; you just want the additional functionality that limits keyboard entry to numbers only. You could create a subclass of the TextBox class by inheriting it, then override keyboard handling methods to insure that only numbers are allowed.
  • Creating Access Database using Code

    database question
    5
    0 Votes
    5 Posts
    0 Views
    V
    Excellent! Thank you so much Mike for taking the time to post this. I will most definitely do some digging. :)
  • How can i login to yahoo from vb.net???

    question csharp
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Set assignment not supported

    csharp com tools help
    2
    0 Votes
    2 Posts
    0 Views
    D
    Yeah: Dim UserData As String UserData = Request.Form.Item("UserData") RageInTheMachine9532