Search:

Type: Posts; User: IanRyder

Page 1 of 8 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    56

    Re: auto run code based on time

    Hi,

    If this is something which you need to do within your VB project then have a look at this, which is a modification of something I posted a few months ago. Read through the code to understand...
  2. VS 2010 Re: database question ..actually not sure what the title should be on this..row mergi

    Hi,



    OK then, have a go with this example of using LINQ to group your Documents and create a new table with a single Document name and your Models joined into a single string:-


    Public...
  3. Replies
    1
    Views
    84

    Re: Need Some Array Help

    Hi,

    This feels like an assignment so just break this down into logical steps and have a look at these. i.e:-

    1) Read The File into an Array....
  4. VS 2008 Re: No value given for one or more required parameters.

    Hi,

    Your error is here:-


    oleAdapter1 = New OleDb.OleDbDataAdapter("Select * From Table1 where Table1.Location = combobox7.text", Conn)

    The way you have it now combobox7.text is being...
  5. VS 2010 Re: Need help with simple list box project code

    Hi,

    Well that was a bit of a shock! I was just reading a thread about a Pizza project and was just thinking to myself that no one is going to help here until you have shown you had helped...
  6. Replies
    8
    Views
    220

    Re: XML writing problem

    Hi,

    You will need to code one of the DataGridView's events to do this depending on when you want to add the date. As an example you could code the RowValidated event to add the date. In this...
  7. Replies
    6
    Views
    266

    VS 2010 Re: [RESOLVED] Random Number

    Hi,



    To specifically answer your question, the reason you are getting this error is due to fact that you are declaring the variable within the If statements and therefore the scope of this...
  8. Replies
    8
    Views
    220

    Re: XML writing problem

    Hi,

    You have got this error due to the fact that you have tried to read the XML file into the same DataSet in which you created the the XML Schema thereby effectively duplicating the schema within...
  9. VS 2010 Re: any difference between a Do...Loop and a While..End While loop?

    Hi Niya,

    Ahhhh, I now see your point since I made a typo in my original post by saying "Do Loop" instead of "Do/Loop Until", so, valid point made.

    However, that said, as a human programmer you...
  10. VS 2010 Re: any difference between a Do...Loop and a While..End While loop?

    Hi Niya,

    In fear of Hijacking this thread, (OP, please forgive me and just Shout if this is starting to confuse you or is getting in the way of answering your question), but:-



    and
  11. VS 2010 Re: any difference between a Do...Loop and a While..End While loop?

    Hi Niya,

    Actually, I would disagree with you on that point but I will not hijack this thread to debate the point.

    Cheers,

    Ian
  12. VS 2010 Re: any difference between a Do...Loop and a While..End While loop?

    Hi,

    The difference between a While/End While Loop and a Do/Loop Until Loop is that the code within a While Loop may never be executed since the Condition controlling the execution of the Loop is...
  13. Replies
    5
    Views
    221

    Re: What is the answer to this ?

    Morning Niya,

    The answer to this, using the rules of BODMAS is 9, since BODMAS defines the rules for Math as:-

    Brackets
    (over)
    Division
    Multiplication
    Addition
    Subtraction
  14. Re: Please HELP I have aged in a week trying to figure this out have no slept in 36 h

    Hi,

    I am not sure what else to suggest since you seem to have ignored what I suggested. Also, if you are getting an error that states that a file could not be found then you need to check that you...
  15. Re: Please HELP I have aged in a week trying to figure this out have no slept in 36 h

    Hi,



    No, what I have demonstrated here is creating a Private variable at the Class level that is populated when the Form loads. Once loaded, this collection of in-memory strings can then be...
  16. Replies
    4
    Views
    120

    VS 2008 Re: Location Message box Help Urgent!!!!!

    Hi,

    You can do this by creating an object of Type Rectangle which represents a region on your form. You can then use the IntersectsWith Method of the Bounds Property of the PictureBox to see if...
  17. Re: Please HELP I have aged in a week trying to figure this out have no slept in 36 h

    Hi,

    From what I can see of your code you are definitely making things more difficult than they need to be.

    The first thing to do is read your Zip file into memory so that you save time by NOT...
  18. Replies
    1
    Views
    82

    Re: Display error if listbox empty.

    Hi,

    You would test the Count property of the Items collection of the ListBox. i.e:-


    If ListBox1.Items.Count = 0 Then
    MsgBox("No Items In ListBox!")
    End If

    Hope that helps.
  19. Replies
    8
    Views
    220

    Re: XML writing problem

    Hi,

    I do not agree with dunfiddlin's post here since you were already on the right track with a DataSet. However, what you will need to do is to create two related tables within the DataSet where...
  20. Replies
    6
    Views
    188

    VS 2010 Re: String collections

    Hi,



    The first thing to address is your comment above. You seem to have misunderstood the fact that ALL variables that are declared within the My.Settings collection are, by default,...
  21. Thread: For statement

    by IanRyder
    Replies
    4
    Views
    131

    Re: For statement

    Hi,



    The first thing for you to realise is that what you are describing is NOT a For Loop. You are basically describing "How many times is a button pressed". To actually do this you would...
  22. Thread: For statement

    by IanRyder
    Replies
    4
    Views
    131

    Re: For statement

    Hi,

    Can you please try and explain that one a little better and in a lot more detail, since I and many others on this Forum, know how to use and explain a For loop, but understanding your question...
  23. Replies
    6
    Views
    188

    VS 2010 Re: String collections

    Hi

    Unless you are streamlining your project, I am slightly confused as to why you would want to save a collection of strings that are already defined and saved within the settings of your project?...
  24. VS 2010 Re: Search for a folder path and save it as a variable.

    Hi,

    You need to use a FolderBrowserDialog control to do what you are looking for. You can then setup a Variable in the Settings of your Project as type...
  25. Replies
    2
    Views
    129

    Re: VB2010: Calling another sub procedure

    Hi,

    All you need to do here is to expand your Class to include a Parameter in your print method signature and then call the method passing an argument defining whether to call an additional...
  26. VS 2010 Re: Help please! Stuck on .ini files

    Hi,

    Here is a start for you:-

    1) Use a StreamReader to read the file line by line. Have a look here:-
    ...
  27. VS 2010 Re: Help with CSV Data Manipulation

    Hi,



    Ah, I missed that bit, Yes!, You can do this using LINQ to Group your information and summarize the fields you need. Here is an example:-


    Private Sub Button1_Click(sender As...
  28. VS 2010 Re: Help with CSV Data Manipulation

    Hi,

    I have not had a look at dday9's example in his/her signature but one way to easily do this is to use the TextFieldParser Class. Here is a quick example:-


    Imports...
  29. Replies
    10
    Views
    370

    Re: Simple multiplication progran help needed

    Hi,





    The first thing to do if there is something that you do not understand is to read the Documentation for the method that you are using. MSDN has a wealth of information on every Method...
  30. Replies
    6
    Views
    266

    VS 2010 Re: Random Number

    Hi,

    To begin with you should be using the Random Class in .NET rather than the legacy Rnd function that was introduced with earlier versions of VB. Using this calss, here is a streamlined version...
  31. Replies
    5
    Views
    207

    Re: Database queries

    Hi,

    I deliberately left the population of the ListBox as you had already shown it in your first post. So, the first thing for you to understand and learn is "What is being returned from the LINQ...
  32. Replies
    2
    Views
    151

    VS 2010 Re: group box and radio buttons

    Hi,



    In each of your events, you would test for the state of the Checked property to see whether you need to display your message or not. i.e:-


    Private Sub rdoYearly_CheckedChanged(sender...
  33. Re: [RESOLVED] Populate label with full file path from listview item

    Good to hear and you are welcome.

    Cheers,

    Ian
  34. Replies
    5
    Views
    235

    VS 2012 Re: XML file and Combobox

    Hi,

    Yes, you can simply assign the value to a variable. i.e:-


    Dim myValue As Integer = CInt(myDataRow(0))

    Hope that helps.

    Cheers,
  35. Re: Populate label with full file path from listview item

    Hi,

    You can do this by adding the Path to your file to a hidden column in the ListView. To do this you do NOT need to declare another Column Header for the ListView when you load the Form but just...
  36. Replies
    5
    Views
    235

    VS 2012 Re: XML file and Combobox

    Hi,

    You can do this by Casting the SelectedItem of the ComboBox to the DataRowView Class. This then becomes a representation of the record held within the bound Table in the DataSet. i.e:-

    ...
  37. Replies
    5
    Views
    206

    Re: Create Table

    Hi,

    Here you go:-


    CREATE TABLE Test (active nvarchar(1) NULL default 'Y')

    Hope that helps.

    Cheers,
  38. Replies
    5
    Views
    207

    Re: Database queries

    Hi,

    That plea deserves at least a good starting point so here are some comments for you:-

    You are getting the error "reference to an non-shared member requires an object reference for the...
  39. Replies
    10
    Views
    370

    Re: Simple multiplication progran help needed

    Hi,

    A few things for you then:-

    1) Since you are just starting out with VB turn Option Strict ON and Option Explicit On in your project settings and leave them on for all your projects. This...
  40. Replies
    10
    Views
    370

    Re: Simple multiplication progran help needed

    Hi,

    You have not mentioned what is going wrong so I cannot specifically comment on your problem but the one thing I would say is to remember basic school maths. What does BODMAS mean?

    Hope that...
Results 1 to 40 of 300
Page 1 of 8 1 2 3 4