Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to have a common Subs for the same use? C# 2010 Pin
Luc Pattyn22-May-11 5:01
sitebuilderLuc Pattyn22-May-11 5:01 
AnswerRe: How to have a common Subs for the same use? C# 2010 Pin
Pete O'Hanlon22-May-11 5:04
mvePete O'Hanlon22-May-11 5:04 
GeneralRe: How to have a common Subs for the same use? C# 2010 Pin
Paramu197322-May-11 5:13
Paramu197322-May-11 5:13 
GeneralRe: How to have a common Subs for the same use? C# 2010 Pin
Pete O'Hanlon22-May-11 8:29
mvePete O'Hanlon22-May-11 8:29 
Questionc# Problem with webbrowser control loading local images Pin
_Q12_22-May-11 3:54
_Q12_22-May-11 3:54 
AnswerRe: c# Problem with webbrowser control loading local images Pin
Dalek Dave22-May-11 4:27
professionalDalek Dave22-May-11 4:27 
GeneralRe: c# Problem with webbrowser control loading local images [modified] Pin
_Q12_22-May-11 4:31
_Q12_22-May-11 4:31 
AnswerRe: c# Problem with webbrowser control loading local images [modified] Pin
Luc Pattyn22-May-11 5:07
sitebuilderLuc Pattyn22-May-11 5:07 
why don't you just provide a valid web page, something like:
object item=ListBox1.SelectedItem;
if (item!=null) webBrowser1.DocumentText="<html><body><img src='"+item+"'></body></html>";


BTW: SelectedIndexChanged will also fire when something gets deselected, possible causing unexpected values for SelectedIndex, SelectedItem, etc.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
modified on Sunday, May 22, 2011 11:38 AM

AnswerRe: c# Problem with webbrowser control loading local images Pin
Luc Pattyn22-May-11 5:30
sitebuilderLuc Pattyn22-May-11 5:30 
GeneralRe: c# Problem with webbrowser control loading local images Pin
Mark Salsbery22-May-11 5:32
Mark Salsbery22-May-11 5:32 
GeneralRe: c# Problem with webbrowser control loading local images Pin
_Q12_22-May-11 7:12
_Q12_22-May-11 7:12 
AnswerRe: c# Problem with webbrowser control loading local images Pin
#realJSOP23-May-11 1:47
mve#realJSOP23-May-11 1:47 
QuestionClose wrod corrctly, it's possile? Pin
abbd21-May-11 13:49
abbd21-May-11 13:49 
AnswerRe: Close wrod corrctly, it's possile? Pin
Luc Pattyn21-May-11 14:14
sitebuilderLuc Pattyn21-May-11 14:14 
AnswerRe: Close wrod corrctly, it's possile? Pin
Not Active21-May-11 16:00
mentorNot Active21-May-11 16:00 
AnswerRe: Close wrod corrctly, it's possile? Pin
GenJerDan21-May-11 17:01
GenJerDan21-May-11 17:01 
GeneralRe: Close wrod corrctly, it's possile? Pin
abbd22-May-11 5:56
abbd22-May-11 5:56 
GeneralRe: Close wrod corrctly, it's possile? Pin
GenJerDan22-May-11 7:41
GenJerDan22-May-11 7:41 
GeneralRe: Close wrod corrctly, it's possile? Pin
abbd22-May-11 10:13
abbd22-May-11 10:13 
GeneralRe: Close wrod corrctly, it's possile? [modified] Pin
GenJerDan23-May-11 3:20
GenJerDan23-May-11 3:20 
QuestionDynamically generate link labels (open to alternatives if necessary) Pin
Matt U.21-May-11 8:18
Matt U.21-May-11 8:18 
AnswerRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Luc Pattyn21-May-11 8:50
sitebuilderLuc Pattyn21-May-11 8:50 
GeneralRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Matt U.21-May-11 8:59
Matt U.21-May-11 8:59 
AnswerRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Luc Pattyn21-May-11 9:10
sitebuilderLuc Pattyn21-May-11 9:10 
GeneralRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Matt U.21-May-11 10:28
Matt U.21-May-11 10:28 

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.