Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.22 seconds.

  1. VS 2008 Re: Sqlite database. Get data by DATE problem .HELP HELP

    Don't use string concatenation to insert values into SQL code. Delimiters and formats are just two of the issues that can crop up if you do. Follow the Blog link in my signature below and check out...
  2. Replies
    1
    Views
    51

    VS 2012 Re: Skype names

    I don't use Skype so I don't know the answer to your question but, if it was me, I'd start by looking at what other properties that User object has. One of them may well be the user's full name or...
  3. Re: DataGridView Delete Rows with UserDeletingRow

    You seem to be abusing that event. The idea is that the event is raised when the user tries to delete a row and you can then stop that deletion. You seem to be doing much more than that, which is...
  4. Replies
    6
    Views
    118

    Re: Window 8

    Oh look, it's to the immediate right of the address box in both cases. You can (and I do) auto-hide the Ribbon too, in which case it's in pretty much exactly the same position as before. Sounds...
  5. Replies
    6
    Views
    118

    Re: Window 8

    There is a Search button on the Charms menu. I don't have the original Windows 8 installed anywhere any more as I've upgraded to Windows 8.1 Update everywhere so my Search charm may work differently...
  6. Re: Struggling with the many definitions of the basics in Visual Basic

    Further to what Shaggy said, strict definitions of of things might not carry over between languages either. For instance, in VB.NET, all functions are methods but not all methods are functions...
  7. Re: Struggling with the many definitions of the basics in Visual Basic

    I doubt that you're going to find one place that provides concise definitions of all the terms and concepts that you want to understand. That sort of knowledge is generally built up from a number of...
  8. Re: VS2013 Writing a CAD code using VB.NET

    I'm not sure what you're doing or have done but you might look into using WPF. If it's a fairly simple program then you may not need anything more.
  9. Re: On UI i can delete the record, but i am unable to delete the record from DB????

    You don't actually need a BindingSource but it makes various binding-related operations easier. In this case, deleting the current record becomes a single call to the RemoveCurrent method of the...
  10. Replies
    4
    Views
    88

    VS 2010 Re: Visual Inheritance

    You're going to have to provide a better explanation of what you mean. Can you provide a specific example where the behaviour is not as you want and what behaviour you would want instead?
  11. Replies
    4
    Views
    102

    VS 2010 Re: Array Object

    It's amazing what a good explanation of the fundamentals will do for your ability to grasp any subject. :)
  12. VS 2008 Re: Programming exam help please

    1. As you are given a character, Push it onto a Stack. When you're done, Pop each character off the Stack and display them. A stack is "last in, first out" (LIFO), so you will be displaying that...
  13. Re: what all operations i can perform and add apart from PK n FK?

    Generally speaking, what you do is build your database first, adding tables, columns, primary keys and foreign keys there. You then run the Data Source wizard and it generates a DataSet for you,...
  14. Re: On UI i can delete the record, but i am unable to delete the record from DB????

    Yeah, that code's all wrong. What you should be doing is:

    1. Call Fill on a data adapter to populate a DataTable.
    2. Bind the DataTable to a BindingSource.
    3. Bind the BindingSource to the...
  15. VS 2010 Re: updating thru a bindingsource

    The way you've bound that data, changing the selection in the ComboBox is just going to select a different record, not edit a record. If you want to edit a record using a ComboBox then you need to...
  16. VS 2010 Re: updating thru a bindingsource

    Regardless, there's no reason to create a BindingSource in code. Did you add the ComboBox in the designer? Then add the BindingSource too. Even if you have to set up the binding in code, still add...
  17. VS 2010 Re: updating thru a bindingsource

    In the first code snippet, there's no indication that you're actually editing any of the data. The only control you bind to is a ComboBox and it's for selection, not modification. If there are no...
  18. VS 2010 Re: How to remove bookmarks in the code?

    Rather than edit your first post, add a new post that provides the solution and then use the Thread Tools menu to mark your thread Resolved.
  19. Replies
    5
    Views
    122

    VS 2013 Re: What are the Components?

    Good advice. The free Express editions were introduced with the 2005 version of VS. From 2005 to 2010 there were:

    VB Express: Windows applications using VB
    C# Express: Windows applications...
  20. Replies
    5
    Views
    122

    VS 2013 Re: What are the Components?

    VB6 was the last COM-based version of VB. The .NET platform debuted in 2002 with Visual Studio .NET, which supported, among other things, VB.NET and C#. VB.NET had a syntax based on VB6 and earlier...
  21. Re: Old VB6 Modules concept into C# VS2013

    Having said all that, let me address the point of code organisation. Static classes in C# and modules in VB.NET should be used sparingly. They have their place, particularly now that they must be...
  22. Re: Old VB6 Modules concept into C# VS2013

    Modules still exist in VB.NET and (as far as I'm aware, although I never used VB6) they still work pretty much the same way. The C# equivalent of a VB.NET module is a static class.

    In VB.NET, you...
  23. Re: Need Help with Validating a certain part of the Dir

    A lot of applications store their path in the Registry. It may well be that Steam stores its games' paths in the Registry. You'll have to check for yourself to see if that's the case. If it is...
  24. Replies
    13
    Views
    187

    Re: IF statement with Time

    You simply do what I have already said but instead of doing a COUNT on the records you do a SUM on the column containing the number of searches. You've already been asked to post your code and you...
  25. Re: Is there a way to filter SqlDataReader

    I haven't read your post because your title automatically doesn't make sense. A data reader simply reads the result set of a query. If you want to filter the data that populates that result set...
  26. Re: Need Help with Validating a certain part of the Dir

    So, it's always going to be the folder for the Steam version of Left 4 Dead 2 or it might not be Steam or might not be that game? If it is always that, does Steam or the game store that location in...
  27. Replies
    4
    Views
    102

    VS 2010 Re: Array Object

    1. Do you know how to declare a property?
    2. Do you know how to declare an array variable and create an array object?
    3. Do you know how to write a loop?

    If the answer to any of those three...
  28. Re: Need The Steps To Start Implemntaion The Program

    Read both... just to be sure. ;)
  29. Replies
    4
    Views
    95

    VS 2013 Re: Search through listview subitems

    Think about it. Your 'SearchIndex' starts at 0. You search and let's say that you find a match at index 10. You increment 'SearchIndex' by 1 so it is now 1. The next time you start searching, you...
  30. Replies
    10
    Views
    183

    Re: VS 2010 Serial Port - Need Help

    I wasn't actually answering your question. I was just making your code easier to read for others. I've never really used a SerialPort so I rarely try to answer questions on that topic.
  31. Replies
    2
    Views
    107

    VS 2010 Re: convert ico file to png

    You can create an Icon object from the file, call ToBitmap on that to create a Bitmap object, then call Save on that to save a PNG file. Please don't ask for specific code without having tried to...
  32. VS 2010 Re: Syntax error in insert to statement, oledbexecption was unhandled. Help please

    By the way, you really should create one command builder in the same place as you create the data adapter, not a new one each time you save some changes.
  33. VS 2010 Re: Syntax error in insert to statement, oledbexecption was unhandled. Help please

    The most common reason for a SQL syntax error when using a command builder is using a wildcard for the column list in the query when one or more of the column names are reserved words (as suggested...
  34. Replies
    10
    Views
    183

    Re: VS 2010 Serial Port - Need Help

    Correctly formatted code with empty methods removed:
    Imports System
    Imports System.ComponentModel
    Imports System.Threading
    Imports System.IO.Ports


    Public Class Form1
    Dim myPort As Array...
  35. Re: sql server 2005 - Is it possible to return datatype date in short format?

    You are clearly confused about how dates work. You say that you want a date and not a string but you also say that you need a specific format. Those two things are mutually exclusive. Dates have...
  36. Replies
    7
    Views
    151

    VS 2012 Re: Restart application

    I've used Application.Restart and it worked for me. Where are you using it and what code is around it? If you create a new project and just add Button and call Application.Restart when it is...
  37. Replies
    4
    Views
    98

    Re: Difficulty removing tooltips

    Ah, I see the issue now. In 'ClearToolStripMenuItem_Click' you appear to be referring to a ToolTip that you added to the form in the designer but in 'TrayButton_Click' you are creating a new...
  38. Replies
    1
    Views
    57

    Re: Combobox to fill datagridview

    Think about what you do for one table:

    1. Execute a query using a data adapter to populate a DataTable.
    2. Bind the DataTable to a BindingSource.
    3. Bind the BindingSource to the grid.
    4. Save...
  39. Replies
    13
    Views
    187

    Re: IF statement with Time

    You would calculate the date and time 150 seconds ago and then get a count of the number of records where the date and time is greater than that time. If that value is greater than or equal to 10...
  40. Replies
    4
    Views
    98

    Re: Difficulty removing tooltips

    Is your Clear menu item at the top level of the menu or a child of another menu item?
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.