Click here to Skip to main content
15,909,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: Array object Empty Pin
Otis_6931-May-04 9:40
Otis_6931-May-04 9:40 
GeneralRe: Array object Empty Pin
Stefan Troschuetz30-May-04 22:35
Stefan Troschuetz30-May-04 22:35 
Generalforce an event to trigger Pin
YiannisF30-May-04 4:23
YiannisF30-May-04 4:23 
GeneralRe: force an event to trigger Pin
Mazdak30-May-04 4:31
Mazdak30-May-04 4:31 
GeneralRe: force an event to trigger Pin
YiannisF30-May-04 7:09
YiannisF30-May-04 7:09 
GeneralC# and ADO.NET data caching Pin
ajenny30-May-04 3:47
ajenny30-May-04 3:47 
QuestionAbout draw a rectangle? Pin
Member 185560830-May-04 0:20
Member 185560830-May-04 0:20 
AnswerRe: About draw a rectangle? Pin
Aaron Eldreth30-May-04 2:08
Aaron Eldreth30-May-04 2:08 
GeneralClosing External Window Pin
cgcrute29-May-04 23:35
cgcrute29-May-04 23:35 
GeneralRe: Closing External Window Pin
Xiangyang Liu 刘向阳30-May-04 2:00
Xiangyang Liu 刘向阳30-May-04 2:00 
GeneralRe: Closing External Window Pin
Dave Kreskowiak30-May-04 3:13
mveDave Kreskowiak30-May-04 3:13 
GeneralHelp me please ! Pin
Vo Tan Tai29-May-04 18:28
Vo Tan Tai29-May-04 18:28 
GeneralRe: Help me please ! Pin
Mazdak29-May-04 20:21
Mazdak29-May-04 20:21 
GeneralRe: ListBox Pin
myNameIsRon29-May-04 16:35
myNameIsRon29-May-04 16:35 
GeneralRe: ListBox Pin
Meysam Mahfouzi29-May-04 16:55
Meysam Mahfouzi29-May-04 16:55 
GeneralRe: ListBox Pin
myNameIsRon1-Jun-04 10:38
myNameIsRon1-Jun-04 10:38 
GeneralBitmap PixelFormat GetPixel Pin
Dave12345629-May-04 14:47
Dave12345629-May-04 14:47 
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"

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.