Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: The Big One!

    by IanRyder
    Replies
    1
    Views
    146

    VS 2012 Re: The Big One!

    Hi,

    The thing to do here is to expand on what you have already done. In this case you should create a new Class to hold the relevant information for each student read from the file. For instance:-...
  2. VS 2012 Re: VB.net 2012 Export List view to existing excel but not overwrite

    Hi,

    Like I said I rarely use Excel with VB.NET but after a quick look around the internet about selecting the Last Empty Row in an Excel Spreadsheet I found this simple formula for selecting the...
  3. VS 2012 Re: VB.net 2012 Export List view to existing excel but not overwrite

    Hi,

    I have just tried your example since I do not do a lot with Excel but the one thing that stands out is that everything is added to the Excel Spreadsheet starting at cell "A1". Based on your...
  4. VS 2012 Re: How to set picturebox location in FlowLayoutPanel ?

    Hi,

    Just to add to what passel has already said, you cannot “set coordinates” of a control added to the FlowLayoutPanel (FLP) but one thing you can do is control the Index of a control added to...
  5. Re: How do I remove an item from a collection via listbox

    Hi,

    Rather than adding a List of items to a ListBox using its Add Method and then trying to keep the ListBox and its associated List synchronised I would suggest that you use a BindingList here as...
  6. Replies
    16
    Views
    292

    Re: mysql class connection confusion

    Hi,


    More efficient, Yes, since I have used Using Blocks with the Database Objects which are then Disposed off when they are finished with.


    No, but less lines in the code do make for easier...
  7. Replies
    16
    Views
    292

    Re: mysql class connection confusion

    Hi,

    Unfortunately you are making things a bit harder for yourself than you need to. The first thing to mention is that you should only ever open your Database Connection when you actually need to...
  8. VS 2013 Re: [RESOLVED] Need help making an image flicker when a file changes (like a hard dri

    Hi,

    Good to hear you got it working but I have one comment for you. The CreatPauseAsync function is still just that, a basic function, and as such, can still accept arguments as part of that...
  9. Replies
    2
    Views
    151

    Re: Reset a combo box

    Hi,

    The only way you can get that error is if you have NOT added any items to the ComboBox or you have NOT set the Datasource of the ComboBox.

    So, how have you populated the ComboBox since the...
  10. VS 2010 Re: Convert the long codes to short code but have some error encounter

    Hi,

    Sorry MeSH but you are being daft!

    You MUST surely realise that the SQL Code you have posted only returns 1 Field (Index 0 From a DataReader point of view) which is some “course_count”...
  11. VS 2013 Re: Need help making an image flicker when a file changes (like a hard drive access)

    Hi,

    You basically need to create your pause on a Secondary Thread so that the UI Thread stays response to complete any screen updates and continue to do what you need it to. There are various ways...
  12. Replies
    12
    Views
    290

    VS 2010 Re: [SOLVED]Need in LOOP using For Loop

    Hi MeSH,

    Unfortunately that's way "Off Scope" for this Specific Thread. So please start a new Thread with your new question and I am sure that either I or someone else will be able to help you...
  13. Replies
    12
    Views
    290

    VS 2010 Re: Need in LOOP using For Loop

    Good to hear and glad you got it working.

    Cheers,

    Ian
  14. Replies
    12
    Views
    290

    VS 2010 Re: Need in LOOP using For Loop

    Hi,

    I missed the point where your Course_ID field is a string? If your Course_ID field will only ever contain Numbers which define the actual Course ID then you could change the field type in your...
  15. Replies
    12
    Views
    290

    VS 2010 Re: Need in LOOP using For Loop

    Hi,

    Sorry, Just ignore that point for the moment. It is the Database Owner User Name that I used to create the example.

    Cheers,

    Ian
  16. Replies
    15
    Views
    333

    VS 2010 Re: [NEED CODE] Need code for timeGapCount

    Hi,

    passel is correct. The first thing to do is to RENAME your TextBoxes to the Naming Convention I have suggested. Once done, you need to make sure that the Time where you are is within the...
  17. Replies
    12
    Views
    290

    VS 2010 Re: Need in LOOP using For Loop

    Hi,

    To add to what passel has already said, you are going about this all wrong. The first this to do is to only Execute ONE Query against the database which returns all 15 counts for you and then...
  18. Replies
    15
    Views
    333

    VS 2010 Re: [NEED CODE] Need code for timeGapCount

    Hi,

    The easiest way to do this sort of thing is to create a Naming Convention for your Time Group Controls which can then be calculated in code and allows each control to be retrieved from the...
  19. VS 2010 Re: SQL Error but string seems to be logical wise fine but not working.

    Hi,

    You need to get to know a few quirks when dealing with MS Access from VS. The first of which is that the wildcard character in Access being the Asterix character CANNOT be used from VS. You...
  20. VS 2008 Re: Capture the up down keys in a user control

    Hi,

    Even though you are using VS2008 and I wrote this example in VS2013 I cannot see any reason why this would not work if you have coded things correctly? The best advice I can give you now is to...
  21. VS 2008 Re: Capture the up down keys in a user control

    Hi,

    The KeyPreview Property is actually a legacy property from VB6 and does not exist within a UserControl. The only way to get round this is to Override the ProcessCmdKey method. Have a play with...
  22. VS 2010 Re: How to unzip and zip files, without importing a dll or custom software?

    Hi,

    Try not to get too despondent with your lack of success with DLLís. Itís what they are designed for and your current experience suggests to me that you did something wrong somewhere along the...
  23. VS 2012 Re: Listview Column Headers and Items not showing

    Hi,

    VS has a habit of swallowing exceptions on the Load event so one way to diagnose your issue is to encase your loading code in a Try Catch Block to see where you are going wrong.

    If that...
  24. VS 2010 Re: VS 2010 display data JSON into Datagridview

    Hi,

    To do this you need to Deserialize the JSON String into an object that .NET can work with. This is typically a Class or a Structure of some kind that matches the JSON Structure. Here is a...
  25. VS 2010 Re: How to Go To Next Or Previous Procedure In Vb.net?

    Hi,

    You can do this by emulating the old VB6 environment.

    Go to Tools, Options, Environment, Keyboard and then set the “Apply the Following Additional Keyboard Mapping Scheme” to “Visual Basic...
  26. Re: How to deploy vb.net project with SQL Server 2014 Database

    Hi,

    What you are referring to is typically know as a Client/Server Setup. Have a watch of this youtube video which may help you to understand what you need to do next:-

    Understanding Client...
  27. VS 2013 Re: find string pattern within a string and pull only that string from it

    Hi,

    You are not explaining things very well but based on what I have seen now it seems that what you are trying to do is get all the Upper Case Characters and All Numbers which both precede and...
  28. Thread: Gridview Data

    by IanRyder
    Replies
    17
    Views
    544

    VS 2010 Re: Gridview Data

    Hi,

    As you can see I wrote my example to execute the opening of Form2 on the Clicking of the CheckBox Cell in the DataGridView which may not be exactly what you want. If you still want to try this...
  29. VS 2013 Re: find string pattern within a string and pull only that string from it

    Hi,

    Assuming that your new requirement falls within the same structure as you described in post #1 than I would just go with something simple to solve the whole thing. Have a go with this one:-
    ...
  30. Thread: Gridview Data

    by IanRyder
    Replies
    17
    Views
    544

    VS 2010 Re: Gridview Data

    Hi,

    You can do this this by checking which column has been clicked on the DataGridView and if it’s the CheckBox column in question then you can open another Form and pass the current row of the...
  31. VS 2013 Re: How to populate a ComboBox and ListBox with an XML file.

    Hi,

    Sorry, you should have mentioned that you were using WPF. What has been shown is for Windows Forms. For WPF, you should have something like the following in the XAML file:-

    <Window...
  32. VS 2013 Re: How to populate a ComboBox and ListBox with an XML file.

    Hi,

    I am not helping any further until you have listened to what I have said and acted on the issues that I have already guessed and outlined above. In addition to this where is your Handles...
  33. VS 2013 Re: How to populate a ComboBox and ListBox with an XML file.

    Hi,

    Since you are not posting any code to help diagnose the issue, I suggest that you read post #2 again carefully and make sure that you have created the Lists and Set the properties of the...
  34. VS 2013 Re: How to populate a ComboBox and ListBox with an XML file.

    Hi,

    You have obviously not written your code correctly. I suspect that what you have said is:-

    With categoryList
    .DisplayMember = "name"
    .ValueMember = "name"
    .DataSource =...
  35. Replies
    3
    Views
    286

    VS 2012 Re: Combo Selection with Changing Images

    Hi,

    I am not sure why you would want to use an If statement here since it’s the SelectedIndexChanged Event of the ComboBox that does the work. If you want to use a Label instead of a PictureBox...
  36. VS 2013 Re: How to populate a ComboBox and ListBox with an XML file.

    Hi,

    The easy way to do this would be to use a Dataset to read the XML file and then bind the associated tables of the Dataset to the required controls. Unfortunately, since there does not seem to...
  37. Replies
    3
    Views
    286

    VS 2012 Re: Combo Selection with Changing Images

    Hi and welcome to the Forum,

    One way you can do this is to add the images you want to display to the Resources section of your project, load those images into a List at Runtime, display that List...
  38. VS 2010 Re: SortedDictionary - sort keys in reverse order

    Hi,

    You can pass a Comparer to the instantiation of the SortedDictionary to change the sort order that is applied to the Keys. i.e:-

    'Create the Comparer to be used
    Private Class...
  39. Replies
    2
    Views
    275

    Re: How to insert a blank file check ?

    Hi,

    You do not need to write an “Empty File Checker”, you just need to write your routine correctly. The reason why you are getting this error is because you call the ReadLine and Split methods on...
  40. Replies
    10
    Views
    352

    Re: VS 2010 If Else If Issue

    Hi,

    Give the kid a break guys and do yourself a favour jasonpaul2001 and delete that text in post #6. FunkyDexter beat me to it.

    You have got a lot to learn but give it time and you will get...
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.