|
I noticed that you do not show the form in the if part of your if/else. You only bring to front and focus and the form is not shown....weird
-- modified at 18:02 Thursday 11th May, 2006
|
|
|
|
|
|
I agree that the me.hide seems strange but I think it is even more important that they are not saying frmChaindata.show() in the if part of the if/else statement!
-- modified at 9:02 Friday 12th May, 2006
|
|
|
|
|
The "me" in this case is the first child form (child1). Because I am attempting to call one child from another. I am hiding the child1 form and trying to show the second child form. I tried adding the show, but no luck. In the else part of the if statement I am calling the .show method and it didn't work there either. Still working on it.....
|
|
|
|
|
Throw this code in a MDI form and see if it helps out at all.
Private Sub MDIParent1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
Dim ChildForm1 As New System.Windows.Forms.Form<br />
Dim btnButton1 As New Button<br />
Dim ChildForm2 As New System.Windows.Forms.Form<br />
Dim btnButton2 As New Button<br />
ChildForm1.Text = "Form1"<br />
ChildForm2.Text = "Form2"<br />
btnButton1.Text = "I Control 2"<br />
btnButton2.Text = "I Control 1"<br />
ChildForm1.MdiParent = Me<br />
ChildForm1.Controls.Add(btnButton1)<br />
ChildForm1.Show()<br />
ChildForm1.Name = "Form1"<br />
ChildForm2.MdiParent = Me<br />
ChildForm2.Controls.Add(btnButton2)<br />
ChildForm2.Show()<br />
ChildForm2.Name = "Form2"<br />
<br />
<br />
AddHandler btnButton1.Click, AddressOf button_click<br />
AddHandler btnButton2.Click, AddressOf button_click<br />
End Sub<br />
<br />
Sub button_click(ByVal sender As Object, ByVal e As EventArgs)<br />
For Each frm As Form In Me.MdiChildren<br />
If frm.Name <> sender.parent.Name Then<br />
If frm.Visible Then<br />
frm.Hide()<br />
Else<br />
frm.Show()<br />
End If<br />
End If<br />
Next<br />
End Sub
|
|
|
|
|
Hello,
I have become interested in trying to create a form/control which emulates the behavior of the MS Word Equation Editor(EE). When you are using the MS Word EE it feels like you are working with textboxes inside of textboxes. I am refering especially to the ratio feature. What really gets me is that these textboxes behave like text. You can highlight, copy, cut, paste, etc. Can anyone provide some insight into how this is accomplished? I have written some fairly unimpressive code which lines up textboxes beside and above eachother and autosizes the textboxes to fit their contents but that as far as I got. I would be glad to share my code if anyone is interested.
-- modified at 11:36 Saturday 13th May, 2006
|
|
|
|
|
how to transfer data from excel file to sql server's tables in asp.net programatically
i can't use enterprise manager
|
|
|
|
|
Hi,
It is big procee
Let give you hint
Use the OleDbProvider and open the file and file in to data set and update to database
ExcelConnectionString = Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties="Excel 8.0;HDR=YES";Data Source = " & ExcelFilePath
strSQL = "select Col1,Col2 from [Sheet1$]"
SomeDataAdapter = New OleDbDataAdapter(strSQL, ExcelConnectionString )
have SomeDataSet declared
daCollateral.Fill(SomeDataSet, <tablename>)
try this if not i can help you
Chinna Srihari
Tech Lead, Capgemini
|
|
|
|
|
when i am working in vb.net project it will take lot of time.sometimes the application is not responding.
the error is due to 'Devenv'file.sometimes this happends also at the loading time.i reinstalled vb.net.no change.
what can i do?
|
|
|
|
|
DevEnv is the Visual Studio Integrated Developement Environment. Apparently, it's a little busy doing something at times. This can be caused by a half-million different things. The most common of which is an under-powered machine, lacking in either processor speed and/or RAM.
There can also be outside causes, like trying to run SQL Server on the same machine when it only has 512MB of RAM.
Project size also matters. Did you know that Intellisense uses the compiler to partially recompile your application every time you make a change to the code to keep itself updated?
You've got a bunch of trouble shooting to do. There is no one cause for this and no one solution. Start with the basics. Does your machine have the RAM and processor to run a heavy weight IDE and everything on the machine?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi all,
Can any body suggest me .net component that can convert the incoming video frames from a twain compatible video cameras in to bitmap images.
Thanking You all in advance
Varma G
-- modified at 7:40 Thursday 11th May, 2006
|
|
|
|
|
|
Hello
I would need a TreeView with an Transparent Background. So the TreeView is in the front of a PictureBox an i would need to display only the text from the tree an the background sould be alive from the picture box.
I have a screen shoot from the standard treeview without the transparent backcolor at http://www.coyote.at/tree.jpg[^]
Has anybody a idee how i can get the transparent background??
Thanks and greetings from austria
Tom
|
|
|
|
|
I that case you will have to write your own implementation of the treeview. Create a new customcontrol and inherit from treeview. override the OnPaintBackground
Now in windows forms there is actually nothing like transparent background color. The framework does a little trick here. If you set the background of a control to transparent it will inherit the OnPaintBackground implementation (am not really sure how this is done codewise) of its parent to simulate a transparent look.
Hope that I could give you an idea how to solve your problem. I think you will have to read first some here and there on how to handle the OnPaintBackground (if it actually exists for a treeview; otherwise the OnPaint)
Maybe this link can help you out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconrenderingwindowsformscontrol.asp
Amjath
|
|
|
|
|
hello i have got problem in fckEditor in Asp.net. i want to upload the image but i have got the Error "XML request Error :Internal server Error 500". i m not able to find the solution. Some body please help me to sort out the problem and tell me how can i upload the image successfully without any bug.
|
|
|
|
|
I want to load a .PNG file in VB and to use it as the Splash Screen as in Adobe Photoshop 7 <splash screen=""> you can see the clear edges and alpha blends at its smooth corners.Ahhhhhh.....
Do this all in VB.Tried very much but cant display alpha blends and smooth corners.
e v r yt h i n gi sn o tw h a ti ts e e m s
|
|
|
|
|
I want to Send Mail to any Yahoo Account via any protocol just i want to recieve mail in my yahoo account from the specified sender using VB. i have checked MAPI, WINSOCK but i sends the mail but i dont recieve it.Need Help and Thanks in Anticipation.
eVERYTHINGISNOTWHATITSEEMs
|
|
|
|
|
http://www.systemwebmail.com/faq/2.1.aspx
http://www.upyourasp.net/articles/article.aspx?aid=3
|
|
|
|
|
Its all in VB.net and in ASP.net i wm using VB
|
|
|
|
|
but u implement C# code in vb.net code
|
|
|
|
|
Uhhhhh..... what does this mean?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
That mean converting code from C# to vb.net Mr.'MVP';P
|
|
|
|
|
Sorry smartass, but "implement" is not interchangable with "convert". Their meanings don't even come close to each other. In either case, the OP is talking about about VB6, not VB.NET. Those two, also, don't even come close to being interchangable.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Give the users the opportunity to apply formatting to the messages, and someone will always abuse it...
Are you sure that the messages are really sent? What mail server are you using? Can you successfully send mail to some other mail address?
Some ISPs block the port for mail so that you have to use their mail server to send mail, to prevent spamming.
---
b { font-weight: normal; }
|
|
|
|
|
Agreed... recently I had a problem with an application where I could send mail internally, but not externally.
The code worked in VB 6, but not VB.NET; ultimately, I had to change the SMTP server node in the VB.NET code to make it work.
|
|
|
|