|
I have actually managed to figure out exactly what I needed to do. I used the .Controls collection, but took it farther. I looped on the total number of controls to look at .Controls.Item(index). This allowed me to browse through every control on the form. I needed to do this because I was generically assigning data to them.
Thank you for your inteset in helping
On another note, I was concerned by the fact that the .Controls property returns an Object, not a Collection. How can I assign an object to anything? Can this only be done with a variant data type?
|
|
|
|
|
I have Created a Class with multiple properties.
Public Class Item
Private _Code as String
Private _Description as String
Public Property Code as String
... Get/Set _Code etc...
End Property
Public Property Description as String
... Get/Set _Code etc...
End Property
Public Sub FetchFromDatabase(Code as String)
... Code which lookus up the record in a SQL table and stores the field data in
... _Code / _Description
End Sub
End Class
Now I have a Windows Form with 2 Textboxes.
The first is not bound and the second is bound to the description prop of myitem class.
When I enter an itemcode in the first one it executes the fetch Command but the second one is not filled with the fetched description ...
I need some help here.
|
|
|
|
|
Hey,
Is there a way to locate a folder on a user's machine regardless of what operating system they are using.
I want to be able to locate the 'C:\Documents and Settings\user\Local Settings\Application Data\' folder and then copy my own folder to it when my program is installed.
Is this possible
thanks for your help
Chris
|
|
|
|
|
it sure is...
check out:
environment.getfolderpath(environment.specialfolders.localapplicationdata)
hope this helps.
-jim
|
|
|
|
|
Cheers Jim,
I will check this out, thanks for hte help
Chris
|
|
|
|
|
I made a report in Crystal Report 9.2 and I am displaying this report through VB.Net on a form. I want e-mail this report to an e-mail account accoridng to the user.
So Plz help me on this problem.
Thanks
Prakash
pkc
|
|
|
|
|
would any one have come across a system property which returns the appearance style? or is there a method to detect if which theme is in use
thanks
Mr_Wilber
|
|
|
|
|
|
I am programming Crystal Report in VB6 with Report creation API functions.
May i ask a question:how do i set a condition formula at runtime for section or report objects such as FieldObject, TextObject,... with Report creation API functions.
Please reply me soon.
Thanh you very much.
|
|
|
|
|
Hello,
I'm trying to create an installation package for my rather simple VB.net application and the users don't want to use it because they don't want to have to install the ".net" framework that it asks them to upon installation. I thought there was a way to include the libraries in the installation package (or the program itself) so they didn't have to do this?
How do I build it so they don't have to install anything from MS?
thanks,
JennyP
|
|
|
|
|
It appears that you can't. The .NET Framework files in the deployment solution don't actually end up in the final set up file, they just exist there to stop the setup project build from complaining about missing dependencies.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
If that's true, it's VERY lame... I should have used Borland.
JennyP
|
|
|
|
|
You are allowed to distrubute the redistributable on its own. And there are likely ways around it (creating a small installer bootstrap that calls one install after another is one that springs to ming). And I don't think Borland will be any different as, from my understanding, its a licencing issue rather than a technical one.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
bitpusher wrote:
If that's true, it's VERY lame... I should have used Borland.
For the second time in a week, I simply cannot understand how somebody can get to the END of writing an app and only THEN discover that their client machines need the Framework.
|
|
|
|
|
J4amieC wrote:
For the second time in a week, I simply cannot understand how somebody can get to the END of writing an app and only THEN discover that their client machines need the Framework.
Hello. In retrospect, I should never ASSuME anything, but I believed that there would be no real difference between 6.0 and .net---in 6.0 I was able to statically link the few libraries I used. In .net, it's not an option.
JennyP
|
|
|
|
|
VB6 had a runtime too, the only differences were:
1) It wasnt the 23Mb Monstrosity that is the .NET Framework
2) It was pre-installed on most users's machine as VB had been around quite some time.
Within a few years the same may be true for the .NET framework as 2) above, but for now you need the redist of the .NET framework.
|
|
|
|
|
there is a bootstrapper right here:
http://msdn.microsoft.com/vstudio/downloads/tools/bootstrapper/
|
|
|
|
|
There are projects out there that will install just the components of the .NET Framework that are needed to run your app. There is a HUGE downside to doing this though. If your clients eventually get around to installing the .NET Framework or expect that a .NET Framework Service Pack will fix a problem with your app, they are SOL because the fix won't install. The reason? The .NET Framework is not installed and the Service Pack will not install just the files it needs to fix your partial installation. Software has already hit the market that requires the Framework, so they'll have to install the thing eventually. Why not start with your app?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
There are projects out there that will install just the components of the .NET Framework that are needed to run your app.
Hello,
I'd very much like to use this if you know where they are? My distribution is VERY limited (less than 50, I'd say), and the lifetime is less than a year.
thanks,
JennyP
|
|
|
|
|
|
How do I create a sub prodecure and call that procedure from the navigation menu items.
|
|
|
|
|
Like this?
Public Sub Test(ByVal whereto As String)
If whereto = "gotohere" Then
GoTo gottohere
End If
MsgBox("Im here")
gottohere:
MsgBox("Im here too")
End Sub
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
Test("gotohere")
End Sub
|
|
|
|
|
or this?
SUBROUTINE linka(d, n, f)
INTEGER d, n, f, table, document
C In subroutine linka, via primary entry point
DO 10 i = 1, f, n
.
.
.
10 CONTINUE
RETURN
ENTRY search(table, f)
C In subroutine linka, via entry point search
DO 20 i = 1, f
.
.
.
20 CONTINUE
RETURN
ENTRY punctuation(document)
C In subroutine linka, via entry point punctuation
DO 30 i = 1, 5
.
.
.
30 CONTINUE
END
Sorry, the Punchcards are in cold storage but here is the Code Map.
PROGRAM main
|<---- CALL entry1(val)
| CALL entry2(val) ------>|
| |
| END |
| |
| SUBROUTINE sub |
| |
-----> ENTRY entry1(a) |
a = a + 5.0 |
RETURN ! Return to main |
|
ENTRY entry2(a) <--------
a = a + 10.0
END ! Return to main
|
|
|
|
|
oop's here it is:
PROGRAM main
|<---- CALL entry1(val)
| CALL entry2(val) ------>|
| |
| END |
| |
| SUBROUTINE sub |
| |
-----> ENTRY entry1(a) |
a = a + 5.0 |
RETURN ! Return to main |
|
ENTRY entry2(a) <--------
a = a + 10.0
END ! Return to main
|
|
|
|
|
Hello,
First off, i would like to know is it possible to make VS.NET 2003 by default opens Projects with UNICODE .... kinda Preference options within some applications ... i was looking for ... that option but i didn't find
Second Off .... i would like to know which Unicode i can use for i.e. Russian language or some Cyrilic unicode typing ... Serbian, Macedonian etc. I was trying almost all Cyrilic and Unicode format but noone was workable ...
Thanks in advance
|
|
|
|