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

C#

 
AnswerRe: Get return value from one class to another Pin
Mike Poz28-Jun-06 12:12
Mike Poz28-Jun-06 12:12 
AnswerRe: Get return value from one class to another Pin
Rojan Gh.28-Jun-06 14:45
professionalRojan Gh.28-Jun-06 14:45 
Questionload a whole database into a DataSet Pin
hamidreza_buddy28-Jun-06 10:56
hamidreza_buddy28-Jun-06 10:56 
AnswerRe: load a whole database into a DataSet Pin
stancrm28-Jun-06 20:26
stancrm28-Jun-06 20:26 
QuestionXMLSerialize and Microsoft Controls Pin
3Dizard28-Jun-06 10:14
3Dizard28-Jun-06 10:14 
AnswerRe: XMLSerialize and Microsoft Controls Pin
BoneSoft28-Jun-06 10:55
BoneSoft28-Jun-06 10:55 
QuestionHelp with UserControl State Save and Restore Pin
TheBlindWatchmaker28-Jun-06 9:04
TheBlindWatchmaker28-Jun-06 9:04 
AnswerRe: Help with UserControl State Save and Restore [modified] Pin
Martin#28-Jun-06 9:59
Martin#28-Jun-06 9:59 
I hope I got everything!

Here is what I would do:

//Create an additional boolean Property "BlockMute" in your class "YoureUserControlClass"
public bool BlockMute
{
get
{
return _blockmute;
}
set
{
if(value!=_blockmute)
{
_blockmute = value;
}
}
}

public bool Mute
{
get
{
return _mute;
}
set
{
if(value!=_mute)
{
if(Blockmute== false)
{
_mute = value;
}
}
}
}


//SoloHandler
{
YoureUserControlClass actc = sender as YoureUserControlClass;

foreach(object o in this.Controls)
{
if(o is YoureUserControlClass)
{
YoureUserControlClass c = o as YoureUserControlClass;
if(actc.Solo == true)
{

if(o != sender)
{
c.Enabled = false;
c.Solo = false;
c.BlockMute =true;
}
else
{
c.Enabled = true;
c.BlockMute = false;
}
}
else
{
c.Enabled = false;
c.BlockMute = false;
}
}
}
}

All the best,Smile | :)

Martin

-- modified at 15:59 Wednesday 28th June, 2006
QuestionDatagridview.selectedValue help? Pin
PyroManiak28-Jun-06 8:38
PyroManiak28-Jun-06 8:38 
AnswerRe: Datagridview.selectedValue help? Pin
Mairaaj Khan28-Jun-06 20:11
professionalMairaaj Khan28-Jun-06 20:11 
GeneralRe: Datagridview.selectedValue help? Pin
PyroManiak29-Jun-06 10:51
PyroManiak29-Jun-06 10:51 
QuestionRegular expression Pin
NaNg1524128-Jun-06 8:36
NaNg1524128-Jun-06 8:36 
AnswerRe: Regular expression [modified] Pin
User 665828-Jun-06 8:44
User 665828-Jun-06 8:44 
GeneralRe: Regular expression Pin
Bitwise Gamgee28-Jun-06 11:41
Bitwise Gamgee28-Jun-06 11:41 
QuestionReference status bar in Windows Application Pin
Saamir28-Jun-06 8:16
Saamir28-Jun-06 8:16 
AnswerRe: Reference status bar in Windows Application Pin
Dave Kreskowiak28-Jun-06 9:25
mveDave Kreskowiak28-Jun-06 9:25 
Questionequivalent of control.CreateGraphics() for CF Pin
donkaiser28-Jun-06 8:10
donkaiser28-Jun-06 8:10 
AnswerRe: equivalent of control.CreateGraphics() for CF Pin
donkaiser28-Jun-06 8:14
donkaiser28-Jun-06 8:14 
AnswerRe: equivalent of control.CreateGraphics() for CF Pin
Guffa28-Jun-06 10:29
Guffa28-Jun-06 10:29 
GeneralRe: equivalent of control.CreateGraphics() for CF Pin
os0028-Jun-06 21:49
os0028-Jun-06 21:49 
GeneralRe: equivalent of control.CreateGraphics() for CF Pin
donkaiser29-Jun-06 5:18
donkaiser29-Jun-06 5:18 
AnswerRe: equivalent of control.CreateGraphics() for CF Pin
Guffa29-Jun-06 13:12
Guffa29-Jun-06 13:12 
AnswerRe: equivalent of control.CreateGraphics() for CF Pin
donkaiser29-Jun-06 6:51
donkaiser29-Jun-06 6:51 
QuestionRS-422 communication Pin
engsrini28-Jun-06 7:53
engsrini28-Jun-06 7:53 
AnswerRe: RS-422 communication Pin
Ed.Poore28-Jun-06 10:56
Ed.Poore28-Jun-06 10:56 

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.