Click here to Skip to main content
15,905,420 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 22:26
Phil C6-May-06 22:26 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus7-May-06 1:32
protectorChristian Graus7-May-06 1:32 
GeneralYup...that did the trick...thanx Pin
Phil C6-May-06 23:59
Phil C6-May-06 23:59 
GeneralRe: Yup...that did the trick...thanx Pin
Christian Graus7-May-06 1:34
protectorChristian Graus7-May-06 1:34 
AnswerRe: C# equivalent to char * (well, System.IntPtr)?? Pin
rudy.net7-May-06 3:26
rudy.net7-May-06 3:26 
QuestionDataGrid in ASP.NET App Using C# Pin
kayos5926-May-06 17:10
kayos5926-May-06 17:10 
Questionspeech sdk5.1 Pin
TheEagle6-May-06 16:54
TheEagle6-May-06 16:54 
AnswerRe: speech sdk5.1 Pin
Ravi Bhavnani6-May-06 18:01
professionalRavi Bhavnani6-May-06 18:01 
GeneralRe: speech sdk5.1 Pin
TheEagle6-May-06 22:16
TheEagle6-May-06 22:16 
QuestionOpening PDF file Pin
May Thu san6-May-06 16:36
May Thu san6-May-06 16:36 
AnswerRe: Opening PDF file Pin
Sean896-May-06 17:56
Sean896-May-06 17:56 
Questionproblem with threading Pin
Tahsin Sayeeda6-May-06 15:30
Tahsin Sayeeda6-May-06 15:30 
AnswerRe: problem with threading Pin
Ravi Bhavnani6-May-06 17:57
professionalRavi Bhavnani6-May-06 17:57 
AnswerRe: problem with threading Pin
Shy Agam6-May-06 22:57
Shy Agam6-May-06 22:57 
GeneralRe: problem with threading Pin
Tahsin Sayeeda7-May-06 0:09
Tahsin Sayeeda7-May-06 0:09 
GeneralRe: problem with threading Pin
Shy Agam7-May-06 0:54
Shy Agam7-May-06 0:54 
GeneralRe: problem with threading Pin
Tahsin Sayeeda7-May-06 8:49
Tahsin Sayeeda7-May-06 8:49 
GeneralRe: problem with threading Pin
S. Senthil Kumar7-May-06 2:45
S. Senthil Kumar7-May-06 2:45 
GeneralRe: problem with threading Pin
Tahsin Sayeeda7-May-06 8:33
Tahsin Sayeeda7-May-06 8:33 
GeneralRe: problem with threading Pin
Guffa7-May-06 5:35
Guffa7-May-06 5:35 
AnswerRe: problem with threading Pin
stbaker9-May-06 4:12
stbaker9-May-06 4:12 
QuestionPorting web navigator from VB6 to VS2005 C# Pin
cweeks786816-May-06 14:12
cweeks786816-May-06 14:12 
I am porting a VB 6.0 application to C# that automates navigation of multiple web pages within a site and extracts information from some of the pages. One of the pages contains a listbox containing a number of countries. The default value that is set is not the value I need to use.

The HTML in the web page looks like this:

<select name="country" style="" onchange="" multiple id="countryList" size="7">
<option value="*" selected> All Countries and Territories </option>
<option value="------0">------</option>
<option value="AU"> Australia </option>
<option value="AT"> Austria </option>
<option value="BE"> Belgium </option>
<option value="BR"> Brazil </option>
<option value="CA"> Canada </option>
<option value="CN"> China </option>
<option value="DK"> Denmark </option>
<option value="FI"> Finland </option>
<option value="FR"> France </option>
<option value="DE"> Germany </option>
<option value="HK"> Hong Kong </option>
<option value="IT"> Italy </option>
<option value="JP"> Japan </option>
<option value="NL"> Netherlands </option>
<option value="NO"> Norway </option>
<option value="PT"> Portugal </option>
<option value="SG"> Singapore </option>
<option value="KR"> South Korea </option>
<option value="ES"> Spain </option>
<option value="SE"> Sweden </option>
<option value="CH"> Switzerland </option>
<option value="TW"> Taiwan </option>
<option value="GB"> United Kingdom </option>
<option value="US"> United States </option>
</select>

In VB6 the selected value is changed this way:

' De-select the first (default) value in the list
wb1.All("country").Options(0).Selected = False
' Select the 26th item (zero-based index) in the list
wb1.All("country").selectedIndex = 25

wb1 is an HTMLDocument object.

I cannot figure out how to access the Options collection or the selectedIndex property with the .NET 2.0 Webbrowser object. Any ideas how I can do this in C#?

AnswerRe: Porting web navigator from VB6 to VS2005 C# Pin
cweeks786818-May-06 8:26
cweeks786818-May-06 8:26 
GeneralRe: Porting web navigator from VB6 to VS2005 C# Pin
cweeks786818-May-06 14:22
cweeks786818-May-06 14:22 
Questionnewbie seeks guidance on how use IDE Pin
wheels4me6-May-06 13:16
wheels4me6-May-06 13:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.