|
there are several ways to solve this:
1) make a property iIDNo (or something), make this property public and then in the 2nd form you can acces it like this: form1.iIDNo
2) make a contstructor with a parmeter (new(iidno as integer))on the 2nd form, when you click on the button you call the 2nd form with the parameter: dim frm as new form2(txtidno.text) in the contructor you then initialize a local variable wich you can use in the sql string
3) same as 2) but in stead of giving a string or integer with the constructor you just give you're form1 with it (new (ffrm as form)) on the click: dim frm as new form2(me)) in the constructor you then initialize a local variable (private frm as form) and 'fill' it frm=ffrm
then you can access you're textbox by: ffrm.txtidno.text
hope this helps
|
|
|
|
|
i want to create active x control for imageviewer using scroll bar with picture box for zoom and moving the image in vb.net
help pls
sathish
|
|
|
|
|
|
|
Hi Guys,
I have a database that stores time for example an attendance record.
The problem is when I displayed it to the datagrid those columns containing
time, show as dates on the datagrid. Why is that?
Hope you can help me with this. Thanks a lot.
-- modified at 5:12 Monday 16th July, 2007
|
|
|
|
|
Because a time cannot exist in the database without a date. Really, all you have to do is format the column to show only the time value. The date part, usually Jan 1 of some year, can be ignored.
|
|
|
|
|
What you mean is format the column to show only time on the database? right?
|
|
|
|
|
You don't format the date/time in the database. Formatting is done in the user interface for your application.
|
|
|
|
|
|
When you create your columns for the DataGridView, you simply specify the format string for the DefaultCellStyle:
DataGridView1.Columns("MyColumnName").DefaultCellStyle.Format = "M/d/yyyy"
or, using the culture-specific short date format for the current thread:
DataGridView1.Columns("MyColumnName").DefaultCellStyle.Format = "d"
All you have to do is Google for "datagridview format date[^]". There's lots of examples out there.
|
|
|
|
|
|
You should use a virtual or relative path to the css file, not a physical path.
If the css file is in the same folder as the page, just use href="real-estate.css" .
---
single minded; short sighted; long gone;
|
|
|
|
|
I tried that, but still didnt work.Ive tried a few techniques but still didnt work.I need more help.Maybe a step by step thought the whole process.
Please, I need that help.Im busy googling it and stil cant find anything.But Im trying.Thanx
kagiso
|
|
|
|
|
This question belongs in the ASP.NET forum. It has nothing to do with VB.NET, regardless of the language you used to write the code-behind.
You're using fully qualified paths to the style sheet. They will NOT work. You must use a path relative to the root of the website so you're able to deploy the ASP.NET app without worrying about directory names.
The format for a style sheet link tag is:
<link rel="stylesheet" type="text/css" href="/folder/filename.css" />
|
|
|
|
|
Thanx mate.I will redirect it to another forum.
kagiso
|
|
|
|
|
I need to deploy the VB6 dll's to Linux platform, As this dll's will be invoked by Java script. Can any help me to deploy the vb6 dll's to linux platform.
Ravi ![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
|
There an error, in the build error task shown:
Could not copy temporary files to the output directory.
The file 'computerized grading system.exe' cannot be copied to the run directory. The process cannot access the file because it is being used by another process.
The file 'computerized grading system.pdb' cannot be copied to the run directory. The process cannot access the file because it is being used by another process.
What is the meaning of that???
I accidentally select the start without debugging in the debug menu. I dont know if it is related in the error.
What should i do????
|
|
|
|
|
Rharzkie wrote: The file 'computerized grading system.exe' cannot be copied to the run directory. The process cannot access the file because it is being used by another process.
The file 'computerized grading system.pdb' cannot be copied to the run directory. The process cannot access the file because it is being used by another process.
What is the meaning of that???
I accidentally select the start without debugging in the debug menu. I dont know if it is related in the error.
You still have a copy of your .exe still running. You cannot rebuild while it is still running. You have to end the process.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
and maybe it is still running because you started a couple of threads without setting
their IsBackGround property false (so now they all must terminate before your process
will exit).
|
|
|
|
|
There is always that possibility, too.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hello everybody,
I try to add an image on the header of listview but that isn't unsccessful.
Can you help me? I use Vb.Net![Big Grin | :-D](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_biggrin.gif)
|
|
|
|
|
Why don't you just add a picturebox to your form, insert the image using the Image property, and place the image in top of your listview header?
|
|
|
|
|
Please i need your help. My father has stroke and is bedridden, he can only move his finger so inorder to communicate with him i need a program that can sense his finger movement. The output of the value is to move the cursor or even a mouse cursor up and down. If possible there will be alphabet display in mircosoft excel for him to choice. Prefer to be in excel but i don't mind using any other method. Cause what's more important is to communicate with him. I know i may asked to much but please i need the program urgently and as soon as possible. Thank you very much if anyone can help me in it.
-- modified at 4:09 Monday 16th July, 2007
|
|
|
|
|
Do you want the program to be in excell or can you write it in vb.net??
I don't know about excell but in vb.net you could use a timer wich checks every second (or milisecond depending on how fast you want you're program to react) where the mousecursor is locatated and then take apropriated action. (you can do this with the mouseposition method)
|
|
|
|