|
Try: rs.Fields("CategoryName").Value = txtcat.Text .
|
|
|
|
|
Absoulutely. thankyou so much.
|
|
|
|
|
Hi All, I recently developed a shared COM Addin using VB.Net and Outlook 2003. It works great on local machine but when I install it on Terminal server it doesn't work.
My Addin get installed on Windows 2003 Terminal server with the initial Loadbehavior = 2Hex value under the HKEY_LOCAL_MACHINE in registry. It starts working when I change it to 3Hex. But as soon as another user logs in on termail server and starts outlook, the loadbehavior values becomes 2Hex again and my Addin stops working for all users.
Any idea why registry is being changed by multiple user sessions. I will appreciate your response.
Thanks
|
|
|
|
|
Hiii Expert
I m also working on outlook 2003 add ins using vb.net 2005. and i am facing same problem but i solved my problem following these steps (MSDN Article).
http:
May be this helps you.
Thanx
Mitesh Khatri
|
|
|
|
|
Hey Mitresh, Many thanks for your response. My Addin is a Shared Addin not VSTO one, do you think these steps are same for shared addin?
Nas
|
|
|
|
|
Hi, I did follow the article but still same problem. I guess this article addresses VSTO Addins not Shared COM Addins. Just for the test purpose, I created a small shared COM addin for outlook 2003. After installation it worked fine but as soon 2 users started outlook session (on Terminal server), it stoped working and again Registry Loadbehavior value changed to 2 from 3. This thing is driving me crazy. Does anyone guide me where I am wrong?
Thanks
|
|
|
|
|
Hiii
I also develop excel 2007 Shared add ins and when i run multiple instance of excel then my add in not working properly on same machine. i think add ins working on single instance of a application.
Thanx
Mitesh Khatri
|
|
|
|
|
So it memans we cannot run COM Addin on terminal server?
|
|
|
|
|
Hiii
May be we r unable to run COM Addin on terminal server? but not sure.....
If you get any solution of this problem plz send me at mail id.
Thanx
Mitesh
Khatrimitesh@hotmail.com
|
|
|
|
|
|
I am working with access database and vb.net. I like to make two listBox in a form. first for product list and second for suppliers list of those corresponding products. When I click product list item corresponding suppliers of that product should be show in supplier list.Data retrive from products and suppliers table from database. I am a begainer of programming. Please help me to design the code.
modified on Tuesday, June 24, 2008 5:26 AM
|
|
|
|
|
What's your actual problem?
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
I guess I'll get a 1 vote for this, too, but, the other reply is correct. Do you have a problem, or do you just have no idea how to code this ? What have you tried ?
The list box has a selected index changed event, you can use this to populate the second list
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
sir/madam i would like to rotate an image in the form of rectangle by dragging the upper right corner of the rectangle in a panel box.image drawing and dragging events both in different forms in my project.
|
|
|
|
|
OK - well, you can do a rotate transform on a graphics object.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Don't email me directly.
If you draw the bitmap in the paint event, you can set the rotate transform on the graphics object to rotate the bitmap
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I'm trying to set the selected value from a combo box that is populated from my database,
i cant seem to find a way to do that.
I'm using this to populate my combo box:
Private Sub PopulateCountry()
Dim country As New Client
Dim contryList As OdbcDataReader = country.mpopulateCountry()
Dim objCountry As String
If contryList.HasRows Then
contryList.Read()
Do While contryList.Read
objCountry = contryList(0)
cbxCCountry.Items.Add(objCountry)
cbxCountry.Items.Add(objCountry)
Loop
End If
End Sub
And calling this method(PopulateCountry()) in the form load and then using this to set the value upon my button btnAddToDB:
Dim country As String
country = cbxCCountry.SelectedValue
Any suggestion guys?
|
|
|
|
|
In your sub
jalandoonk wrote: Private Sub PopulateCountry()
you are only adding the items to the combo box but not selecting any
jalandoonk wrote: Do While contryList.Read
objCountry = contryList(0)
cbxCCountry.Items.Add(objCountry)
cbxCountry.Items.Add(objCountry)
Loop
when you are doing a call from from load you are trying to get the selected item
jalandoonk wrote: Dim country As String
country = cbxCCountry.SelectedValue
You first have to select one item then only you can get selected item
You can do this by any of the tho methods
cbxCCountry.Text ="" 'Put the item string which you want to select
Or
cbxCCountry.selectedindex = 1 'The index number of item you want to select
Good luck
Nishkarsh
|
|
|
|
|
just solved it. my code works i just got mixed up with the ".SelectedItem" and ".SelectedValue"
|
|
|
|
|
Hello sir, setting the combo box border as i saw flat combo topic
how to change the border according to my requirement.
Pls suggest me
regards
|
|
|
|
|
Look through the properties of a combo box in the designer. If you can't do it there, I guess it was owner drawn.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
You can Create your own Combo box using Textbox,List box with a New Property.
Cheers
Anubhav Dimri
anubhava@prodata.gmail.com
9250168195
|
|
|
|
|
Hi pls suggest me by giving sample example
|
|
|
|
|
He's saying you can build one from scratch as a custom control. He can't possibly paste the code for that here, nor is it likely he has it.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Create a Project for User Control.
Insert a Text box. for Combo text.and then Use List for Combobox items.
insert a button for Indexchange of List.
Then u can create your own Combo box.
Cheers
Anubhava Dimri
919250168195
|
|
|
|