no problem,
By the way, You can drop the 'Me' part of the code.
It works non the less but you only have to add the forms name before a control if you want to call it from another form.
maybe you can try a frame, picturebox, ... in stead of the panel.
these controls are containers to (so they can contain other controls) but I don 't know if the can get bigger than the form.
try writing
Imports ADODB
on top of the code
above
Public Class Form1
To search or to post - that is the question.
To search first and to post later. THAT is the answer.
I think you could better use a class.
Creat a class (project | add class) Item (or another name.
then use the property's (readonly writeonly)
The best thing about the class is that you can overwrite the ToString Function so that is the thing that will be shown.
for example :
public class...
I think the easiest way is just to use :
Me.RichTextBox1.LoadFile(OpenFileDialog1.FileName)
I know that it is done this way in VB 6 and probably in VB.Net to.
To search or to post - that is the question.
To search first and to post later. THAT is the answer.
hello everybody,
I have this strange syntaxis error that i can 't seem to fix.
This is my code:
Dim strSQL As String
'record updaten
strSQL = "UPDATE " & mconT_Categorie & " SET "
strSQL &= mconA_ParentID & " = " & node.ParentID & ", "
strSQL &=...
thanx for the reply nomi.
But vb.net doesn 't seem to know the 'TypeDescriptor' - object.
Is there any way i can add it to my project?
To search or to post - that is the question.
To search first and to post later. THAT is the answer.
Hello everybody,
I am planning to add a feature to my program where I want the user to be able to choose some colors and fonts for his forms.
(background, color of the fonts, ...)
I use a access DB to save everything.
But I can 't seem to store a color in a DB and retrieve it so it can be...
Try adding the following to your code.
Public Structure OFSTRUCT
cBytes As Byte
fFixedDisk As Byte
nErrCode As Integer
Reserved1 As Integer
Reserved2 As Integer
szPathName(OFS_MAXPATHNAME) As Byte
End Type
The API u use is using a User Defined...
You can use the
Application.StartupPath
That is the path where the executable is started from
To search or to post - that is the question.
To search first and to post later. THAT is the answer.
I have both VB.NET and VB6 installed on my PC. I have studied VB6 for 2 years and now I am learning VB .NET.
VB .NET has its differences with VB6.
One of the biggest dissapointments for me was the use off control arrays. Using a control array in VB 6 is pretty simple but it is quite difficult...
sorry for bothering you guys.
I found the answer to my problem myself.
It should have been :
For i = 0 To Int(Left(key, 1)) - 1
For j = 1 To Len(strCode) - i Step Int(Left(key, 1))
thanx to everybody anyway.
hello paulbent,
I use the option explicit but didn 't copy it to the thread.
And for the other thing you 've said.
I replaced it to :
For i = 0 To Int(key) - 1
and I get the same error.
It works sometimes.
But when you set the key to 5 and use a word with length 7 (e.g.CYPHERS) it returns...
Hello everybody,
I am trying to create a Text encoder - decoder using the rail fence technique.
But I get a runtime error when I try to decode the text.
I can 't seem to find the problem.
Can anybody help me?
here is the code.
Private Function decode2(ByVal strCode As String, ByVal key As...
Hello everybody,
I am creating a program with a listview and a treeview.
I have put the treeview in a usercontrol(for a more readable program) and I am planning to do the same with the listview.
But i am testing a few things and the dragover event of the treeview doesn 't seem to respond if I...
If you are trying to create a control array,
Then the code is pretty simple,
Just set the Index = 0 of the textbox in design mode.
then add the following code:
Option Explicit
Private Sub Form_Load()
Dim txtbox As TextBox
Set txtbox = Text1(1) ==> 1 = index of the new textbox...
hello JESTAR,
The showFont can 't be started without Flags.
You have to tell the commondialog wich fonts you want to use.
the following Flags are available:
cdlCFScreenFonts for the screen fonts
cdlCFPrinterFonts for the printerfonts
cdlCFBoth for screen- OR printerfonts...
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.