|
You know, you're right! It didn't even hit me that he was changing the signature of a method call.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
how can i get an mdi child form to display in the client area of the core programs form, the mdi child forms are contained within plugin modules that are detected and loaded at run time ?
|
|
|
|
|
Your host application would have to apss a reference to the MDIParent form to any code that's going to create a child form. This is so the child form can be assigned the correct parent form.
Also, any child forms MUST be created on the same thread that the parent form was created on, otherwise, you'll never see the form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks. My plugins are running as separate threads.
so i would have to pass a reference to the mdiChild to the host and get the host to create the form.
|
|
|
|
|
You got that right...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ListView isn't displayed, while its content invisibly praesents.
|
|
|
|
|
WHAT?????
Could you repeat that, in the form of a question...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does someone know how to change color of ScrollBar, for example in ListBox. (VB, windows form, NET 1.1)? Thanks.
|
|
|
|
|
There are not direct properties to do this. The scroll bars are drawn using the Display control panel, Appearance tab, defined colors. You'll have to owner draw the ListView control to change the appearance and draw everything using your own colors.
Just search in the Articles for "custom listview" and you'll come up with examples.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello All,
I have one form name Form1 and from Form1 i have declared as follws
-------------------------------
Private frm2 as new Form2
frm2.showdialog(Me)
-------------------------
Now frm2 open and get some values in textboxes,in my case i want to retun back this values to previous Form's Datagrid ,(means Form1's Datagrid) for displaying,
How can i solve this,anybody can help me will be appreciated
|
|
|
|
|
u can do it
first strore the values in some global vaiable.
for that u can make a module. therefore that values will be accessible to all forms
then u can use those values in ur datagrid
|
|
|
|
|
Add new module to the project and there declare public variable (Public Value As Integer). Then You can use this variable in form1 and form2, as well.
David
|
|
|
|
|
you can do one thing
First you declare the friend or public variable in then you cn call us follows
In form1 Write as follows
dim frm as new Form2
frm.Showdialog(Me)
me.DataGrid = frm.PublicVarDataTable
In Form2
Public PublicVarDataTable as datatable
OkBut_Click()
// add rows in table
Me.DialogResult=ok
Me.Hide
End sub
I hope this helps
Ishak
|
|
|
|
|
whasup!
You just need to create properties which will contain the values read from the textbox. After you have those values simply dispose your form2 object.After this you still can access the properties of the object because only the visual were disposed you can retrieve the properties by doing:
myForm2Object.property1
myForm2Object.property2
(...)
myForm2Object = nothing
this way you won't need modules.
Never say never
|
|
|
|
|
Hi can anyone tell me how to build an application in VB 6. There is a play button on the Bar , but i think it compiles the application as well. How to Build it .
Be FaithFull To Your Work.
|
|
|
|
|
FIle > Make
<italic>Work hard, Work effectively.
|
|
|
|
|
Hi , please any one can help me how to make an application a service in VB 6 so that when the windows starts that application runs itself any don't have any need to start it.
i.e , it starts itself.
|
|
|
|
|
If you just want the application to runs itself when the windows starts, you don't need to make a window service application.
See this[^]
<italic>Work hard, Work effectively.
|
|
|
|
|
Do you want to run your app when Windows starts or when the user logs on?
If you want to run it when the user logs on, follow the link the other person posted.
If you want to run it when Windows starts, check here[^]. Warning! You'r application cannot have a user interface! If your app isn't completely autonomous, you'll run into problems with your application, and possible even stop Windows from shutting down! VB6 was not designed to create true, native Windows Services.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
can .net exe run on machine where .net Framework is not present. if yes how to make that exe.
ddd
|
|
|
|
|
No! The machine MUST have the .NET Framework installed.
You COULD get away with using the NGen utility to create a native code version of the application, but it will be VERY processor specific. So you'll need to generate a version of the code for each processor you want to run the code on, such as a version for an AMD Althon XP, another for an Intel P3, another for an Intel P4, ... and so on. There's a little problem with doing this though, NGen will also tweak the code a bit for known problems in certain revisions of each chip.
The easiest way to get around this little issue, is to install the .NET Framework, the same version that the app was developed under, on each machine that is going to run the app.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i want to know how to make the exe that run on all win32 platform as exe present in the release folder of visual c++. how to make that exe in vb and vb.net
ddd
|
|
|
|
|
Build it! The resulting .EXE will be in the projcet folder. For a VB6 app, the machine will need the VB6 runtime installed and for a VB.NET app, it will need the same version of the .NET Framework installed that the app was build against. -- No exceptions!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i had made a program in which i had executed "inser, delete and modify " command of SQL
but can anybody tell me how to make new database, new table in a database and alter table queries
code will me more helpful
|
|
|
|
|
sumit21 wrote:
but can anybody tell me how to make new database, new table in a database and alter table queries
To create a database, use something like this:
CREATE DATABASE Sales
ON
( NAME = Sales_dat,
FILENAME = 'c:\program files\microsoft sql server\mssql\data\saledat.mdf',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 5 )
LOG ON
( NAME = 'Sales_log',
FILENAME = 'c:\program files\microsoft sql server\mssql\data\salelog.ldf',
SIZE = 5MB,
MAXSIZE = 25MB,
FILEGROWTH = 5MB )
To create a table use something like this:
CREATE TABLE publishers
(
pub_id char(4) NOT NULL
CONSTRAINT UPKCL_pubind PRIMARY KEY CLUSTERED,
pub_name varchar(40) NULL,
city varchar(20) NULL,
state char(2) NULL,
country varchar(30) NULL
DEFAULT('USA')
)
To alter a table use something like this:
ALTER TABLE doc_exa ADD column_b VARCHAR(20) NULL
If this is not enough help there are already some great documentation and articles already out there on the internet: CREATE DATABASE[^] CREATE TABLE[^] ALTER TABLE[^]
My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|