|
ok now thats a good solution. the form stores all the controls in an array what is the name of that array?
Mian Rashed Inam Khattak
|
|
|
|
|
thats nice one mate, but could you tell what array does the form uses for the purpose of storing controls.
thanks
Mian Rashed Inam Khattak
|
|
|
|
|
if you reach the code of your frame, you'll see into the constructor (New() ) a call to InitializeComponent() .
in this function, I found the first line as
Me.components = New System.ComponentModel.Container
i so think that they are stocked there.
but you still don't answer my question : why don't you use the identification name of each control (which must be unique) ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
the reason for doing so is that i have almost 13 textboxes on the form and i dont want to control each of them separately.
any ways thanks for the help i think this will help my problem to be worked out.
thanks once again.
Mian Rashed Inam Khattak
|
|
|
|
|
I'm using the System.io.Stream object to read a binary file. The file contains various value in different formats. The problem is that the file contains float-values and the stream-object dumps the data in a byte-array. Is there any way to convert, for example 4 of the read bytes into a 32-bit float? Or do I have to read the file through some other means?
|
|
|
|
|
i would like to do this
in form code
1. txtbox.text = usercontrol.Field("FldName")
2. usercontrol.Field("FldName") = Txtbox.text
i used the following code
1. Public Property Get Field() As Fields
Set Field = oRst.Fields
End Property
2. Public Property Set Field(ByVal vNewValue As Fields)
Set oRst.Fields = vNewValue
End Property
no problem with everything, works fine if i run within vb6 but triggers error on 2. "Invalid use of property" when i compile the ocx.
tnx
|
|
|
|
|
I'm not sure if the usercontrols.field is a property you have to set. you might want to try:
Public Property Let Field(ByVal Value As Fields)
oRst.Fields = Value
End Property
Also it doesn't look like your get property will work correctly. How does the property know that you intend to get the "FldName" field?
|
|
|
|
|
actually my main problem is how to code this
in ford code
usercontrol.field("FldName") = txt.quantity
i just thought that the code below would work
in class module
Public Sub Fields(ByVal vNewValue As Fields)
set oRst.Fields = vNewValue
End Sub
since the code below works well in retrieving data
in form code
txtquantity.text=usercontrol.field("FldName")
in class module
Public Property Get Field() As Fields
Set Field = oRst.Fields
End Property
if you want i could send you the whole usercontrol code so you could take a look at it too.
btw im working on my own grid
tnx
|
|
|
|
|
Hi all...
I need help on how to bring Windows XP Style button on my VB.NET application.I'm just creating a simple application having some four to five buttons like NEW ,SAVE,OK,.... like this .PLz help me
|
|
|
|
|
Would you be looking for something like this[^]?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello sir..
i am trying to install my window service(called tracking) through InstallUtil command but i got the following error:
Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name Documents, or one of its
dependencies, was not found..
this service is running fine on start after debugging but after that a message pops up which informs that the service has not been installed, though i can see it running in task manager as a process...
please help me out..
thanks in advance
puneet
|
|
|
|
|
Hello,
if someone knows how to help me I will really appreciate the answer.
I need to download a number from a web-page. I have created in Excel a model for stock evaualtion but I need to update the daily price. I have tried to open the web-page by simple Workbooks.Open Filename:="http://finance.yahoo.com/q?s=A" and it works. My issue is that it takes a long time because my link is very slow.
Could anyone help me with some other method/function that is much quicker on how to get the Last Trade: Price from the web-page?
Thank you in advance. Meantime I'm going to learn more through helps ))
Kind regards
ra
|
|
|
|
|
You might want to find a webservice that provides this information. You won't be transferring all kinds of other junk with the information you want.
If you still want it from that page, though, your sunk. You can't speed it up without changing the Internet connection your using.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi all,
In my VB program, it always needs a dialog box and buttons to control command. Can I execute my program and functions without clicking any buttons in the dialog box? That means I just need to click the start button, and then I can obtain my result.
For example, I want to print something in a text file. I do not want to press a button in the dialog box.
Thanks.
~~~~Landy
|
|
|
|
|
Your application must be written in a way that exports this functionality. If your app wasn't written to do this in the first place, then no, you can't do what you want.
In order to get this top work, you'd have to do what Windows does. Store most of the code in .DLL files that exports the functions you want to use in other apps.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to display the web page in a IE browser control.
How to resize the web page with the control?
Thanks!
|
|
|
|
|
What??? The page will render in the entire client area of the control. You can't change that. The only thing you can change is the size of the IE control itself. But I suspect this isn't what you want.
Could you provide more detail about what your trying to do?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to show web page in a mobile phone area.
So the screen should be resized.
|
|
|
|
|
Keep explaining... It's becomming a little more clear.
Are you saying that you need to test a website with a phone-sized browser window??
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yes.
There is a mobile phone picture on the computer screen.
The web should be shown within the screen of the mobile phone.
|
|
|
|
|
|
I have already put a webbrowser control on winform in vb.net 2005 beta 2.
However, the content of html page do not change its size in the control.
The text and image keep its original size.
|
|
|
|
|
Of course it does! You can't scale the page rendering down. You can try to play with the View|Text Size menu, but that's about it. You can't change the scale of text that is specified in the page source and you can't scale the images down.
The site you go to must be designed for mobile browsers. You can't expect CodeProject to work on a mobile browser, do you? In order for it to work, CP must have a seperate site that is designed for 320x200 browsers.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to know the free space on a CD disk. It seems a very simple issue, but the CD disk information doesn't include free space. Any one who knows how to get free space from a CD disk, could please share it with me.
Thank you very much.
Tim
|
|
|
|
|
You'd need to first establish that it can be written on. Then you could just assume that it's a 700MB disc and do some basic maths, surely ?
Christian Graus - Microsoft MVP - C++
|
|
|
|