Search Results - VBForums

Search:

Type: Posts; User: dday9

Page 1 of 13 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    4
    Views
    68

    VS 2010 Re: GetElementByID function

    The GetElementsByTagName method would work in this situation, you would need to check if the element's InnerText property is equal to your desired value. This can be done by looping through all...
  2. Replies
    1
    Views
    22

    MsOf13 Access - Create Foreign Key

    I'm having difficulties setting a field in a table as a foreign key. Currently these are my 5 tables:
    Household:


    ID
    AutoNumber


    Client:
  3. Replies
    4
    Views
    68

    VS 2010 Re: GetElementByID function

    GetElementById returns a single HtmlElement using the element's ID attribute as a search key. In your HTML code the <a> tag does not have an ID attribute, therefore you cannot use GetElementById to...
  4. VS 2012 Re: Implementing a custom SelectionFont property

    Here is an example that I worked up for you. I free typed it so there may be a typo in there somewhere but it gives you an idea:

    Option Strict On
    Option Explicit On
    Public Class Tile
    Inherits...
  5. VS 2012 Re: Implementing a custom SelectionFont property

    Why don't you create a custom control that inherits a panel instead. You would have two properties: letter and value. The letter would obviously represent the letter in the middle of the tile and the...
  6. Thread: my first program

    by dday9
    Replies
    11
    Views
    340

    Re: my first program

    I saw where you spelled your name SaM. You need to go back to your 6 year old self and remind him about how important casing is, especially in C based languages! Just kidding, I love seeing old stuff...
  7. Re: Help Determining Assignment and Equality Symbols

    Ok, I think that I will go with the double equal sign for equality and a single equal sign for assignment then.
  8. Re: Help Determining Assignment and Equality Symbols

    I didn't think of assigning Boolean values to a condition. I do this all the time in function like:

    Private Function IsFive(ByVal input As Integer) As Boolean
    Return input = 5
    End Function
  9. Help Determining Assignment and Equality Symbols

    I'm creating my own interpreter and I'm still in the process of really narrowing down the syntax. Right now I'm stuck with trying to figure out which symbol to use for my assignment operator and...
  10. VS 2010 Re: Having trouble clicking button without ID in webbrowser

    According to spam gourmet's terms and conditions Section 1, sub-section n:


    Because of this, the thread violates VBForum's acceptable use policy which is something that you agreed to when...
  11. Re: VB 2013 TextBox passing full text on button click

    It has to do with how Process.Start works. The second parameter represents the command-line arguments to pass when starting the process. In this case URLs are separated by whitespace, therefore it's...
  12. VS 2010 Re: Having trouble clicking button without ID in webbrowser

    Hmm. I thought that it was IEnumerable, but as I said I'm not at a computer with VS installed to test it. Anyhow, the code you presented should work; setup a breakpoint on this line to make sure that...
  13. Re: VB 2013 TextBox passing full text on button click

    What you're not taking into account the whitespace. Google handles whitespace with a plus sign, so you'll have to adjust the code to:

    Process.Start(chrome, "https://www.google.com/search?q=" &...
  14. VS 2010 Re: Having trouble clicking button without ID in webbrowser

    If you only have one HTML element where the tabindex is equal to 6, then there is really no need to loop through each element in the collection. I'm not at a computer to test it, but try using this:...
  15. VS 2010 Re: Having trouble clicking button without ID in webbrowser

    Try using the HtmlDocument.GetElementsByTagName Method. Assuming that there is only one element where the tabindex is 6 then it would be the first item in the collection.
  16. Re: [WORKING] Block a User if log in attempt reach 3 times. [BUT] need PROPER code

    A lot of viewers look at the what's new view which show threads with the newest post. So you're at the top right now!
  17. VS 2010 Re: Please help with some LOW LEVEL VB issues....

    What it appears to me like what you have to do is convert your string which in this case is some text from a BIN file to a byte array. MSDN shows how to do that here.
  18. Re: [WORKING] Block a User if log in attempt reach 3 times. [BUT] need PROPER code

    The VB.Net Forum is designed for questions or discussions specifically on Visual Basic.Net where as the Code It Better forums is designed for any language that has a working piece of code but would...
  19. Re: [RESOLVED] Get Longest Cell Length in DataColumn

    I used JMcIlhinney's suggestion, the only thing I needed to do on my end was reference the System.Data.DataSetExtensions class. Otherwise I would've looped through each individual row and column...
  20. Re: Get Longest Cell Length in DataColumn

    I was able to make it work by referencing the System.Data.DataSetExtensions class.
    Awesome. Thank you very much.
  21. Re: Error when trying to copy the Documents folder to another location

    Run the application as an administrator.
  22. Thread: Post Race!

    by dday9
    Replies
    59,150
    Views
    2,350,217

    Re: Post Race!

    Phew!
  23. VS 2010 Re: Insert numbers in a single textbox in 5 steps and then auto increment

    Yeah, I'm not at a computer with Visual Studios so I'm free-typing everything. I've edited my last post.


    The counter variable is meant to check how many times the number has been printed. The...
  24. VS 2010 Re: Insert numbers in a single textbox in 5 steps and then auto increment

    Ahh. I overlooked something. I've edited your code:

    Public Class Form1
    Private btnA, btnB As Button
    Private lblValue As Label
    Private counter As Integer

    Private Sub...
  25. VS 2010 Re: Insert numbers in a single textbox in 5 steps and then auto increment

    You're very close. You need to declare the counter variable at the form level(where I declare btnA and btnB) and set it's value in the form's load event to 0. Just be sure to remove where you...
  26. VS 2010 Re: Insert numbers in a single textbox in 5 steps and then auto increment

    You'll need to create a counter variable and add the following code before you set lblValue's Text:

    If counter = 5 Then
    value += 1
    counter = 0
    Else
    counter += 1
    End If
  27. Replies
    13
    Views
    246

    Re: Preventing Carpal Tunnel Syndrome

    :thumb:
  28. Replies
    10
    Views
    252

    Re: Help With Visual Basic

    Here's a quick example I threw together. It is a console application:

    Imports System
    Public Module Module1
    Public Sub Main()
    Do
    Console.Write("Value: ")

    Dim value As Integer ...
  29. [RESOLVED] Get Longest Cell Length in DataColumn

    I would like to know of an easier way to get the longest cell length of each DataColumn in a DataTable. For example, if I had the following table:

    'Create a DataTable
    Dim dt As DataTable = New...
  30. Replies
    4
    Views
    188

    Re: How Am I Supposed

    Moderators have a specific section designated for reports. If somebody were to get mad at a moderator then they would try to flood the reports section with a bunch of bogus reports. Plus I remember...
  31. Re: [WORKING] Block a User if log in attempt reach 3 times. [BUT] need PROPER code

    I've moved this thread into the code it better forum as that is where it should go.
  32. Replies
    17
    Views
    218

    VS 2013 Re: Disabling a Button Before Input

    I could see checking if both were 0 and not just one because infinity and 0 are numbers where as 0 / 0 is not a nunber:

    Console.WriteLine(0 / 0) 'NaN
    Console.WriteLine(1 / 0) 'Infinity...
  33. VS 2010 Re: Insert numbers in a single textbox in 5 steps and then auto increment

    Well the naming of the function does nothing other than changing the name. That's like if I were to go to the social security office and legally get my name changed to dday9, although dday9 is a new...
  34. Replies
    12
    Views
    267

    Re: Spock: Dead at 83

    If you right-click on the image and click on properties you can get the URL. From there you can open the URL in a new browser/tab and then right-click and save it, just be sure to keep it as a GIF.
  35. Thread: Post Race!

    by dday9
    Replies
    59,150
    Views
    2,350,217

    Re: Post Race!

    Well, just leave it to beavers I guess.
  36. VS 2010 Re: Insert numbers in a single textbox in 5 steps and then auto increment

    You would simply take the two function at the bottom of the module and use them in you windows form application. I'm at my computer which has Visual Studios installed on it so here is a Windows Form...
  37. VS 2010 Re: Insert numbers in a single textbox in 5 steps and then auto increment

    Did you see my post? :confused:
  38. Replies
    17
    Views
    218

    VS 2013 Re: Disabling a Button Before Input

    Shaggy made a good point about checking if the string is empty or if the user inputted "000" here is an example following up on that:

    Dim intInput1, intInput2 As Integer
    Dim enabled As Boolean
    ...
  39. Replies
    17
    Views
    218

    VS 2013 Re: Disabling a Button Before Input

    Ooops :blush:

    I edited it.
  40. Replies
    17
    Views
    218

    VS 2013 Re: Disabling a Button Before Input

    Generate the TextChanged event for both of the TextBoxes and check for if the TextBox's text is 0:

    Private Sub txtNumber_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.