|
hi,
I am working with tab control in a MDI form. In one of my tab page, I’ve a split container control. Now I want to load another form in the panel2 of split container. Using “mytab_enter” event, I am loading all the controls of that Form into the panel container.
Dim objFrm1 As Form2
objFrm1 = New Form2()
objFrm1.TopLevel = False
SplitContainer2.Panel2.Controls.Add(objFrm1)
objFrm1.Show()
the form is getting loaded without any controls being displayed. A blank form.
In this the fact what I observed is. If I add controls to 1st tab page all the controls will get loaded without any problem. I face this problem with subsequent tabs.
Can any body please help me out in this problem?
Thank you,
Regards, Krishnaraj
|
|
|
|
|
Can You Please Help Me How To Set A Background Image To Mschart In VisualBasic 6.0
Manoj
|
|
|
|
|
AFAIK, there is no BackgroundImage property in the MsChart control. You'd have to either use a different control that exposes this functionality, or write your won.
|
|
|
|
|
hi
i have created a small application in vb.net .if we minimise the application and restore it we are able to see the restoration of controls one by one but not because of system speed. i found the difference when comparing my application with another utility developed in dotnet. comparitively my application is not much big but why it happens.in all the small small application developed by me and my friends i am able to see the same scenario. could any one tell why it looks very slow.and how to make the application much professional.
with regards
Balagurunathan.B
|
|
|
|
|
It's hard to say since we are not able to see the code what you wrote in your application.. The problem might occurs for so many reason..
1. If you are using too much of drawing things (making funcy colors or custom draw or etc) it might make your application slow..
2. Did you use so many third-party controls in your app?
3. You should use DoEvent in some cases.
4. Did you load something in Windows Paint event or show event? If you want to load something, you should use the different thread for that so it won't freeze your UI..
|
|
|
|
|
no
i am not using too many third party controls and all
application is not slow
when we are minimising the form it gets minimised in fraction but while restoring it we are able to see the things likke form loads,panel and cotrols. there is no spl code i am using . if its in form load event ok but on every restore after minimising the application it looks slow comparitively to application developed by professionals. the sam thing happens for all my friends application also .
i am not asking any behaviour while loading the application or control. my doubt is while retoring the application after minimising i application should restore in fraction.
with regards
Balagurunathan.B
|
|
|
|
|
hi all
i want to determine the location of current cell of datagridview. in datagridview visiblity of some column is false and display index is also changed.
anyone have some idea ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
I think that there is one property called CurrentCell in that DataGridView. And you can get the rownumber and column number of currentcell.
|
|
|
|
|
thanks for reply
i think you does not understand my problem properly. Actually i want to Get the Left & top position of current cell.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hello guys I've been trying to validate a textbox with user control and it seems like my text property i coded is wrong because if i show the content of the textbox like msgbox(textnox1.text) the msgbox is empty. this would be my design code:
<br />
<br />
<global.microsoft.visualbasic.compilerservices.designergenerated()> _<br />
Partial Class prodidtextbox<br />
Inherits System.Windows.Forms.UserControl<br />
<br />
'UserControl overrides dispose to clean up the component list.<br />
<system.diagnostics.debuggernonusercode()> _<br />
Protected Overrides Sub Dispose(ByVal disposing As Boolean)<br />
If disposing AndAlso components IsNot Nothing Then<br />
components.Dispose()<br />
End If<br />
MyBase.Dispose(disposing)<br />
End Sub<br />
<br />
'Required by the Windows Form Designer<br />
Private components As System.ComponentModel.IContainer<br />
<br />
'NOTE: The following procedure is required by the Windows Form Designer<br />
'It can be modified using the Windows Form Designer. <br />
'Do not modify it using the code editor.<br />
<system.diagnostics.debuggerstepthrough()> _<br />
Private Sub InitializeComponent()<br />
Me.textbox1 = New System.Windows.Forms.TextBox<br />
Me.SuspendLayout()<br />
'<br />
'textbox1<br />
'<br />
Me.textbox1.Location = New System.Drawing.Point(0, 0)<br />
Me.textbox1.Name = "textbox1"<br />
Me.textbox1.Size = New System.Drawing.Size(100, 20)<br />
Me.textbox1.TabIndex = 0<br />
'<br />
'prodidtextbox<br />
'<br />
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)<br />
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font<br />
Me.Controls.Add(Me.textbox1)<br />
Me.Name = "prodidtextbox"<br />
Me.Size = New System.Drawing.Size(100, 20)<br />
Me.ResumeLayout(False)<br />
Me.PerformLayout()<br />
<br />
End Sub<br />
Friend WithEvents textbox1 As System.Windows.Forms.TextBox<br />
<br />
End Class<br />
<br />
</system.diagnostics.debuggerstepthrough()></system.diagnostics.debuggernonusercode()></global.microsoft.visualbasic.compilerservices.designergenerated()>
and this is my textbox property codes:
<br />
public class proidtexbox<br />
dim t as object<br />
public overrides property text() as string<br />
get<br />
return t<br />
end get<br />
set(byval value as string)<br />
t=value<br />
end set<br />
end property<br />
end class<br />
please i need this to finish a class project that i should submit tomorrow
thanks for you all reading this
eager to learn
|
|
|
|
|
highjo wrote: dim t as object
public overrides property text() as string
get
return t
end get
set(byval value as string)
t=value
end set
end property
If I understand your question correctly, you want to return the string that is typed in text1, right? if yes, you can try like that..
<br />
public overrides property Text() as string<br />
get<br />
return textbox1.Text<br />
end get<br />
set(byval value as string)<br />
textbox1.Text =value<br />
end set<br />
end property<br />
|
|
|
|
|
Yeah! i think this should work thank you man.Didn't it is that obviuos thank you
eager to learn
|
|
|
|
|
hi all,
In my application vb.net 2003 and ASP.net i have to import excel sheet into sql server 2003 existing table n then into datagrid.
I have used this code but throwing an error "System.Data.OleDb.OleDbException: The Microsoft Jet database engine could not find the object. Make sure the object exists and that you spell its name and the path name correctly."
Dim connstr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("Team wise EMP Profile.xls") + ";Extended Properties=Excel 8.0;"
Dim objconn As New OleDbConnection(connstr)
Dim ds As New DataSet
Dim objadapter As New OleDbDataAdapter("SELECT * FROM Emp_Profile_Tbl", objconn)
Try
objconn.Open()
objadapter.Fill(ds, "nomi")
dg.DataSource = ds.Tables(0).DefaultView
dg.DataBind()
Finally
objconn.Close()
End Try
pls help me
|
|
|
|
|
sivaram praveen wrote: Server.MapPath("Team wise EMP Profile.xls")
the path of xls file or file name might be wrong..
|
|
|
|
|
Hi.
I declare a Timer object in a Module and after disabling that, when i enable it again it doesn't tick.
Please help me.
|
|
|
|
|
Hi, IIRC some timers (there are multiple timer classes) get disposed off when
you disable them. Please check the documentation.
|
|
|
|
|
Tnx for your reply. I'm using System.Windows.Forms.Timer class and i was try Stop() and Start() method but my problem is existed likewise. Please tell me how i shold perform that.
|
|
|
|
|
Hi,
the Windows.Forms.Timer is my prefered timer. The MSDN documentation says it is
single-threaded, which may mean you should do all its operations on the same thread
(i.e. creation, Start, Stop, etc) as if it were a Control.
Since it Ticks on the main or "GUI thread", my advice is to create and control it
on that thread too (e.g. in a Form_Load handler, a Button_Click handler, etc.).
BTW if this does not help, you may want to show the relevant code.
|
|
|
|
|
I have two data source tables. One is production and another is product. I would like to create a combobox in which you can choose beetwen products in products table. I have managed to do this by dragging article field from production data source table on to a windows application form and then selecting items collection for combobox from products table. Now I would like to know how can I disable editing cursor in combo box, so the users will not be able to make mistakes and could only select between shown items.
Aside that I would like to create three textbox where dimensional values would be automaticaly displayed correspondent to the product the user chooses in in combobox. The values are stored in product table database source.
To minimize code I thought I could dragg and drop textbox from from production table data source, because the program automaticaly adds buttons for saving data to this table, all I have to do is to link this three boxes to certain cells in products table. I do not know how please help.
Also I would like to do this, when i select or move with mouse over a different product in combobox I would like to have a picture of it displayed in box or frame on this windows aplication form so I could see it.
Please help if it is not to much.
|
|
|
|
|
BOREC wrote: Now I would like to know how can I disable editing cursor in combo box, so the users will not be able to make mistakes and could only select between shown items.
This is just a property on the combo box.
BTW - you really should stay on the same thread to keep talking about the same question.
BOREC wrote: Also I would like to do this, when i select or move with mouse over a different product in combobox I would like to have a picture of it displayed in box or frame on this windows aplication form so I could see it.
You can capture the mouse move and show a modeles form of your creation. The main thing is knowing which image to show.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
Our company has a suite of over 120 reports. I need to change the font on all of the reports from "Arial" to "Arial Unicode MS". I have a small VS2005 VB.Net app that runs through all the reports and does this. On the whole it works well, it handles charts/graphs,fields,text objects fine however I have hit one problem...changing the font on any fields/labels that are in crosstabs. Now there only a dozen or so cross tabs in the report suite but I would rather not have to do any manual editing.
I have tried accessing the crosstab both through the CrystalDecisions.CrystalReports.Engine.CrossTabObject and the CRAXDRT.CrossTabObject, neither have given me any joy.
Any suggestions/bright ideas, or am I going to have to do this manually?
Looking forward to any response
cheers
mike
|
|
|
|
|
|
Please try to use sensible subject lines. We know that this is a visual basic question, it's in the VB forum.
This is easy to do. Just select the list of fields from the database, set your combobox to have the right DisplayMember and ValueMember ( these tell the combobox which columns to use to display and as the value associated with the displayed value, usually the Id that you need to pass the selection back into the DB ), and set it's datasource to be the dataset that you got from the DB.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi,
is it possible to import swf media files into my visual basic 2005???if yes, then how to implement it???...
please help me out in creating an application that has an embedded swf player...
thanks in advance!
|
|
|
|
|
VB won't do anything with them. You could include them as resources, but I have no idea if the Shockwave player will use them if stored in resources. You could include the SWF files as part of the project, then tag them as content and they'll get copied to the bin folder when you compile the app.
|
|
|
|