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...
Type: Posts; User: IanRyder
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...
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...
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....
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...
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...
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...
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...
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...
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...
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
Hi Niya,
Actually, I would disagree with you on that point but I will not hijack this thread to debate the point.
Cheers,
Ian
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...
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
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...
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...
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...
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...
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.
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...
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,...
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...
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...
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?...
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...
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...
Hi,
Here is a start for you:-
1) Use a StreamReader to read the file line by line. Have a look here:-
...
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...
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...
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...
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...
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...
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...
Good to hear and you are welcome.
Cheers,
Ian
Hi,
Yes, you can simply assign the value to a variable. i.e:-
Dim myValue As Integer = CInt(myDataRow(0))
Hope that helps.
Cheers,
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...
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:-
...
Hi,
Here you go:-
CREATE TABLE Test (active nvarchar(1) NULL default 'Y')
Hope that helps.
Cheers,
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...
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...
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...