Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.47 seconds.

  1. Re: Winging It But, Getting Trouble Selecting Data From Database

    When you create a typed DataSet, a DataTable is generated for each database table and a corresponding table adapter is created for each DataTable. Each table adapter has Fill, GetData and Update...
  2. Replies
    9
    Views
    203

    VS 2013 Re: Move Files and parent folder???

    I think I may have misinterpreted something you said earlier and, if so, I may have misled you a little. I was assuming that you needed to create the new folder in code but I just realised that you...
  3. Re: Tick checkbox on selected rows in datagrid

    What's the point of a For Each loop in which you don't use the loop control variable? The loop control variable is the whole point. This:
    For Each selectedrow In...
  4. Replies
    9
    Views
    203

    VS 2013 Re: Move Files and parent folder???

    Think about it. How many folders do you want to create? One, right? If you want to do something once, why would you do it inside a loop? Have you ever considered actually picking up a pen and...
  5. Replies
    6
    Views
    161

    5.0 Re: Invoking event

    You still obviously don't have a clear understanding of the difference between an event and an event handler if you're talking about doing anything "in" an event. There's no such thing as "in" an...
  6. Replies
    9
    Views
    203

    VS 2013 Re: Move Files and parent folder???

    You've already got your answer. You just haven't read it properly. I said:You are no longer moving the original but you are NOT creating a new folder, which is what I specifically said to do. If...
  7. Replies
    1
    Views
    92

    VS 2012 Re: Combobox not updating

    Firstly, when you're posting code snippets, please format them for readability, i.e.

    your code here

    or


    your code here

    Most importantly, that will keep the indenting when you copy and...
  8. Re: Visual Basic 2013 Need help with using data sets in mdi project

    It's very simple: do you want one set of data that all child forms use or do you want each child form to use its own set of data? If it's the former then you would use one DataSet in the parent form...
  9. Replies
    6
    Views
    161

    5.0 Re: Invoking event

    As kfcSmitty says, you're looking at things totally incorrectly. What you have described is not invoking an event at all. You're simply talking about calling a method. An event handler and an...
  10. Replies
    9
    Views
    203

    VS 2013 Re: Move Files and parent folder???

    Of course your code moves all the files in the folder, because it's moving the whole folder. If you have a suitcase full of clothes and you move the suitcase, would you be surprised that all the...
  11. Replies
    2
    Views
    102

    VS 2010 Re: Delegates Assignment

    So where are you actually stuck? Your post comes across as asking us to do your homework for you.
  12. Re: What's happened to my Windows update ?

    Have you tried to find out what update it is that is failing and looked for the log to see what happened?
  13. Replies
    2
    Views
    128

    Re: Listview multiselect action?

    That code is not performing any action on or with any of the selected items. Inside the loop, ListViewItem is the variable that refers to the current item but you don't use that variable anywhere. ...
  14. Re: How to get index of every item in listview [VB.NET]

    Do you know how a For Each loop works?
    For Each itm In MainMenu.listView1.ItemsThat's your loop control variable. It contains the current item so if you want any information about the current item...
  15. Replies
    2
    Views
    131

    Re: Items.Add Code Not Working

    The issue is that you're explicitly creating an instance of ResultsForm and making changes to it and then you display the default instance instead of the one you created. That last line should be:...
  16. VS 2010 Re: Need a code to delay the execution of the code

    Normally you would use a Timer and move your code to its Tick event. You then Start the Timer when the Button is Clicked.

    That said, you might also consider this:
    ...
  17. Replies
    5
    Views
    178

    VS 2012 Re: left join in linq query in vb.net

    The DefaultIfEmpty method is the key to outer joins. Here's a C# example:

    https://msdn.microsoft.com/en-us/library/bb397895.aspx

    The principle is exactly the same and I'm sure that you could...
  18. Replies
    5
    Views
    178

    VS 2012 Re: left join in linq query in vb.net

    So you have a query and you want to do something. What's the actual problem? Presumably it doesn't do what it is supposed to but what does it actually do? Have yo considered providing some actual...
  19. Re: Need urgent help with Piglatin code.. Please!!

    Here's the way to tackle a problem like this. Start by writing down the rules. Don't do it in your head. Write it down. Take a few examples and run through them manually following your rules as...
  20. Replies
    9
    Views
    209

    Re: get screen resolution on windows 2000

    That's probably something that you should have mentioned at the outset. This thread belongs in the Office Development forum then. I will ask the mods to move it.
  21. Replies
    9
    Views
    209

    Re: get screen resolution on windows 2000

    Is this a WinForms application?
  22. Replies
    9
    Views
    209

    Re: get screen resolution on windows 2000

    Have you tried Screen.PrimaryScreen.Bounds.Size? That should work in theory but the documentation doesn't specifically indicate that it's supported on Win2K.
  23. Re: Trying to setup development environment for Windows Phone Development?

    Which Express edition did you install? There are three: one for web apps, one for Windows desktop apps and one for "Metro" apps, i.e. Windows Store and Windows Phone Store apps. It's that last one...
  24. VS 2013 Re: Strange behavior in VB.net 2013 + entity Framework 6

    You can do whatever you want. You don't need my permission to write code that you know is not as good as it could be so if that's what you want to do then just go ahead and do it. I'm not going to...
  25. VS 2013 Re: Strange behavior in VB.net 2013 + entity Framework 6

    It's not strange at all. You were given an answer but you just didn't want to hear it because it was inconvenient. It is NOT correct to use ToString in that scenario... on either side of the...
  26. VS 2013 Re: Strange behavior in VB.net 2013 + entity Framework 6

    So what? If you want to write good code then that's what you will do. If you don't care about writing good code then that's your prerogative but I have no interest in promoting writing poor code...
  27. VS 2013 Re: Strange behavior in VB.net 2013 + entity Framework 6

    Again, it comes down to how the LINQ provider converts your VB code to SQL code. The methods that you use will often not actually be evaluated by .NET but converted to equivalent SQL and evaluated...
  28. VS 2013 Re: Strange behavior in VB.net 2013 + entity Framework 6

    You need to remember that each LINQ provider uses the same set of properties and methods but implements them in a different way. LINQ to Entities converts your LINQ query to SQL code so you have to...
  29. Replies
    1
    Views
    91

    VS 2013 Re: Saving a List to Disk

    Create a StreamWriter and then call its WriteLine method instead of Console.WriteLine. That's not the only option but it will mean almost no change to your code.
  30. VS 2012 Re: how to use an accumulator with a progressbar in visual basic???

    There is no such actual thing as an accumulator. If you want increment a variable with each click then you can do so but there's really no point. The ProgressBar already does it for you via its...
  31. VS 2012 Re: how to use an accumulator with a progressbar in visual basic???

    Where you would get started is the documentation for the ProgressBar class. Why would you not read the instructions as a first step? It's completely basic if you know what members the ProgressBar...
  32. Replies
    2
    Views
    126

    Re: Automating menu code

    You can write a single method that takes a form as an argument and contains that code and then just call that method from each menu item's Click event handler and pass the appropriate form. You...
  33. VS 2012 Re: Convert data from database to be displayed in DataGridView

    You would use a combo box column. It works the same way as a regular ComboBox control, so you can display any text you want to correspond to any value you want. Follow the CodeBank link in my...
  34. VS 2010 Re: Form codes connecting each other

    If you don't know what an object is then you haven't really done your homework anyway, so you really should read a tutorial or two anyway. There's a link to one at the bottom of my signature below. ...
  35. VS 2010 Re: Form codes connecting each other

    There are tutorials all over the place about how to code in VB. VB is an object-oriented language so everything you use is an object. A form is an object, a Button is an object, a String is an...
  36. VS 2010 Re: Form codes connecting each other

    Forms are just objects so they can interact with each other the same way any other objects do. Any two objects, whether both, neither or just one is a form, interact with each other in exactly the...
  37. Replies
    5
    Views
    202

    Re: Access in Visual Basic 2012

    The data is stored in a binary format but it's not quite that simple. If you're interested to see what the format is, check out the CodeBank thread of mine linked to in post #2. It is possible to...
  38. VS 2012 Re: NumericUpDown control in VS2012

    If you think that you should use the Increment property in that case then you obviously don't know what the Increment property does. That suggests that haven't read the relevant documentation and if...
  39. Replies
    5
    Views
    202

    Re: Access in Visual Basic 2012

    There isn't any specific support for the Access Attachment data type in the ACE OLE DB provider, therefore there's no support for it via ADO.NET. Maybe they'll add it in the future but they haven't...
  40. VS 2012 Re: NumericUpDown control in VS2012

    Have you put any thought into it? Have you tried to break the problem down into smaller parts? How do you usually find out when a change has occurred in a NumericUpDown? How do you usually get a...
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.