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

C#

 
AnswerRe: C++ dll in C# Pin
Christian Graus10-Feb-09 18:43
protectorChristian Graus10-Feb-09 18:43 
QuestionPaging DataList Control Pin
ferronrsmith10-Feb-09 16:41
ferronrsmith10-Feb-09 16:41 
QuestionASP.NET multiuser dataset shared problem Pin
Ramkithepower10-Feb-09 14:44
Ramkithepower10-Feb-09 14:44 
AnswerRe: ASP.NET multiuser dataset shared problem Pin
N a v a n e e t h10-Feb-09 15:28
N a v a n e e t h10-Feb-09 15:28 
GeneralRe: ASP.NET multiuser dataset shared problem Pin
Ramkithepower10-Feb-09 15:34
Ramkithepower10-Feb-09 15:34 
GeneralRe: ASP.NET multiuser dataset shared problem Pin
Guffa10-Feb-09 17:57
Guffa10-Feb-09 17:57 
GeneralRe: ASP.NET multiuser dataset shared problem Pin
Ramkithepower10-Feb-09 21:33
Ramkithepower10-Feb-09 21:33 
GeneralRe: ASP.NET multiuser dataset shared problem Pin
Guffa10-Feb-09 23:42
Guffa10-Feb-09 23:42 
QuestionHDD Serial Number Pin
Socheat.Net10-Feb-09 14:23
Socheat.Net10-Feb-09 14:23 
AnswerRe: HDD Serial Number Pin
ABitSmart10-Feb-09 14:43
ABitSmart10-Feb-09 14:43 
GeneralRe: HDD Serial Number Pin
Socheat.Net10-Feb-09 15:07
Socheat.Net10-Feb-09 15:07 
AnswerRe: HDD Serial Number Pin
Luc Pattyn10-Feb-09 14:57
sitebuilderLuc Pattyn10-Feb-09 14:57 
AnswerRe: HDD Serial Number Pin
Ramkithepower10-Feb-09 15:05
Ramkithepower10-Feb-09 15:05 
AnswerRe: HDD Serial Number Pin
ABitSmart10-Feb-09 15:53
ABitSmart10-Feb-09 15:53 
AnswerRe: HDD Serial Number Pin
#realJSOP10-Feb-09 23:37
professional#realJSOP10-Feb-09 23:37 
GeneralRe: HDD Serial Number Pin
Socheat.Net11-Feb-09 14:07
Socheat.Net11-Feb-09 14:07 
QuestionHelp for someone whos memory is going fast. Pin
Henry Minute10-Feb-09 12:56
Henry Minute10-Feb-09 12:56 
AnswerRe: Help for someone whos memory is going fast. Pin
Alan N10-Feb-09 13:41
Alan N10-Feb-09 13:41 
GeneralRe: Help for someone whos memory is going fast. Pin
Henry Minute10-Feb-09 13:46
Henry Minute10-Feb-09 13:46 
QuestionWhich Is Better - Signed or Unsigned Assemblies? Pin
BlitzPackage10-Feb-09 11:00
BlitzPackage10-Feb-09 11:00 
AnswerRe: Which Is Better - Signed or Unsigned Assemblies? Pin
je_gonzalez10-Feb-09 11:46
je_gonzalez10-Feb-09 11:46 
AnswerRe: Which Is Better - Signed or Unsigned Assemblies? Pin
#realJSOP10-Feb-09 23:38
professional#realJSOP10-Feb-09 23:38 
QuestionHow to use a string or char array to refer to a control Pin
t_feras10-Feb-09 10:41
t_feras10-Feb-09 10:41 
Hello,

I am trying to build an application where I can navigate through a series of images (either forward or backward). For example, if the "forward" button is pressed, the current displayed image is collapsed and the next image will be displayed. In my application, the image control names for these images are: Image1, Image2, Image3, etc.

I currently have over 150 images that I am trying to manipulate. I'd like to find a way to use a string or char array to refer to the image control name. So far I have no luck as I am not very familiar with C#. I copied below a snippet of what I am trying to do:

private void ShowPreviousImage()
{
//proceed backward to show the previous image
string currentImage;
string nextImage;
char [] buf;
if (imagePosition > 0) //imagePosition is the index of the image that is currently displayed
{
currentImage = "image" + imagePosition;
nextImage = "image" + (imagePosition -1);
buf = currentImage.ToCharArray();
buf.Visibility = System.Windows.Visibility.Collapsed;
//Error generated: ‘System.Array’ doesnot contain a definition for ‘Visibility’ and no extension
//method ‘Visibility’ accepting a first argument of type ‘System.Array’ could be found…

//Same thing I get when I use the original string as shown below

currentImage.Visibility = System.Windows.Visibility.Collapsed;
//Error generated ‘String’ doesnot contain a definition for ‘Visibility’ and no extension
//method ‘Visibility’ accepting a first argument of type ‘System.Array’ could be found…

imagePosition--;
}
}

Any help will be appreciated.

Regards,
AnswerRe: How to use a string or char array to refer to a control Pin
Christian Graus10-Feb-09 12:43
protectorChristian Graus10-Feb-09 12:43 
AnswerRe: How to use a string or char array to refer to a control Pin
Henry Minute10-Feb-09 12:49
Henry Minute10-Feb-09 12:49 

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.