|
Hello Vijay,
Define a variable in child form of type MDIForm.
Dim _mrm As MainForm
Now define a function in Child form which takes an argument of type MDIForm. For example:
Public Sub parentmin(ByVal mainform As MainForm)
_mrm = mainform
Me.Show()
End Sub
Set the following code in the LostFocus() event of the childform
Private Sub Form1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LostFocus
_mrm.Focus()
_mrm.WindowState = FormWindowState.Minimized
End Sub
Now From MDIForm, you should call the Child form in the following manner(Lets say on menu button click):
Dim frm As New Form1
frm.parentmin(Me)
I believe this should help.
Regards,
Allen
Allen Smith
ComponentOne LLC
www.componentone.com
|
|
|
|
|
yeah Allen it works perfect
ZAK
|
|
|
|
|
hello frnds,
i have a file of XML i want to convert it to word document .
is it possible ???
either by manually or by using programming vb.Net
regrds
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Not sure of exactly what you are looking for here.
You can always just open an XML file in word.
What is it that you are trying to do?
You want the data formatted when you open it?
|
|
|
|
|
hi, i'm using VS2008 and working on windows form application,
here my problem..
i can receive hex data that can convert it to ascii char,
but i have problem when receive hex 0x80 till 0xff where it show value 63, everything ok when receive hex 0x7f and it will display 127 as result in decimal, here my sample code:
'variable 'data' is the hex data that i receive
dim newData as string
newData = Asc(data)
TextBox1.Text = newData
any help please why this happen...
|
|
|
|
|
hello there...
how can i detect or catch the event when mouse click/open any folder in windows explorer??
and how can i get that open folder path??
or even just collects all folder path in all open folder in any windows explorer that is open??
please help anybody there, who have a good idea about this?... please...
thanks in advance...
|
|
|
|
|
I asked about the cam device control and cam picture control in the wrong place. Stupid of me, I know. I've looked in alot of places. Most times they tell how to access the web cam without using the cam control devices. I want to know how to use them. Can anyone tell me how? Thanx, StephenStefl
|
|
|
|
|
I found some code to save a persons signature to a file. It also will load a saved Signature and display it in the panel. I want to create a report using Crystal reports. I don't know much about it. But, I want to be able to display the signature on the report. Is there a way to do this in Crystal reports? If not, do you know the best way to do this? I would like to find some code that can convert a Vector file into a image file and then put the file on the Crystal report. Any suggestions?
Thank you.
|
|
|
|
|
Hi,
anything you can draw to a Panel, you can turn into an image file, using
Control.DrawToBitmap() and Image.Save(). So the signature would become just another image.
I trust CryRep knows how to handle images.
|
|
|
|
|
|
You're welcome.
|
|
|
|
|
Hi! All
I want to save doc,pdf,jpg file to sqlserver database. please help me to store file to database. And also retrive file from the database. I am using vb.net Please try is as soon as possible.
Thanks & Regards,
Harun
harun
|
|
|
|
|
You See there is one thing you should do before you post in a Forum, not only CodeProject, in any Forum or before you ask for help. at least try to make your own research first and Google
http://www.google.co.za/search?hl=en&q=Saving+a+File+to+SQL&meta=[^]
Hope this helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Yes i do agree with you!!! this is for everyone around the forum!!!
ZAK
|
|
|
|
|
hi all,
i filter a datagrid with input into a texbox. It filters fine. But how do i bring back the original data into the grid when the textbox is empty?
code below:
'This is in the textchanged of txtQS
If Not txtQS.Text.Trim = "" Then<br />
Dim dt As TMSDataSet.LASTIDNOREFFDataTable = New TMSDataSet.LASTIDNOREFFDataTable()<br />
LASTIDNOREFFTableAdapter.Fill(dt)<br />
Dim dv As DataView = New DataView(dt)<br />
dv.RowFilter = "lastmonth = " + txtQS.Text<br />
LASTIDNOREFFDataGridView.DataSource = dv<br />
LASTIDNOREFFDataGridView.Refresh()<br />
Else<br />
Me.LASTIDNOREFFTableAdapter.Fill(Me.TMSDataSet.LASTIDNOREFF)<br />
End If
Thanx.
He who goes for revenge must first dig two graves.
|
|
|
|
|
Try setting dv.RowFilter = nothing (or it might be "")
Bob
Ashfield Consultants Ltd
|
|
|
|
|
nope, that didn't work.
He who goes for revenge must first dig two graves.
|
|
|
|
|
how .....?
24
|
|
|
|
|
have u tried googling it up?
Not successful?
Get a converter! It's far easier.
He who goes for revenge must first dig two graves.
|
|
|
|
|
First try using Google. Then write some code. Then ask nicely and someone may help you. Just demanding how.... is not going to win you many friends.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Would like to ask if anyone knows wat is the command for copying file from one folder to another non-stop?
|
|
|
|
|
Command for Copying file
My.Computer.FileSystem.CopyFile("C:\Source.txt", "C:\NewFolder\Dest.txt")
i don't understood the meaning for Non-stop
Thanks & Regards
Rajesh B
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Because i am doing a application on housekeeping. I need my hard disk space to be 80% full and test if my application is working therefore i need to keep copying file to my specify folder so that the disk space can be 80% full and allow my application to stop working. By using the way u told me i can only copy 1 specify file at a time only. Or is there a command whereby i am able to create dummy file with example like .ppt?
|
|
|
|
|
|
You could always create and open a text file and continue to append text to it, in a loop, until it reaches the desired size.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|