Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.25 seconds; generated 53 minute(s) ago.

  1. Re: Anyway of adding a file to my program and saving it inside of it

    As NeedSomeAnswers has explained, that doesn't actually do what you think it does. It is certainly a solution to persisting simple data between sessions on the same machine but, as explained, it's...
  2. Replies
    10
    Views
    185

    Re: I want to learn C#

    Yeah, which is possible because of the Handles keyword. The left-hand drop-down list that you're talking about lists all the member variables declared WithEvents, which is a requirement for being...
  3. Replies
    10
    Views
    185

    Re: I want to learn C#

    :confused: Do you mean the fact that C# lacks an equivalent of VB's Handles keyword?
  4. Re: Dataset data not displayed on Printpreview on second click of Preview button

    Debug the code. If it's the second time through that is the issue then only step through the code the second time. It will most likely because some variable has retained a value from the first run...
  5. Re: Anyway of adding a file to my program and saving it inside of it

    But variables exist in memory. When the application exits it is removed from memory and all variables cease to exist. In order to persist data between sessions on the same machine even you need to...
  6. Re: Anyway of adding a file to my program and saving it inside of it

    So you think that it's a simple matter of the compiled EXE file rewriting itself without having to be recompiled?
  7. VS 2012 Re: Need to create an app that will automatically run another app

    There's no official/common name that I'm aware of. I guess I would just refer to it as UI automation using the Windows API.
  8. Re: Detect if running with emulator on macintosh

    This doesn't relate to Macs specifically but I'm guessing that something similar would work:
    ...
  9. VS 2010 Re: VB.NET Upload File (any type) to MySQL Question.. not ASP

    By the way, your title says MySQL but your code is using a SqlCommand, which is for SQL Server. This namespace import:
    Imports System.Data.mySqlClientis completely meaningless because there is no...
  10. VS 2010 Re: VB.NET Upload File (any type) to MySQL Question.. not ASP

    That code is already in VB.NET. Do you actually mean that you have an ASP.NET Web Forms application written in VB.NET and now you want to write a Windows Forms application in VB.NET? If so then...
  11. Replies
    10
    Views
    185

    Re: I want to learn C#

    It's very difficult for us to recommend anything to you if we don't know what your current issues are. Personally, I learned C at university and worked in C++ for two years before self-teaching...
  12. Re: Dataset data not displayed on Printpreview on second click of Preview button

    As for the question, have you debugged the code? If code doesn't work then of course the first step is to read it in case there's something obvious amiss but, if you don't see anything, the next...
  13. Re: Dataset data not displayed on Printpreview on second click of Preview button

    Firstly, please format your posted code snippets. They are two hard to read otherwise, especially when long. Here's what your code should look like:Private Sub PrintDocument_PrintPage(ByVal sender...
  14. VS 2012 Re: Need to create an app that will automatically run another app

    You will need to call the FindWindow API to get the handle of the top-level window that you want to manipulate, then the FindWindowEx API to get the handle(s) of the child window(s). You can then...
  15. Replies
    7
    Views
    210

    VS 2012 Re: Iterating through objects

    No controls are known by "me". As is always the case, Me refers to the current object in that context, i.e. the form. That is just saying look in the form's Controls collection. If the controls...
  16. Replies
    7
    Views
    210

    VS 2012 Re: Iterating through objects

    Are the ListView controls on the form itself? If not then they will not be in the form's Controls collection. Each control is an item in its parent's Controls collection. If they are on the form...
  17. Replies
    7
    Views
    210

    VS 2012 Re: Iterating through objects

    Firstly, why are you using a Do loop when you should be using a For loop?

    As for the issue, that means that there is no ListView, or any control for that matter, with the name you provided.
  18. VS 2010 Re: [RESOLVED] Dice roller using Classes and OOP

    Here:
    Public Sub New(faceCount As Integer)
    _faceCount = faceCount
    End SubThat is the one and only constructor so when you create a Die object, you have no choice but to provide a face count,...
  19. Replies
    7
    Views
    210

    VS 2012 Re: Quick question

    Firstly, please provide meaningful titles for your threads. If everyone did as you then we'd have to open every single thread to find which were relevant. "Quick question" is a much use as no title...
  20. VS 2012 Re: Application Stops responing when exiting

    Argh! Never, never, NEVER use End. Never! If you want to exit an application then call Application.Exit.
  21. Re: Anyway of adding a file to my program and saving it inside of it

    Why would you want such a thing? It's not usually done and for very good reason.
  22. VS 02/03 Re: Add certain number of random numbers to the listbox and sum all

    I'm not admitting to anything. ;)

    The Items property of a ListBox is type ListBox.ObjectCollection, which, as the name suggests, is a collection of Object references. That's so that you can add...
  23. Re: How to eliminate tons of IF statements in unit converter program

    Pick one "standard" unit and write a bunch of methods that convert to and from that and every other unit. You can then use a Select Case on the source unit list to pick which method to call to...
  24. VS 02/03 Re: Add certain number of random numbers to the listbox and sum all

    Remember that Random.Next takes an inclusive minimum and an exclusive maximum as arguments, so that code will never generate a value greater than 9.

    Also, why convert all the Integers to Strings? ...
  25. VS 2008 Re: Why the SelectedIndexChanged event occurs unexpectedly

    The SelectedIndexChanged event is raised because the SelectedIndex property value changes. That event is raised whenever that property values changes. If what you actually want to do is receive...
  26. VS 2010 Re: What's wrong? And why doesn't this work?

    I just Googled vb.net hotkeys and the first two results, which were the only ones I checked, included examples of using the RegisterHotKey API.
  27. Re: VB.Net interaction with Avaya One-X desktop agent

    Is this agent a service that is running all the time or is it an application that you can run when needed? If the latter, does it accept commandline arguments?
  28. VS 2010 Re: What's wrong? And why doesn't this work?

    You've wasted several months then. GetAsyncKeyState is completely the wrong function to be using. If you want hotkeys then you use the RegisterHotKey function. There are plenty of examples around...
  29. Re: Need software architecture advice/guidance please...

    That's all quite reasonable. Keep all but your presentation logic out of the presentation layer and you'll have to duplicate as little work as possible. If you want to ensure maximum compatibility...
  30. VS 2012 Re: How to make a vertical listbox and imput images ?

    Keep in mind that each access of My.Resources creates a new object. That means that, if you use My.Resources.imagename multiple times, you are creating multiple discrete Image objects that all look...
  31. VS 2012 Re: How to make a vertical listbox and imput images ?

    That doesn't address the original requirement of the images being placed side-by-side.
  32. VS 2012 Re: How to make a vertical listbox and imput images ?

    Give it a go and post back if you have issues. I'm more than happy to help if you genuinely have problems but I'm not about just doing it for people so that they don't have to try. There's plenty...
  33. VS 2012 Re: How to make a vertical listbox and imput images ?

    What do you want to do with the images once they're displayed? You could perhaps use a TableLayoutPanel or FlowLayoutPanel with PictureBoxes in it but that won't give you the ability to select items...
  34. Replies
    5
    Views
    126

    Re: Load from Excel to vba application

    OK, that is indeed VB.NET. I'm not quite sure what the VBA application has to do with it then. Can you please provide a FULL and CLEAR description of exactly what you're trying to achieve?
  35. Replies
    5
    Views
    126

    Re: Load from Excel to vba application

    If you're coding in VB.NET then it's a VB.NET question. If you're coding in VB6 then it's a VB6 question. If you're coding in VBA then it's a VBA question. Which one are you using? It sounds like...
  36. Re: Screenshot of second monitor. Preview 2nd screen from 1st.

    A crash is just an unhandled exception. Look at the exception and it will tell you what went wrong. You should ALWAYS handle the UnhandledException event of a VB.NET Windows application and you can...
  37. Replies
    6
    Views
    166

    Re: Save button

    Just note that that saves values on a per-Windows-user basis. As long as that's what you want then it is best solution. If you mean multiple application users under one Windows account then thats...
  38. VS 2010 Re: New record inserted using Insert Into, But it is not updated in Access Database,

    Same page. :)
  39. VS 2010 Re: New record inserted using Insert Into, But it is not updated in Access Database,

    Firstly, why are you calling ExecuteReader? Are you reading any data? No, so don't create a data reader. In this case, call ExecuteNonQuery. To learn the appropriate way to handle various common...
  40. VS 2010 Re: i want to split textbox to smaller textboxes

    That overload of String.Split actually has its `separator` parameter declared as a ParamArray. That means that there's no need to actually create an array yourself. You simply pass zero, one or...
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.