Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bitmap PixelFormat GetPixel Pin
Dave Kreskowiak29-May-04 15:03
mveDave Kreskowiak29-May-04 15:03 
GeneralRe: Bitmap PixelFormat GetPixel Pin
Dave12345629-May-04 22:51
Dave12345629-May-04 22:51 
GeneralRe: Bitmap PixelFormat GetPixel Pin
Dave Kreskowiak30-May-04 3:06
mveDave Kreskowiak30-May-04 3:06 
GeneralRe: Bitmap PixelFormat GetPixel Pin
Dave12345630-May-04 4:45
Dave12345630-May-04 4:45 
GeneralRe: Bitmap PixelFormat GetPixel Pin
Dave1234564-Jun-04 8:13
Dave1234564-Jun-04 8:13 
GeneralRe: Bitmap PixelFormat GetPixel Pin
Dave1234564-Jun-04 8:22
Dave1234564-Jun-04 8:22 
GeneralRSS reader help Pin
MeterMan29-May-04 14:02
MeterMan29-May-04 14:02 
GeneralRe: RSS reader help Pin
MeterMan30-May-04 8:11
MeterMan30-May-04 8:11 
Update:
I have it reading it in and matching the links but I'm hung up on something that i thought would be obvious but its not. For some reason the link is one title behind. I see in the code that it reads the title then the link which is what it should do but as soon as it starts spitting out the title It should be linkable but the link hasn't changed. I have tried moving this segment of code all around and can't figure it out. Help would be appreciated.

if (reader.LocalName.Equals("link"))
link=reader.ReadString();
label2.Text=link.ToString();


void ticker()
		{
			String URLString = "http://rss.news.yahoo.com/rss/topstories";
			
			
			string tickerstring="";
			
			while(true)
			{
				XmlTextReader reader = new XmlTextReader (URLString);
				int removeme =-1;
							
				while (reader.Read())
				{
					
					if (reader.NodeType == XmlNodeType.Element)
					{
						if (reader.LocalName.Equals("link"))
						link=reader.ReadString();
						label2.Text=link.ToString();
						Thread.Sleep(300);
						
						if (reader.LocalName.Equals("title"))
						{
							

							tickerstring =reader.ReadString()+" ";
							
							
							
						
					
							for (int i=0; i<=tickerstring.Length; i++)    
							{   
								
								
								if (i>100)
								{
									label1.Text = tickerstring.Substring(++removeme,label1.Text.Length); 
						
								}
								else
								{
									try
									{
										label1.Text = tickerstring.Substring(0,i);
									}
									catch (Exception ex)
									{
										MessageBox.Show(ex.ToString());
									}

					  
						
								}
								
						 
								Thread.Sleep(100);
							
								
							}
							
							
							
						
						}	 
					}
				}
			}
		}



Win32newb
"Programming is like sex, make one mistake and you have to support it for a long time"
GeneralTreeView.text Pin
Ammar Ben Hadj Amor29-May-04 10:35
professionalAmmar Ben Hadj Amor29-May-04 10:35 
GeneralRe: TreeView.text Pin
Aaron Eldreth29-May-04 11:04
Aaron Eldreth29-May-04 11:04 
GeneralFrom double to Date Pin
Christer Claesson29-May-04 7:03
Christer Claesson29-May-04 7:03 
GeneralRe: From double to Date Pin
Mazdak29-May-04 10:22
Mazdak29-May-04 10:22 
GeneralRe: From double to Date Pin
Dave Kreskowiak29-May-04 14:48
mveDave Kreskowiak29-May-04 14:48 
GeneralRe: From double to Date Pin
Anonymous30-May-04 0:22
Anonymous30-May-04 0:22 
GeneralExecutable Pin
garyellis529-May-04 6:30
garyellis529-May-04 6:30 
GeneralRe: Executable Pin
Nnamdi Onyeyiri29-May-04 9:01
Nnamdi Onyeyiri29-May-04 9:01 
GeneralBinary Resource Pin
Chernobog_29-May-04 2:43
Chernobog_29-May-04 2:43 
GeneralA question about move PictureBox Pin
Member 94012528-May-04 21:39
Member 94012528-May-04 21:39 
GeneralRe: A question about move PictureBox Pin
Aaron Eldreth29-May-04 3:01
Aaron Eldreth29-May-04 3:01 
GeneralRe: A question about move PictureBox Pin
MeterMan29-May-04 14:08
MeterMan29-May-04 14:08 
GeneralRe: A question about move PictureBox Pin
Member 94012529-May-04 23:58
Member 94012529-May-04 23:58 
Generaldatareader in asp.net using c# Pin
HowRU28-May-04 19:36
HowRU28-May-04 19:36 
GeneralRe: datareader in asp.net using c# Pin
Mazdak28-May-04 20:05
Mazdak28-May-04 20:05 
GeneralRe: datareader in asp.net using c# Pin
Dave Kreskowiak29-May-04 14:35
mveDave Kreskowiak29-May-04 14:35 
QuestionHow to decide if a Point is on a curve Pin
TaoLi28-May-04 16:38
TaoLi28-May-04 16:38 

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.