Thanks jmcilhinney, i think that's what i'll do. What do you think about C#?
I already know some basic c++, of course it wouldn't hurt, but do you think it would be worth it to practice and read up on programming with its predecessor C as well? I read that it could be more efficient than C++...
What exactly are you having trouble with?
if you want to move items between listboxes i think you can just use the remove, removeAt, add, or insert functions of the items.
lstBox1.items.add(obj)
lstBox1.items.removeAt(indexNumber)
'lstBox1.items.'...and so forth...
I don't think there is a...
Hi all,
I've been programming for about 1-3years and i really love it. i've played around with html, asp.net, flash and what not since i was like 15, but nothing serious. I took intro courses to vb, c++, and java. And everything else i'm self-taught. I have the most knowledge in and mainly...
I dont use mySQL to often, just some comments as i looked through your code. Maybe it might be of some help?
I've used SQL and from what i remember you only put the ' ' marks around what is suppose to be of a string value. like in sql a select statement would be
SELECT columnName FROM...
Thanks jmcilhinney, I did a little playing with it and i think i got it. So basically in the situation with the code above replacing the overloads with "Shadows" would make no difference because thats what the overloads is doing here.
Hey jmcilhinney, i see what your saying, it def is not the best approach. I understand how you cant overload a function by only having different return types and all but the code i wrote above does work, originally i tried to override it, but showdialog is not overridable.
I tested the code...
i agree with jmcilhinney, but if for some reason you cant use the datetimepickers control, heres another suggestion, you can try overloading the showdialog function of a form in order to pass the date from one form to another.
for example
The form that opens the dialog box
Public Class Form1...
Here is some sample code i wrote, hope this helps.
Imports System.IO
Imports System.Xml
'I didnt take the time to write this, but i did test it and it works. Please let me know if this helps. All i have on the form is just two listboxes. The
'content in the xml files and the results this...
you can try something like this?
Imports System.IO
Dim dir As DirectoryInfo = New DirectoryInfo("C:\XMLFiles")
Dim files() As FileInfo = dir.GetFiles()
'go through all files found, besure to only read xml files
For element As...
One way you can do it is to create another loop and go through all your times and count how many times the max time repeats after you found your max time. Then simply just report that count with the max number like "2 people won 1st place"
so after this line of code
max = times(1)...
Regarding your "Also, the settings form is asking the closing question two times " The reason why the closing message happens twice is because the Exit() calls the closing event, so if you rewrote that part like the following it will only ask you once.
If (MessageBox.Show("Are you sure...
You can try putting the subroutines in a module, or if you create a new instance of that form and then use the methods it should work. Otherwise you can make it "Shared"
Some Examples: creating a new instance
Public Class frmOld
Sub doSomething()
MessageBox.Show("Wee")
End Sub...
...of the panel to show up on the left of it, and so forth.
Dim xLoc As Integer = (offset.X + location.X + Panel2.Width + (find.Length * RichTextBox1.Font.SizeInPoints))
Dim yLoc As Integer = (offset.Y + location.Y + RichTextBox1.Font.Height + Panel2.Height)...
...on the total characters in the question
lblQuestion.SetBounds(0, 0, pnQuestions.Width - 4, CInt(Math.Ceiling(qnaInfo.question.Length / 75) * 14))
pnQuestions.Controls.Add(lblQuestion)
'adds each choice
Dim yLocation As Integer = lblQuestion.Height + 16...
Hey im not sure if this is your issue but it looks like your calling a variable from MainForm1 from your other form. If you change the scope of that variable to public and class-level it should work fine.
Public Class MainForm1
Public dormResults As Integer
Private Sub...
Thanks for the fast reply jmcilhinney and clearing things up for me.
I added the parameters to the SQL after reading what you said. It was working before but i guess access was just making assumptions? which is why the typeName parameter had to be first rather than what i had specified since i...
Hi all,
I consider myself to be a beginner to intermediate programmer, i'm pretty new to working with an access file through vb. This is of low priority since i am getting the results that i want, but i just don't understand why it's working this way. :confused: Any explanation would be much...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.