Search Results - VBForums

Search:

Type: Posts; User: dolot

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Best study strategy for Windows Development Fundamentals exam?

    There may very well be a book out there on that exam - google it and see. There's also online video training on lots of IT topics through companies like PluralSight. I tried 'em out and they seemed...
  2. Re: On UI i can delete the record, but i am unable to delete the record from DB????

    Thanks, JMC
  3. Re: On UI i can delete the record, but i am unable to delete the record from DB????

    Just curious, JMC - why the two step process in here? Why not just bind the DataTable strait to the DataGridView?
  4. Re: On UI i can delete the record, but i am unable to delete the record from DB????

    Yep, you're totally right - I missed that. That piece of code needs to be moved also.
  5. Re: On UI i can delete the record, but i am unable to delete the record from DB????

    A few things are wrong with this code:

    1. There's no need to initially dim con as a new SqlConnection, since you later set it to a new SqlConnection. That's not a big problem, though.

    2. The...
  6. Replies
    3
    Views
    97

    VS 2010 Re: my controls are not refreshing ?

    I did something similar the other day. I had a class constructor that I was passing an object into. I wasn't quite ready to use the object yet, but needed to compile the code, so I just passed in a...
  7. Thread: Faking Time?

    by dolot
    Replies
    19
    Views
    342

    Re: Faking Time?

    Do the players not understand that time is passing in the game at a rate of 1 month/hour? Maybe I don't understand the problem. (I'd say that's the likely scenario, since I'm not much of a gamer. ...
  8. Thread: Faking Time?

    by dolot
    Replies
    19
    Views
    342

    Re: Faking Time?

    That will do it for sure.
  9. Thread: Faking Time?

    by dolot
    Replies
    19
    Views
    342

    Re: Faking Time?

    It's not an original - tg said it on another thread recently (I think it was tg. :) )
  10. Thread: Faking Time?

    by dolot
    Replies
    19
    Views
    342

    Re: Faking Time?

    Here's a little bit cleaner solution:

    Private m_StartTime As Date = Now

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

    ...
  11. Thread: Faking Time?

    by dolot
    Replies
    19
    Views
    342

    Re: Faking Time?

    As tg pointed out, it was a quick and dirty solution. Hopefully it will give the OP something to get started with - along with the other helpful comments. ;)
  12. Thread: Faking Time?

    by dolot
    Replies
    19
    Views
    342

    Re: Faking Time?

    Well, I'm adding 730 * the interval to the original time, so the first second it would be the original time +730 seconds, the second second it would be the original time +1460 seconds, etc...

    I...
  13. Thread: Faking Time?

    by dolot
    Replies
    19
    Views
    342

    Re: Faking Time?

    Yep, all the fun questions are on vbforums.

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

    Static StartTime As Date = Now...
  14. Replies
    10
    Views
    143

    Re: how can i cancel upload form

    Indeed - would have handled it the same way in my code.
  15. Thread: Faking Time?

    by dolot
    Replies
    19
    Views
    342

    Re: Faking Time?

    Why are all the fun questions on VB forums and not at work? - tg.
  16. Replies
    10
    Views
    143

    Re: how can i cancel upload form

    I think you're right on that, TG. I'm often too quick to propose a quick and dirty solution without thinking it through.
  17. Replies
    10
    Views
    143

    Re: how can i cancel upload form

    A simple Me.Close statement will close the form.
  18. VS 2005 Re: DataGridView LinkColumn - how to handle nulls

    Actually, it turned out that all I needed was the custom cell:

    Public Class NewLinkCell
    Inherits Windows.Forms.DataGridViewLinkCell

    Protected Overrides Function...
  19. VS 2005 [RESOLVED] DataGridView LinkColumn - how to handle nulls

    :wave:
    I have a situation where I'm using a link column in a datagridview. The column is bound to a field in a datatable. Some of the values in the data, however, may be null. When this happens,...
  20. Replies
    6
    Views
    145

    Re: Null handling arrays

    My only guess on that would be to make sure case is the same. i.e. "S" and "s" are different. Also make sure you don't have a leading or trailing space. Little details like that can trip you up in...
  21. Replies
    6
    Views
    145

    Re: Null handling arrays

    The IndexOutOfRangeException basically says that you're trying to access an element in the array that is not there, which basically means that you've gone beyond the bounds of the array. An array...
  22. Replies
    6
    Views
    145

    Re: Null handling arrays

    The array object has a Length property, so you could check that to see if the array is as long as you expect it to be, and if so, then try to access those elements and apply them to the textbox...
  23. Thread: Search Button

    by dolot
    Replies
    2
    Views
    106

    Re: Search Button

    I would try clearing the SelectedItems collection prior to setting the Item as selected.

    So:


    If lvi IsNot Nothing Then

    lwvAppointments.SelectedItems.Clear

    ...
  24. VS 2013 Re: How Insert image to access database using function on a module ...I'm getting err

    From a very high level, you're going to need to change your approach to use sql parameters instead of putting the values in the insert query directly. You can do a search on the web - or on this...
  25. Replies
    2
    Views
    105

    VS 2005 Re: Black rectangle around button.

    Yep, that was it - thanks much!
  26. Replies
    2
    Views
    105

    VS 2005 Black rectangle around button.

    :wave:
    Got a problem. I have a form that has some buttons on it. These are placed there using the forms designer. The buttons have graphics images instead of text. This form is used as a base...
  27. Replies
    11
    Views
    301

    VS 2005 Re: [RESOLVED] What in the world is going on?

    The backups helped me narrow it down, but in retrospect the solution was so simple it plumb evaded me. I should follow the kiss principle more often.
  28. Re: Clear textbox and SetFocus for valid date entry

    NP - glad to help.
  29. Re: Clear textbox and SetFocus for valid date entry

    I would put the section of code that reads:

    ' Display message box
    ResponseDialogResult = MessageBox.Show(messageBox1Text)
    txtDoj.Clear()
    txtDoj.Focus()

    Just after the 'else' statement. ...
  30. Replies
    11
    Views
    301

    VS 2005 Re: What in the world is going on?

    More update...

    Shaggy and Dday9, you were right. Apparently I had moved IntroGISLayerInfoPanel to another subdirectory and excluded the one in the original location from the project. When I...
  31. Replies
    11
    Views
    301

    VS 2005 Re: What in the world is going on?

    Update:

    So I've traced the problem down to a folder that I moved within the project. If I revert the project to the revision before I moved the folder, everything is fine. As soon as I move the...
  32. Replies
    11
    Views
    301

    VS 2005 Re: What in the world is going on?

    Ah, I see what you're saying, Shaggy.

    So I deleted the bin and obj folders, but still having the same errors.
  33. Replies
    11
    Views
    301

    VS 2005 Re: What in the world is going on?

    This is part of what makes me wonder if it's a red herring. Take the error about InitializeComponent having multiple signatures. If I right click on it and choose 'Find all references', it only...
  34. Replies
    11
    Views
    301

    VS 2005 Re: What in the world is going on?

    Nope, nope, nope, nope, and nope - at least, not to my knowledge. I may have accidentally fat fingered or drug and dropped, but nothing intentional that I'm aware of. That what has me bumfuzzled.
  35. Replies
    11
    Views
    301

    VS 2005 [RESOLVED] What in the world is going on?

    :wave:

    So I've been coding away today - not compiling or running the application any - and suddenly I look down and there's this long list of errors in my error list. All of them seem to be in VS...
  36. Replies
    6
    Views
    248

    Re: Populating Combo Box with SQL Table Data

    That makes perfect sense, JMC - thanks.
  37. VS 2010 Re: Trying to exit the program dynamically, but the underlying process continues runn

    I thought post #5 was.
  38. VS 2010 Re: Trying to exit the program dynamically, but the underlying process continues runn

    Here's a recent thread where the issue of 'how to end an application' gets discussed some:
    ...
  39. Replies
    6
    Views
    248

    Re: Populating Combo Box with SQL Table Data

    Funny... I've never noticed that behavior. Just did a quick search of our code and it seems that, more often than not, we set the datasource first. Sometimes we set it last, though.
  40. Replies
    6
    Views
    248

    Re: Populating Combo Box with SQL Table Data

    To bind a combobox, you assign a datasource - such as a datatable - to the combobox' DataSource property. Then, you tell the combobox which column of data to use for display purposes using the...
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.