Solved

getting a value of combo box?

Posted on 2006-10-26
2
222 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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

12 Experts available now in Live!

Get 1:1 Help Now