Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
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 
I'm trying to make a ticker that gets its information from an rss news feed.
I can't figure out how to make the link portion be in sync with the title portion. What i mean is this.
Lets say i have titles
siteone
sitetwo
sitethree
I want it to scroll which i have it doing right now, but I want to be able to click on say sitetwo and it take me to toysrus.com or whatever and if i click on sitethree it take me to broadband.com or whatever the link in the rss file indicates. Here is what i have so far but obviously its not working. I can't figure out how to seperate if you will the links to correspond to the correct title. Never using the rss reader before so don't beat me up to bad if its an easy obvious fix.

void ticker()
		{
			String URLString = "http://www.local-news.net/go/-84.5374/33.8591/rss/";
			
			XmlTextReader reader = new XmlTextReader (URLString);
			string tickerstring = reader.ReadString();
			while(true)
			{
				
							
				while (reader.Read())
				{
					if (reader.NodeType == XmlNodeType.Element)
					{
						if (reader.LocalName.Equals("title"))
						{
							tickerstring +=reader.ReadString()+" ";
							
						}
						if (reader.LocalName.Equals("link"))
							link=reader.ReadString();
					}

					
				}
				int removeme =-1;
				
				
				for (int i=0; i<=tickerstring.Length; i++)    
				{   
					
					label2.Text=i.ToString();
					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);
				} 
			Thread.Sleep(1000);
			}

		}



Win32newb
"Programming is like sex, make one mistake and you have to support it for a long time"
GeneralRe: RSS reader help Pin
MeterMan30-May-04 8:11
MeterMan30-May-04 8:11 
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 

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.