Solved

getting a value of combo box?

Posted on 2006-10-26
2
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
need to convert function to c# 5 57
Create a Dropdown list with sub group 10 43
c# ftp code 3 56
web api controller with multiple posts that accept different objects 1 25
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…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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