|
a 'user control' will do what you want.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
not really
I have a 'user control' with on it a label and a textbox
I want to be able to set the properties off the label and textbox at design time (I can do this but when I run the test project the properties are reset to there original value's)
|
|
|
|
|
You'll have to write code to re-expose those properties yourself. You don't make the Label and TextBox controls public. You keep them private, then expose just the properties you want. For example, in your UserControl code, you can expose the Text Property of it's constituant Lable control like this:
Public Property LabelText() As String
Get
Return MyLabelControl.Text
End Get
Set(ByVal value As String)
MyLabelControl.Text = value
End Set
End Property
|
|
|
|
|
So there is no way to expose them all (except doing making a property myself for all of them)
Ok thank you for the help, I guess I'm off to writing properties now
|
|
|
|
|
I have a VB.Net COM dll that I created and installed (using regasm) on a server. On this server is an application that calls different code modules based on events. One of those code modules calls the com dll which fires off and does a few things. If this process is kicked off from the server, everything works just fine. However, when the application is run from a workstation, the COM call fails. The workstation calls the code modules that reside on the server, the same ones that the server uses.
So why would the call to the COM object work fine on the Server, but when called through a workstation, to the server, fails out?
The CreateObject statement that creates the com object does not fail, but when called through the workstation, the call to the COM method fails.
Here's an example:
foo = CreateObject("Obj.Class")
result = foo.callMethod
The CreateObject works fine, but the foo.callMethod fails when it is kicked off from a workstation.
Anyone run into something like this before?
|
|
|
|
|
if you have brought that object to the PC then everything it talks that it talked to on the server also needs to be on the PC (excluding http and sql server calls). It will not execute code on the server.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Sorry, I may not have explained well enough. It's setup like this: The server hosts the main application. Workstations have a satellite application that calls the main one to do most of the processing. The code that calls the COM object resides on the server. So everytime the server's main application is called, it will fire off the COM object. If the code to fire that COM object is called from the server itself, then it runs fine. But, if the satellite application calls the main application on the server, then it errors out.
|
|
|
|
|
How can I call functions from a "normal" (just plain old C) DLL from my VB.NET program? Also, is it possible to get a list of functions that are exported by the DLL?
|
|
|
|
|
There's a good bit of sample code out there, like this article.[^]. As for listing the functions, I don't think you can, but I don't always know everything.
|
|
|
|
|
I'm teaching myself vb.net again after being out of school for a few years. My problem is probably simple although I don't know the correct terminology so it makes it hard to search for a solution. I am making a simple game with picture boxes. I created the variable YellowDrop which is a string. It concatenates a few things to create "Yellow6x1" for example. This is a picture box. I now need the command equivalent to yellow6x1.visible. I cannot just do yellowdrop.visible because visible is not a part of string. Can someone point me in the correct direction? Thank you.
If cbColor.Text = "Yellow" Then
For RowLoop = 6 To txtRow.Text Step -1
YellowDrop = ("Yellow" & (RowLoop) & "x" & (txtColumn.Text))
'****Here is where I need a command that would act like YellowDrop.visible****
Next
End If
modified on Friday, October 3, 2008 10:48 AM
|
|
|
|
|
I think i'm getting closer by making yellowdrop a picturebox... but not quite there.
Dim RowLoop As Integer
Dim YellowDrop As PictureBox
If cbColor.Text = "Yellow" Then
For RowLoop = 6 To txtRow.Text Step -1
YellowDrop.Name = ("Yellow" & (RowLoop) & "x" & (txtColumn.Text))
YellowDrop.Visible = True
Next
End If
modified on Friday, October 3, 2008 10:48 AM
modified on Friday, October 3, 2008 1:13 PM
|
|
|
|
|
You will need to use 'reflection' to accomplish what you want to do.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
The best bet would probably be to make an array of controls and then index into that array. Depending on your configuration it may make sense to have a two dimension array.
|
|
|
|
|
Hello,
My application consists of an EXE acting as a main menu. Each menu item opens an app that sits in 1-many dlls. Each application has the ability to communicate in one way or another via a object handler that I called the HUB. They all have shared memory as well as shared objects they can access to get things like security and user information, etc.
Problem #1)
All of these apps are started via the main thread and if one of the apps dies, it has the potential of killing everything on the thread. I have added appropriate onthreadexception and unhandled exception error handling but again...but depending on the error, recovery of the other apps may or not be consistent.
Problem #2)
Each one of these apps has the possibility of showing a dialog box (msgbox or one of my own). Because each app was started on the main thread...all the other apps are locked until that one app shutsdown the dialogbox because as you know the dialogbox blocks execution.
I would appreciate any design tips on how you get around these issues and how you handle a multiple application suite of software that communicates with each other. I'm open to redesigning if it takes that effort to straighten these two issues out...
Thank you
Nathan
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Are these truely "separate apps" or can you redesign it to fit into a Muli-Document Interface model ?
|
|
|
|
|
they are seperate apps sharing and reusing "global" components
mdi will not fix the 2 problems...all the apps must be functional at the same time...and putting them in an mdi will not meet user requirement...
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Hi all...
I want to know that how to define column size of datagridview.
By default all columns are of same size.I want to change size of columns so that at runtime it will display different fields of different size.
Thanks...
Gagan.
|
|
|
|
|
This has nothing whatsoever to do with database design.
Right click on your datagridview, select Edit Columns and adjust the Width property to what you need it to be.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi all...
I want to create an application that will run on several systems.
I want to transer data between systems using my application over WAN.
I want to know that what should I do for providing an interface between my application for communication,i.e. what should I prefer, either creating a web interface or creating sockets.
If you have any example then please send it to me.
Thanks...
Gagan.
|
|
|
|
|
It all depends on what the application is.
If you want it to be available on ANY PC without needing to install a client on the remote PC's then a web application is best. However a basic client/server type application is probably easier and faster to create.
Simply create a project and add the Winsock.dll to it.
You can find lots of articles on using Winsock in client/server applications just by Google'ing it.
I have created a vast application suite that has a server and several different clients connect to it to send alarm messages and the server dispatches alarm notifications to any client that should get it. Another easy one to make is a simple client/server based chat program.
Hope this helps!
|
|
|
|
|
hey guyz i wana know how to access simcard phonebook using vb
|
|
|
|
|
use at command
at+cpbr=<number location="">
ex : at+cpbr=3 returns 3rd location phone number
for more commands see the mobile modem manufacturer at commands guide
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
I am trying to print labels in my application in crystal report i want to chnage the width of Section
pls suggest me on this
Thank you
|
|
|
|
|
mamatha97anju wrote: I am trying to print labels in my application in crystal report i want to chnage the width of Section
AFAIK, the width depends on the printer setup parameters you have specified in the report designer.
|
|
|
|
|
I want an expandable gridview which displays child rows.
I have already implemented it using a parent and child gridviews concept.by having child grid inside itemtemplate column within div tag and display or hide it using javascript function. this affects performance.If i have 20 records displayed it will 20 child gridviews.
can any one tell me a approach which will not affect performance as well as do not postback.
Thanks in advance.
|
|
|
|