|
It does nothing. I click the box. The name (from the file) does not appear in the textbox.
If I'm suppose to be reading some line by line file, I don't know where that is.
I will try this.
The multiple forms are pop ups. The alternative is a much larger window that takes much more effort and results in the Designer window popping up and eating all my work (as I'm no longer able to work on a program when I've the Design view.) Hence my strategy change.
|
|
|
|
|
In response to someone saying I should not use a form to affect another form, as this code does, I tried using a Dialog box for the same effect. I have the exact same irreconcilable error. The code works in the test project but will not work once I am trying to build the program.
"Not Work" I click the check boxes and no text appears in the textbox before or after clicking the OK button.
There are no error messages before nor during Debugging. I have hit a wall, again, of a VB error that makes no sense.
|
|
|
|
|
That's what the debugger is for, along with Breakpoints and the Watch window where you can easily see the currently scoped variables and their values.
Seriously, if you don't know how to use the debugger, stop what you're doing and learn. Without it, you're just guessing at what the code is really doing and frustrating yourself in the process. Quite frequently, you'll find that the code is working differently from what you thought it should be doing.
Read and watch these.[^]
|
|
|
|
|
Adding to what Dave has said:
As a bit of a pointer towards debugging have a look at the following two variables after their values have been set.
Set a breakpoint at
Form2.TextBox1.Text = (lines(RandomNumber))
run your code and when the breakpoint is hit hover your move over lines and RandomNumber .
This will show you the values these variables have been set to.
Debugging is one of the most important skills you will need as a developer and even after 24 years of codeing I still use the debugger daily.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
If I'm expected to learn something, I need to know what it is, where it is and how it works.
I learn by doing, not by reading. Especially since I have been unable to find anything specific to what I'm doing.
Note: I opened VB and looked for "Watch." It has one option in the instructions that don't work because it requires selecting options not available. I am unable to do something without accurate instructions.
|
|
|
|
|
Zyndell wrote: I learn by doing I get that .
However I think you might need to read something to give yourself a bit of a start with debugging - after all if you did not learn by reading you would not be posting messages on this forum and reading the answers.
As I am feeling friendly today I thought I would find a Youtube debugging tutorial[^] that might be a good place to start.
[edit - after DeathByChocolate's post on the correlation between looks and speelling I though I should correct my spelling]
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
modified 3-Sep-13 11:02am.
|
|
|
|
|
I'm not objecting to using this. The problem is I can find absolutely no use for it. What I can manage is to put in a breakpoint that simply stops the debugging process and accomplishes nothing. I'm used Help the try to find out about debugging, watch and breakpoints and it doesn't accomplish anything.
Please explain, or give me a URL that explains, how to do this. As my attempts to find this information, both on my computer and by Google has just left me even more frustrated with the situation.
|
|
|
|
|
Have a look at the debugging tutorial(CLICK HERE!!!)[^] url I included in my last post.
It's a basic youtube tutorial and will give you enough to get started.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Hi firends,
recently im working on a inventory project, and my problem is i have a datagrid bounded with access database, and datagrid contains 5 columns, i want that when user press ENTER key at the first cell it must move to 3rd column, and again user hits ENTER key at 3rd column it must move to 5th column, is this possible..? Please help me
im using this code for go 3rd column but i dont know how to move for 5th column after use hits ENTER ket ay 3rd column
Datagrid1.col = Datagrid1.columns.item(2).colindex
|
|
|
|
|
Seriously? Just add 2 to the current column to calculate the next column to select.
Veni, vidi, abiit domum
|
|
|
|
|
Thanks for reply Richard,
my columns are like these
UOM BARCODE PACKING COST PRICE
from the uom column when user hits ENTER i want it to move Packing column, then again user hits ENTER at Packing column i want to move price column..
|
|
|
|
|
So what's the problem?
Veni, vidi, abiit domum
|
|
|
|
|
Why on earth are you using VB6 to do, what I'm assuming is, new development work??
It's a language and environment that is long since dead.
|
|
|
|
|
You can use Heirarchical Flex Grid. This control is better for your requirement.
If you didn't get solution, try this control
|
|
|
|
|
Is there anyone who would like to work with me on Update System?
I am going to make update system that will work over php and mysql for reading latest updates, change logs etc..
|
|
|
|
|
Wrong place to post this.
First, this has nothing to do with VB.NET.
Second, you should have placed it under the Product LifeCycle - Collaboration/Beta Testing forum.
|
|
|
|
|
It has everything with vb.net since it will be coded in vb.net and it will use only mysql database for informations storage like download link of new version, updates texts etc.
|
|
|
|
|
That is irrelevant. Your question is asking for people to work with you, so it has nothing to do with Visual basic, it's a question about collaboration.
Veni, vidi, abiit domum
|
|
|
|
|
can't find project or library error when i am run the vb6 project
|
|
|
|
|
Means that you're missing a reference. Google is your friend; it's an unsupported dead language.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I developed one application using vb6. when I make EXE the Kaspersky Antivirous detect my application as Trogen virous and deleted my application. How to solve my problem?
Please help me..
Thanks in advance
|
|
|
|
|
Hi salih1989,
In the past, I had Avast, and it detected my apps as ¨posibly¨ infected, my Csharp apps were stopped every time, then I searched Avast website, and google, simply no answer, then I changed Avast, today I use AVG.
But you must consider that perhaps your app, was infected by a virus already present in you computer.
hope this helps,
Carlos.
|
|
|
|
|
You have to report that to Kaspersky and talk with them. Only they can adjust their virus search patterns.
|
|
|
|
|
Anything written in VB6 is "suspicious"; the language is dead, the IDE is no longer for sale. There's a lot of malware written in VB6 since it nicely compiles to native.
Switch to VB.NET
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I am building a excel macro that simply brings up the Outlook Global Adress book and allows you to select a contact and it puts the contact's email address back into an excel cell (or msg box). The Sub below does two things, first part brings up the name of the person who you select, the second part brings up the email address of the current user.
All I want is to bring up the EMAIL of the person you select (not the current user).
Here is my code:
Sub GetEmailAddressClean()
Dim cdoSession, cdoAddressBook, olkRecipients, objAddressEntry, objEU, objAE
CreateObject ("MAPI.Session")
Set cdoSession = CreateObject("MAPI.Session")
cdoSession.Logon "", "", False, False
Set olkRecipients = cdoSession.AddressBook(, "Global Address List", 0, False)
For Each objAE In olkRecipients
MsgBox objAE.Name
Next
With CreateObject("MAPI.Session")
.Logon "", "", False, False, 0
MsgBox .GetAddressEntry(GetNamespace("MAPI").CurrentUser.EntryID).Fields(&H39FE001E).Value
End With
Set olkRecipients = Nothing
cdoSession.Logoff
Set cdoSession = Nothing
End Sub
|
|
|
|