|
Sorry
The combobox is placed in a usercontrol wich is placed on a tabpage.
By clicking on a button that is placed outside the tabcontrol, al the tabpages have to fill with the correct data. on that moment the first tabpage is visible (selected) tabpage 2 an 3 are not visible
the comboboxes in my usercontrol on tabpage 1 are filled correct, but those on the other tabpages are filled but the item I selected with selectedvalue are not shown
If I reload the form and select the second tabpage before cliking on the same button then the combobox on the second tabpage is ok, but the combobox on the first tabpage not.
I hope this is a better explanation
thx
|
|
|
|
|
Sometimes I have problems with selecting values from comboboxes when they are set up with a datasource...You could play around with using the SelectedItem, SelectedText or SelectedValue to see if one of those works...
This probably isn't the case, though since you can get it to work if the second tabpage is selected first.
It sounds like it is clearing or reloading when you select a tab page. You could check that event to see if you have some code that is doing it.
Perhaps as a work around you could load the controls for each tab page as they are selected instead of loading them all at once.
I'm sorry I can't help any more than that. I don't have much experience with UserControls and I've only dealt with tab pages in a mobile project. Good luck.
-------------------------------------------------
Play Nation States and join The Code Project region with the password: byalmightybob
|
|
|
|
|
Thanks
I made the mistake that I put the selectedvalue before loading the data in the combobox, because I have put the code in the property of my custom control that selected the item. Those code was executed before the load instructions.
So by telling that the problem could be the reloading I' ve found the solution
|
|
|
|
|
Glad I could help.
--------------------------------------------------
Play Nation States and join The Code Project region with the password: byalmightybob
|
|
|
|
|
In VB 2005 Express:
If I set a MaskedTextBox, TextBox and ComboBox side by side with the same font, the Size.Height is set to 20, 20 and 22 respectively.
I have not figured out how to set the MaskedTextBox height. Whenever I change it, the IDE just sets it back to 20. So I cannot resize it to fit with the ComboBox.
The TextBox can get resizing if I set it MultiLine. Setting MaxLength seems to help the wrap-around issues for now.
The ComboBox allows some resizing if you set its DropDownStyle to Simple and IntegralHeight to False. However, if you set it to 20, then the bottom line of the control is missing.
VB6 and .NET 2003 let you set the height without any problems.
Do any of you know how to overcome this? I have a form with several controls that I am trying to give a uniformed look, but this is causing either gaps or overlapping to work around the problem.
|
|
|
|
|
I need to know some pretty simple stuff that doesn't seem to be out there or maybe i'm searching for the wrong terminology. I am Visual Studio 2005 and am making a setup project for a program. How do I tell windows installer 3.1 to put shortcuts to just .exe file on the desktop? Also, how do I direct it to put the database in a different folder than the program folder?
thanks in advance
|
|
|
|
|
That's way beyond the VS installer's capabilities (being just for basic setups). I would suggest a stand-alone installer like NSIS for an advanced setup, or Install Creator for something simple.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Hello,
I have my own application with uses msstdfmt.dll via "Data Format" property of Lable control. As i believe we can distribute VB runtime dll MSVBVM60.dll by including in our installable. I want to know whether is it ok to distribute msstdfmt.dll also? Otherwise the machine where my application is going to run needs to have VB installed. But i don't want to install VB. Instead of that if that machine is having this msstdfmt.dll and register then it will work.
Can any one let me any legal articles found about this dll?
best regards,
kirrik
|
|
|
|
|
Look in the Redist.txt file for VB6, it looks like it is under the REDISTRIBUTABLE CODE - Standard: Section.
|
|
|
|
|
Thanks for your time. So, what does it mean?
|
|
|
|
|
Googling it comes up with: This link http://technology.pitt.edu/userights/msoffice_dev_ed.pdf[^]
2.2 Redistributable Code-Standard. Microsoft grants you a nonexclusive,
royalty-free right to reproduce and distribute the object code form of any
portion of the Software listed in REDIST.TXT ("Redistributable Code").
Note: Certain Redistributable Code may be subject to the restrictions in
subsection 2.3 below if it is also identified as "Limited Use Redistributable
Code."
|
|
|
|
|
Thank you very much.
I have one more quick question. Suppose if this can redistributed... then any microsoft kit kind installable is available or do we need to make to check/replace the latest version of this dll?
Thanks for the help.
Kiran
|
|
|
|
|
I would just windows installer to do the checking. That way you are not overwriting a newer version of the file
|
|
|
|
|
Hi. I don't know how to solve that. I have an application divided in two parts with a listview in each one. I can open documents that loads thumbnails in the listviews and the application must permit to move thumbs from one listview to the other.
I can open a document and the images load properly in a listview, that has assigned a imagelist with the thumbs.
The problem is when moving thumbs to the other listview, as already has its own imagelist and if I move image1 from listview1 to the listview2, it takes the appearence of image1 in listview2.
I hope the explanation is clear enough. Any idea to solve that?
Regards,
Diego F.
|
|
|
|
|
Hi,
I have developed an application (i.e. a rss news reader) it reads news from any rss source.
Now the problem is that i have selected its position just over the taskbar and always on TOP ; issue is that my news reader overlaps all the applictions.
I want my RSS News Reader to appear as task bar appears (i.e. all application launched should be above as in the case of windows task bar)
Thank you!
"Mess with the Best, Die like the rest"
|
|
|
|
|
Hi,
i just want to run an html file containing special animation like popup to show on mousemove event of the button.(in other words i want to show an dynamic popup
on mousemove event)
any help is greatly appericiated.
thanks,
amolk
amolk
|
|
|
|
|
This is not a VB question, to do this you need to use javascript, because that's what runs inside the browser that is showing your HTML.
Dynamic menus are the most common example of this sort of thing you will find on the web.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
thanks for reply, but the real problem with me is i want this funcionality on button which is on ie-toolbar.
i try also to call js file but the coding for show popup like "document." , it generates error as there is not any document or window.
please suggest on this !!!
thanks in advance.
amolk
-- modified at 7:01 Thursday 5th April, 2007
amolk
|
|
|
|
|
Sorry if this is a bit long and wordy. Wanted to know using a series of buttons per project (Microsoft Project) how to hit a button to access the correct project and produce a cumulative cost curve for the project. I am bordering on hopeless so might be better to assume from base level.
|
|
|
|
|
i need code to develope a sound recorder in vb.net.
need urgently.i got but in c#.
Aman
|
|
|
|
|
Can u provide me the code.My mail-id is PankajGarg10@yahoo.co.in
I will send the converted VB.net code to u.
|
|
|
|
|
i am interested about sound recording in vb if any one could provide it for me
|
|
|
|
|
Sir/Madam,
Can I programically ascertain , the number of users who has accounts on my operation system , using the VB.net 2005 .
I can find out the user who is currently logged in .
By the following code.
System.Environment.Username
But I want to know the no of users who has account on the operation system.
Please help.
Thanks and Regards
Pankaj Garg
|
|
|
|
|
Hello,
In a project i need a few comboboxes with the same datasource (collection) When I select a item in one of the comboboxes then all the other comboboxes change to that item.
To fill the comboxes I use
With Cmb1
.DataSource = Nothing
.DisplayMember = "Name"
.ValueMember = "ID"
.DataSource = Collection
End With
With Cmb2
.DataSource = Nothing
.DisplayMember = "Name"
.ValueMember = "ID"
.DataSource = Collection
End With
During runtime I have to refill te comboboxes with new data, a new collection
|
|
|
|
|
Hi Jodd,
I think the order in which you try to bind your data source to your comboboxes is a bit off, try something like this:
<br />
With Cmb1<br />
.DataSource = Collection<br />
.DisplayMember = "Name"<br />
.ValueMember = "ID"<br />
End With<br />
With Cmb2<br />
.DataSource = Collection<br />
.DisplayMember = "Name"<br />
.ValueMember = "ID"<br />
End With<br />
But was that the actual question?
Johan
My advice is free, and you may get what you paid for.
|
|
|
|