|
Hello,
I want to add Image in MDI Form.
How it i Can do. Plz Help me.
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
you can get The MdiClient Control of your form and set background image for it:
Private Sub MyMDIForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
For Each c As Control In Me.Controls
If c.GetType Is GetType(MdiClient) Then
c.BackgroundImage = Image.FromFile(ADDRESS_OF_IMAGE)
Exit For
End If
Next
End Sub
|
|
|
|
|
Thanks Boss
It was Success.
I want more help with you. It was Tiles, not Stretch. How it will be. & How i will do if i want to set any colour in Background. I am using VB.Net 2005. and colour is in code which i am ussing "255, 224, 192" that is this, How i can use this colour in MDI form as a Background.
Thanks again For help.
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
Thanks Boss
It was Success.
I want more help with you. It was Tiles, not Stretch. How it will be. & How i will do if i want to set any colour in Background. I am using VB.Net 2005. and colour is in code which i am ussing "255, 224, 192" that is this, How i can use this colour in MDI form as a Background.
Thanks again For help.
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
1-MdiClent control has properties such as other controls; u can use BackgroundImageLayout property to set background image layout , use BackColor Property to set Back color , ...
2-by using Color.FromARGB you can create your custom colors and assign it to backcolor property
|
|
|
|
|
i have developed a "Voice Based Messenger" which user could record voice and send it to another user. i found difficulty in coding part to record,stop, playback and save it as an audio(.wav) file.
ill appreciate..thanks
|
|
|
|
|
Your program will be useless if it saves wav, that's raw data. You want to save as mp3.
You need the platform SDK to look at DirectShow.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
thanks for the suggestion.
can i get any sample of open source code ragarding on voice recording/playback..
|
|
|
|
|
I presume the DirectShow samples would include some.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Gud Morning All,
i have checkbox column in my datagridview,
when user checks the checkbox i wnt to fill other columns by some constant number.
where shuld i write the code & how to check whether checkbox is checked or not?
in our usual checkbox we can do it by->
checkbox1.checked=True
but for a checkbox as column in datagridview , there is no "checked" property.
so Will anyone please tell me how to do it?
Thanx
--Regards Priyanka.
priya
|
|
|
|
|
You can still hook up an event. Is this ASP.NET or winforms ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi,
my application is in vb.net(winforms)
priya
|
|
|
|
|
OK, then it's a lot easier. You should be able to attach click events to your columns, just by adding a click event in the column definition.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hallo,
Thank you so much for help.
but as i am new in programing, will you tell me how to add events to datagridview column,
at the time of column Definition?
--Regards Priya
priya
|
|
|
|
|
priya_p233 wrote: but as i am new in programing
In that case, you should forget about datagrids, and work through a beginner book on VB.NET, just the language, not any forms stuff.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
I've used VB.NET 2003 Standard to create a form using the wizard.
On the form, I had a bound textbox - txtUnitOfMeasurement.
This was bound to an MS Access table, tblSuppliersProducts, and a numeric field called UnitOfMeasurement.
This worked fine.
I then upgraded to VB.NET 2005 Express, and swapped my textbox for a combo box, and added the following settings to the combo:
Data Bindings - SelectedValue = tblSupplierProductsBindingSource.UnitOfMeasurement
Data Source = tblUnitOfMeasurementBindingSource
Display Member = UnitOfMeasurement
Value Member = MeasurementID
This too is fine, on my experimental dummy first record - it saves my changes to the UnitOfMeasurement field in tblSuppliersProducts - proving, to me, that it is bound correctly. However, when I press 'Add', it retains my previous combo box choice (which isn't a huge problem) on the new record, but when I fill in the remaining fields, and press Save, I get an error message saying that tblSuppliersProducts.UnitOfMeasurement is null.
I am obviously not doing something properly in between changing my text box for a combo box, but I don't know what.
Can you help?
|
|
|
|
|
Is your combo box perhaps binding again, and reseting the data source ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Thanks for your reply. I'll have to have a look.
Unfortunately, as I'm developing the app from home, I don't have access to it in my "real" job!
Another problem is the seemingly unnecessary lines of code that the form wizard throws in. I'm pretty new to all this, which makes it that bit harder for me to read what its done.
Oh well - a bit of debugging to do tonight, then!
|
|
|
|
|
Is it pssoble to use a VS.net wizard at runtim?
For example I want to use "TableAdapter Configuration Wizard" at runtime to generate Dataset.
|
|
|
|
|
I answered this in the C# forum, please don't cross post
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
tnx, but I posted this question in different forums because I didn't know where I should post it.
|
|
|
|
|
The menu has nothing to do with it. You need to add menu items which call code to do these things.
The OpenFileDialog class is what you need to do a lot of this ( i.e. it's where you will start )
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You mean open a database ? Set the MDB to be your data source in your data layer. I assume it's format is predefined, or will you just look through it dynamically ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
cesar francisco wrote: this is the first intent to produce something useful after the earthshaking release of my "Hello, World!"
You're diving in a little too deep. However if you want to persist with this path, you should google on how to connect Access to VB.NET, you'll find more in depth answers than I can give here.
cesar francisco wrote: It has to be a way to call on the Create Database and Define Database algorithm again to create an other empty database and bind it to the GUI.
I'm not sure if ADO.NET does that, I've seen people using ADOX for this purpose.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|