Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C# Programming

C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-2008, 08:14 AM
Nille's Avatar   
Nille Nille is offline
Learning Programmer
 
Join Date: Apr 2007
Location: Sweden
Age: 19
Posts: 37
Rep Power: 5
Nille is on a distinguished road
Default A couple of beginner questions

Ok guys once again i need your expertise i have recently started some C# programming and i have a couple of problems i dont quite know how to solve :P

(i wish to warn you for the noobishness of these questions)

1. I have made a program and i want to have to textboxes in it and thats not that mutch of a problem but i want the user to write in one of the boxes but i dont know how to make the program input wat is written in the box?

2. In this program of mine i want to be able to have a background image and thats quite easy but how should i do to resize it to fit in the window?

3. Is it posible to set a background image and then make a button that changes the background to another image?
And if so please tell me how

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-14-2008, 02:21 PM
VCKicks VCKicks is offline
Newbie
 
Join Date: Jan 2008
Posts: 22
Rep Power: 3
VCKicks is on a distinguished road
Default

1. [name of textbox].Text will return the user input as a string (for example string input = textBox1.Text

2. Check the Form properties, one of them is BackgroundImage SizeMode or something to that sort, I can't recall exactly, but by default it's set to Tile, change it to Stretch

3. Have the button do something like this.BackgroundImage = Image.FromFile("path");
__________________
Visual C# Kicks - Everything C#.Net programming related - http://vckicks.110mb.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-15-2008, 01:19 PM
Nille's Avatar   
Nille Nille is offline
Learning Programmer
 
Join Date: Apr 2007
Location: Sweden
Age: 19
Posts: 37
Rep Power: 5
Nille is on a distinguished road
Default

Thank you so mutch for the help VCKicks it helped alot :P

If its not to mutch trouble i was wondering if you can do nr 3 without a button so if you just press a certain key or the mouse insted of a button it will change the image?

and one again thanks: D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-15-2008, 10:37 PM
VCKicks VCKicks is offline
Newbie
 
Join Date: Jan 2008
Posts: 22
Rep Power: 3
VCKicks is on a distinguished road
Default

Check out the picturebox's events (in the properties tab, lightning icon). There you'll find several Mouse events (including Click). For a key press you'll need a KeyUp or KeyPress event, however those can be a little trickier, but try them out to see which one works best
__________________
Visual C# Kicks - Everything C#.Net programming related - http://vckicks.110mb.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 02:12 AM
Nille's Avatar   
Nille Nille is offline
Learning Programmer
 
Join Date: Apr 2007
Location: Sweden
Age: 19
Posts: 37
Rep Power: 5
Nille is on a distinguished road
Default

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 01-16-2008, 03:29 AM
jireh jireh is offline
Newbie
 
Join Date: Jan 2008
Posts: 18
Rep Power: 3
jireh is on a distinguished road
Default

one more thing... please try ti install msdn in your pc, it will help a lot...your questions can be found there...

regards.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie questions regarding inputing a sentence Emir C and C++ 3 12-29-2007 06:21 PM
Need Help With A Couple Things joebenjamin C and C++ 3 09-11-2007 10:57 AM
A few basic website questions ehudgershon General Programming 4 06-11-2007 02:20 PM
may be off a couple days littlefranciscan The Lounge 9 02-11-2007 03:42 PM
Where to ask vBullentin questions PC101 Website Design 4 09-19-2006 04:16 PM


All times are GMT -5. The time now is 02:44 AM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
LogicKills ........ 20.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 67%

Ads