Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 4.20 seconds.

  1. Replies
    4
    Views
    185

    Re: Drag'n'Drop cursor problem?

    That's probably not the way to go. It would probably be better to use an owned form, i.e. call Show(Me). That way, the second form will be shown in front of the first form.
  2. Replies
    5
    Views
    159

    VS 2019 Re: Read certain value from HTML file

    You want to read text from HTML data. The HAP is for reading HTML data. You really don't see the connection?
  3. Replies
    5
    Views
    159

    VS 2019 Re: Read certain value from HTML file

    You should use the HTML Agility Pack to read HTML data in .NET code.
  4. Re: [RESOLVED] help with mssql query to return top five selling products by date

    If the issue has been resolved then it would be nice for you to provide your solution, which may help others with similar issues. It also means that we can provide improvements if your solution is...
  5. Re: Display Image From dataGridView to multi picturebox in VB.NET

    The first one is because it should have been BindingSource1.Current, which I did actually mending in my post. If you had pointed out what the error was in the first place, instead of just that there...
  6. Re: Display Image From dataGridView to multi picturebox in VB.NET

    No it isn't. You just used it wrong.
  7. Re: Display Image From dataGridView to multi picturebox in VB.NET

    My code is fine. That simply means that you have a String variable named Path at a higher level than that method, while my code was referring to the System.IO.Path class. Notice how I use a more...
  8. Re: Display Image From dataGridView to multi picturebox in VB.NET

    You should bind the DataTable to the DataGridView via a BindingSource. You can then handle the CurrentChanged event of that BindingSource and get the current record from the Current property. You can...
  9. Re: [RESOLVED] What causes this rectangle ?

    Have you disabled visual styles for that project? The visual cue for an active button is different based on that. With visual styles disabled, a box on the Button is used but I thought that it was...
  10. Re: Which variable type for math on duration value ?

    You have posted this in a CodeBank forum, which are for sharing working code samples, not asking questions. I have asked the mods to move this thread to the appropriate forum.
  11. Replies
    10
    Views
    335

    Re: Management of sql server using vb6

    The word "instance" has a specific meaning in the context of SQL Server. Are you actually saying that you want to create a copy of your database schema or do you genuinely want to create a new SQL...
  12. Re: Handle combobox items inside the datagridview column

    As for the issue, you can't keep changing the items in the column. You need to change the items in the relevant cell. If an item is selected in a cell then that item has to actually exist in that...
  13. Re: Handle combobox items inside the datagridview column

    First of all, why create a new column and then immediately discard it and use an existing one?


    Dim comboitem As New DataGridViewComboBoxColumn
    comboitem =...
  14. Replies
    153
    Views
    2,526

    Re: Is this justice???

    I think the main question is, if someone enters your home illegally, what are they there for? Most people would be there to steal and will flee themselves if given the chance.
  15. Replies
    13
    Views
    336

    VS 2019 Re: [RESOLVED] Check checkbox in a loop

    I'm not really sure why you would play with that in the first place. The OfType method already returns items of the specified type as that type, so your cntrl variable is already type CheckBox. That...
  16. Replies
    153
    Views
    2,526

    Re: Is this justice???

    You're forgetting that these people simply don't care about other people.
  17. Replies
    153
    Views
    2,526

    Re: Is this justice???

    I have seen a number of examples of people online saying that they want someone to break into their house so that they can shoot them with impunity under SYG laws. There are undoubtedly more people...
  18. Replies
    13
    Views
    336

    VS 2019 Re: [RESOLVED] Check checkbox in a loop

    If you wanted to do it without any LINQ at all (OfType, Where and Count are all LINQ extension methods) then you could do it like this:

    For Each ctl In myContainer.Controls
    Dim cb =...
  19. Replies
    13
    Views
    336

    VS 2019 Re: Check checkbox in a loop

    For future reference, expressions like this are likely to cause confusion:

    You should say "test" or the like rather than "check", given that "check" has another obvious meaning in that context...
  20. Re: How to make Xamarin Android App talk to VB Desktop Application

    I don't use Xamarin so maybe I'm wrong but I wouldn't expect that they would talk to each other. They would each talk to the same server. Maybe that server is just a database containing shared data...
  21. Re: Unable to Delete Worksheet with Specific Name using Microsoft.Office.Interop.Exce

    This is just an educated guess but does the Worksheets collection have a Remove method?
  22. Replies
    2
    Views
    191

    Re: Break-in to long running program

    You should follow the CodeBank link in my signature below and check out my thread on using the BackgroundWorker class. You can adapt the examples to your specific needs.
  23. VS 2010 Re: Sum Selected Cells of DataGridView only in specific columns

    The total is just a number, so you can format it any way you want. Convert it to a String by calling its ToString and specify the format you want.
  24. Replies
    6
    Views
    367

    Re: Databinding

    Then your issue is resolved, because I have already explained that one wouldn't because one can't.
  25. VS 2015 Re: control.TabStop gives combobox a focus

    Or you could just set ActiveControl to Nothing if you don't want there to be an active control.
  26. Re: remove duplicate from combo box connected to database

    Seems you've misjudged yourself considerably.
  27. Replies
    6
    Views
    367

    Re: Databinding

    The whole point of data-binding in Windows Forms is to bind data to the UI. At the heart of it is the System.Windows.Forms.Binding class. If you read the documentation for that class, the fact that...
  28. VS 2015 Re: control.TabStop gives combobox a focus

    When a form is displayed, if it contains controls that can receive focus then one of those controls will receive focus. By default, that will be the first control in the Tab order. If you want a...
  29. Re: remove duplicate from combo box connected to database

    Like what? By pointing out what you did wrong and what you should do instead? Oh, you poor thing. Seriously, so many people around here react to the simplest bit of criticism like you're stabbing...
  30. Replies
    7
    Views
    312

    VS 2010 Re: email exe file

    I'm not really seeing what this has to do with VB.NET.
  31. Replies
    153
    Views
    2,526

    Re: Is this justice???

    Small correction: it's Smith & Wesson.
  32. Re: remove duplicate from combo box connected to database

    Look at the title of this thread:

    What has that question got to do with that subject? Nothing, so it doesn't belong in this thread. The issue you asked about is now resolved, so you should use the...
  33. Re: DataGridView question - extra space showing on headertext

    Is your issue resolved? If so, please use the Thread Tools menu to mark the thread Resolved so that we can see that you don't need any further help without opening the thread and reading both posts.
  34. VS 2015 Re: CellContentClick in DataGridView not working...

    Nothing in post #3 changes anything about post #2. It's good that you provided more specific information, although you ought to have done that in the first place. The likely reason for the exception...
  35. VS 2015 Re: CellContentClick in DataGridView not working...

    This:

    lblMeterNumber.Text = DataGridView2.SelectedRows(0).Cells(0).Value.ToString()
    How many rows are selected? I'd wager it's none.

    You don't need any code to populate those Labels anyway....
  36. Replies
    7
    Views
    256

    Re: how to learn C# for the first time

    This might be a good place to start:

    https://dotnet.microsoft.com/en-us/apps/aspnet/mvc

    Microsoft will use C# for all examples.
  37. Replies
    3
    Views
    234

    VS 2010 Re: Combo Form Load Check

    If you want to execute code only when the user makes a selection then handle the SelectionChangeCommitted event rather than SelectedindexChanged.
  38. Re: How to include mdb file inside vb.net Application

    It's working properly and you're trying to break it. The data file should not be in the bin folder to start with. It should be created in your project folder or somewhere completely outside the...
  39. Re: remove duplicate from combo box connected to database

    Finally, you should also call AddRange or else set the DataSource rather than calling Add in a loop. You can call ToArray on your results first and then use that with either.
  40. Re: remove duplicate from combo box connected to database

    Also, if you're going to use LINQ to DataSet then you should use it everywhere, i.e.
    row["BaseMs"].ToString()
    should be:
    row.Field(Of String)("BaseMs")
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width