|
Thank you for your answer. I have tried to write code use SetParent(ChildWhnd, NewParentHnd) API function, but I failed. Could you help me to write a example code. Thank you very much.
|
|
|
|
|
Create an MDIChild Form (called mdiForm1) and set it's border to nothing.
using the GetWindowRect API find the size of the calculator window and resize the form to that size.
Now call the following sub:
<br />
Sub ChangeParent()<br />
dim hndl as long = FindWindow("SciCalc", "Calculator")<br />
setparent(hndl, mdiForm1.hwndl)<br />
End Sub <br />
(In fact I don't have access to VB now -in my university- to check wether the code works correctly or not. Please tell me if it works.)
hope it had been helpful.
Mohammad
|
|
|
|
|
Thank you very much. But I have a problem. If I build a app with startup is Form1, then that app will showed in the form if I use the SetParent; but if I use Sub Main to startup and call Form1 by method Form1.ShowDialod(), then that app not showed in the form when I call SetParent(). Form1 not is a MDI type. I know that have to use the SetWindowLong() to set app's window style, but I don't know which bit (WS_POPUP, WS_CHILD, etc.) is need to set. Could you tell me? Again, Thank you.
|
|
|
|
|
This only works if the target window is an MDIChild window, not an MDIParent or main application window.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi i m trying to import a class to check internet history on local machine in vb.net. with below code...
<ComImport(), Guid("3C374A40-BAE4-11CF-BF7D-00AA006946EE")> _
Public Class UrlHistory
End Class
but some how its giving me error of System.TypeLoadException.
but when i tried in C# its working fine. without any errors. can any one help me in this matter.
C# code ...
[ComImport]
[Guid("3C374A40-BAE4-11CF-BF7D-00AA006946EE")]
public class UrlHistoryClass
{}
i m new to .Net tech.
Thanks in advance for yr help.
|
|
|
|
|
Hi,
I need to be able to Print an Escape sequence to a printer. When I print the escape from DOS the escape sequence is sent to the printer. But from my VB.net application it doesn't work. Any way to just print without setting fonts or dealing with the printer drivers ?
Thanks
|
|
|
|
|
|
Does anybody know if it is possible to display the contents of a TextBox in one form while typing it into another?
Example:
While typing in frm1, txt1 I would like the text to be displayed in frm2 txt2. Both forms will be open.
Thanks.
Brad
|
|
|
|
|
the way i know is ..
1- Declare the form you want the text to be viewed on in this form ..
Dim Frm2 as New Form2
then in the "On key press" Action of the textbox you type in .. let the text value of the textbox you want to show the text on .. in the new form ( Frm2 ) = the text value of the textbox that you are typing in ..
Frm2.TextBox1.text=TextBox1.text ..
i hope this works with you ..
لا اله الا الله محمد رسول الله
|
|
|
|
|
I thought that would/should work also but I haven't had any luck...
I'm going to keep playing around with it and see if I'm just forgetting to do something.
Thanks
Brad
|
|
|
|
|
What i would do is first creat a public variable in a module. Something like
public a as string. then on form1 after they click whatever button needed to get to form to do this.
a=texbox1.text
then on the form2 load procedure do
textbox2.text = a
hope this is what you are talking about and hope it helps if you have any questions about the above code feel free to email me at iamydd@bellsouth.net
|
|
|
|
|
I am working on a deployment project that I would like to perform some specific actions during install.
For example, I would like to project to start the installer for MSDE if MSDE is not currently installed on the users system. I would also like to run some SQL scripts to create the initial database. I've read about using Module files to do this, but there seems to be a void of information on how to do some of these tasks.
Also, I would like to capture the users request to install these items. For example, if they would like to install MSDE on the current workstation, they check a checkbox to install it (but only if it is not currently installed).
I would like to do all of this using the deployment projects that come with Visual Studio. I know there are other installers that can do these things, and possibly much more easily. However, cost is driving the need.
I'm just looking for resources, so if you have some it would be very much appreciated!
Thanks!
|
|
|
|
|
You can create the install script for the SQL bit with this Database Build Tool[^]
For installing MSDE there is a merge module on the SQL Server install disk (IIRC)
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Hi. I am kind of a beginner in VB6 and Ihave a little problem. I want to make a programme in VB6 that measures the temperature of a chemical reactor (something like a boiler) and stores those values to an excel file. I am using a PCL841 (h**p://www.advantech.com). Can anyone give me a hand on how to get started?
|
|
|
|
|
First, get the drivers, then get the documentation for the drivers. It looks like all the examples are in C++, so that means you'll be spending some time translating some of the examples to work in VB.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have an winforms application that lets a user click on a listbox which holds a list of images.
When the user clicks on a list item the corresponding image is loaded into the picturebox using the picturebox.image.fromfile(CStr(lstBox.SelectedItem)) syntax.
The user is able to click a delete button which should delete the currently viewable picturebox image.
Before doing the delete I am calling the following methods:
picturebox.Image.Dispose()
picturebox.Image = Nothing
picturebox.Image.fromFile("temp.gif")
so that the image i want to delete is freed from system resources.
I keep getting the following error
"The process cannot access the file "image.jpg" because it is being used by another process"
I have tried numerous things to get round this error. My code does not load any images anywhere else apart from the picturebox.
Please can anyone help!
|
|
|
|
|
|
How can we determine the input mask and format property of a column of a table?
|
|
|
|
|
Hi! gentlepeople,
I would like to develop a multilanguage application using vb.net that support Japanese,English and chinese. I would like to ask if its there any a multilanguage sample code in vb.net? or any reference?
Thanks for the help...
|
|
|
|
|
Hi! guru people,
I would like to develop a multilanguage application using vb.net that support Japanese,English and chinese. I would like to ask if its there any a multilanguage sample code in vb.net? or any reference?
Thanks for the help...
|
|
|
|
|
:-OPlease help me, How Can I Programmatically Add A New Row
To The Standard Datagrid In VB.NET 2002. ASAP Please.
Harb
|
|
|
|
|
I'm planning to use a text box to accept a currency value. I would also want to supply a mask for the same. How can I do it using .Net Supplier text box control. Or there are any other controls? I've checked in Infragistics also but they are not flexible
Can anybody respond to my query? Thanks in advance
Regards
Vishu
|
|
|
|
|
Try This :
Enter a number in the text box. when u leave the text box the number wil be formatted with the $ sign.
Private Sub txtAmtPaid_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAmtPaid.Leave
Try
decAmtPaid = CDec(txtAmtPaid.Text)
txtAmtPaid.Text = Format(CDec(txtAmtPaid.Text), "$ ###,###,##0.00")
Catch
messagebox.show("Please enter a number")
txtAmtPaid.Select()
txtAmtPaid.SelectAll()
End Try
End Sub
|
|
|
|
|
Hi,
I think you solved my problem. Thanks a lot
Vishu
|
|
|
|
|
i'm developing a simple game. i plan to let user select the background music that they prefer from a list that i provided. May i know how to program this? pls help me.....
|
|
|
|