Solved

getting a value of combo box?

Posted on 2006-10-26
2
225 Views
Last Modified: 2010-04-16
       datePeriod.Update(edtDatePeriodName.Text.Trim(), (int)cboDateTimeUnit.SelectedItem.DataValue, edtDatePeriodNumber.Value, (int)cboDatePeriodType.SelectedItem.DataValue);
     

cboDatePeriodType how do I get the value(contents) from this.
       
0
Comment
Question by:mathieu_cupryk
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
brazzle earned 250 total points
ID: 17814221
hi Mathieu,

here is a way to do it (looks like you want an int out of it):

int x = int.Parse(cboDatePeriodType.Text);
0
 
LVL 2

Expert Comment

by:brazzle
ID: 17816972
thanks
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now