Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# 2010 object Pin
Jibesh21-Jan-13 12:00
professionalJibesh21-Jan-13 12:00 
AnswerRe: C# 2010 object Pin
Eddy Vluggen21-Jan-13 13:01
professionalEddy Vluggen21-Jan-13 13:01 
AnswerRe: C# 2010 object Pin
Freak3021-Jan-13 21:53
Freak3021-Jan-13 21:53 
GeneralC#.net with postGis Pin
tashee21-Jan-13 3:47
tashee21-Jan-13 3:47 
GeneralRe: C#.net with postGis Pin
Eddy Vluggen21-Jan-13 13:03
professionalEddy Vluggen21-Jan-13 13:03 
QuestionHow to handle Image/Data from Centralized SQL Server Pin
Hema Bairavan21-Jan-13 0:46
Hema Bairavan21-Jan-13 0:46 
AnswerRe: How to handle Image/Data from Centralized SQL Server Pin
Eddy Vluggen21-Jan-13 1:21
professionalEddy Vluggen21-Jan-13 1:21 
GeneralRe: How to handle Image/Data from Centralized SQL Server Pin
Hema Bairavan21-Jan-13 5:59
Hema Bairavan21-Jan-13 5:59 
GeneralRe: How to handle Image/Data from Centralized SQL Server Pin
Pete O'Hanlon21-Jan-13 6:06
mvePete O'Hanlon21-Jan-13 6:06 
GeneralRe: How to handle Image/Data from Centralized SQL Server Pin
Eddy Vluggen21-Jan-13 6:10
professionalEddy Vluggen21-Jan-13 6:10 
AnswerRe: How to handle Image/Data from Centralized SQL Server Pin
V.21-Jan-13 1:32
professionalV.21-Jan-13 1:32 
GeneralRe: How to handle Image/Data from Centralized SQL Server Pin
Hema Bairavan21-Jan-13 6:08
Hema Bairavan21-Jan-13 6:08 
GeneralRe: How to handle Image/Data from Centralized SQL Server Pin
V.21-Jan-13 6:15
professionalV.21-Jan-13 6:15 
AnswerRe: How to handle Image/Data from Centralized SQL Server Pin
jschell21-Jan-13 8:05
jschell21-Jan-13 8:05 
SuggestionRe: How to handle Image/Data from Centralized SQL Server Pin
Hema Bairavan21-Jan-13 19:14
Hema Bairavan21-Jan-13 19:14 
Questionfingerprint recognition Pin
yinyin8421-Jan-13 0:37
yinyin8421-Jan-13 0:37 
AnswerRe: fingerprint recognition Pin
Abhinav S21-Jan-13 0:59
Abhinav S21-Jan-13 0:59 
GeneralRe: fingerprint recognition Pin
yinyin8425-Jan-13 18:29
yinyin8425-Jan-13 18:29 
AnswerRe: fingerprint recognition Pin
Rahul Rajat Singh21-Jan-13 1:05
professionalRahul Rajat Singh21-Jan-13 1:05 
GeneralRe: fingerprint recognition Pin
yinyin8425-Jan-13 18:28
yinyin8425-Jan-13 18:28 
AnswerRe: fingerprint recognition Pin
Sivaraman Dhamodharan21-Jan-13 1:26
Sivaraman Dhamodharan21-Jan-13 1:26 
GeneralRe: fingerprint recognition Pin
yinyin8425-Jan-13 18:21
yinyin8425-Jan-13 18:21 
QuestionC# - Changing background of another form Pin
Steven Borges20-Jan-13 23:48
Steven Borges20-Jan-13 23:48 
AnswerRe: C# - Changing background of another form Pin
Pete O'Hanlon21-Jan-13 0:22
mvePete O'Hanlon21-Jan-13 0:22 
AnswerRe: C# - Changing background of another form Pin
BobJanova21-Jan-13 5:45
BobJanova21-Jan-13 5:45 
The simplest answer is to provide a reference to Form2 to Form1 (in its constructor or via a property). Then, in an event handler on Form1 you can simply do
form2.BackgroundImage = whatever;


However, providing this sort of direct link to other UI elements quickly results in a horrible mess of dependencies and global state, so if it's not a trivial UI I don't recommend it. Instead, I would guess that the change in image actually represents some state that should be stored in a data model, not the UI (although the UI will reflect it). What does the image mean? That meaning should be a property on a data object and the UI for the second form should be data bound to it.

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.