Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: Signature table Pin
leckey7-Jun-06 10:25
leckey7-Jun-06 10:25 
AnswerRe: Signature table Pin
Josh Smith7-Jun-06 3:48
Josh Smith7-Jun-06 3:48 
QuestionDataGridView Pin
andrei_dalcu7-Jun-06 1:56
andrei_dalcu7-Jun-06 1:56 
AnswerRe: DataGridView Pin
Nafiseh Salmani7-Jun-06 2:23
Nafiseh Salmani7-Jun-06 2:23 
GeneralRe: DataGridView Pin
andrei_dalcu7-Jun-06 2:33
andrei_dalcu7-Jun-06 2:33 
AnswerDelete and Edit options Pin
andrei_dalcu7-Jun-06 3:58
andrei_dalcu7-Jun-06 3:58 
GeneralRe: Delete and Edit options Pin
Wjousts7-Jun-06 4:37
Wjousts7-Jun-06 4:37 
QuestionHow can i hide or show a panel in usercontrol from a form? Pin
Nafiseh Salmani7-Jun-06 1:56
Nafiseh Salmani7-Jun-06 1:56 
my application has a usercontrol that contains 3 panels.
there are a flash object on my main form , contains 3 button, i want hide and show that panel on usercontrol according to commands that falsh object send!!!

i call a method from usercontrol in my form that changes visibility of panels
but doesn't work. Confused | :confused:

Please Help me D'Oh! | :doh:
on form :

<br />
private void AXSWMenu_FSCommand(object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent e)<br />
{<br />
CtlSimpleHtml find_suitableAction =new CtlSimpleHtml();<br />
find_suitableAction.load_html(e.args.ToString());<br />
<br />
}



on usercontrol:

<br />
public void load_html(string command_type)<br />
{<br />
if (command_type.Trim()=="Bio")<br />
{<br />
fill_author_name_forBio();<br />
pnl_viewer.Hide(); //a panel on user control<br />
pnl_Story.Hide(); //a panel on user control<br />
pnl_AuthorName.Show(); //a panel on user control<br />
pnl_AuthorName.Location=new Point(8,8); <br />
pnl_viewer.Location=new Point(8,672);<br />
pnl_AuthorName.Update();<br />
pnl_Story.Update();<br />
pnl_viewer.Update();	<br />
}<br />
}<br />


<br />
public void fill_author_name_forBio()<br />
 {<br />
Authors name =new Authors();<br />
DataTable Authors_name=name.find_AuthorsName_all(connection.make());<br />
//li_AuthorName is a listBox on the usercontrol<br />
li_AuthorName.DataSource=Authors_name;<br />
li_AuthorName.DisplayMember="Name";<br />
li_AuthorName.ValueMember="id";<br />
li_AuthorName.SelectedIndex=-1;<br />
 }<br />


In Classes:

Authors:
<br />
public class Authors<br />
 {<br />
   OleDbConnection con;<br />
   OleDbCommand cmd;<br />
public DataTable find_AuthorsName_all(string cnstring)<br />
{<br />
con=new OleDbConnection(cnstring);<br />
 try<br />
  {<br />
   con.Open();<br />
   string cmdstr="select name,id from Authors ";<br />
   cmd=new OleDbCommand(cmdstr,con);<br />
   cmd.CommandType=CommandType.Text;<br />
   OleDbDataAdapter adp=new OleDbDataAdapter(cmd);<br />
   DataTable dt =new DataTable("Authors");<br />
   adp.Fill(dt);<br />
   con.Close();<br />
   return dt;<br />
   }<br />
   catch(Exception ex)<br />
   {<br />
     MessageBox.Show(ex.Message);<br />
     con.Close();<br />
     return null;<br />
    }<br />
   }<br />
}<br />

AnswerRe: How can i hide or show a panel in usercontrol from a form? Pin
Mahmood Ilyas7-Jun-06 2:29
Mahmood Ilyas7-Jun-06 2:29 
AnswerRe: How can i hide or show a panel in usercontrol from a form? Pin
engsrini7-Jun-06 3:00
engsrini7-Jun-06 3:00 
Questionheader of file Pin
Mahmood Ilyas7-Jun-06 1:41
Mahmood Ilyas7-Jun-06 1:41 
AnswerRe: header of file Pin
stancrm7-Jun-06 1:43
stancrm7-Jun-06 1:43 
AnswerRe: header of file Pin
J4amieC7-Jun-06 2:24
J4amieC7-Jun-06 2:24 
QuestionHow to study C# well? Pin
yodern7-Jun-06 1:32
yodern7-Jun-06 1:32 
AnswerRe: How to study C# well? Pin
albCode7-Jun-06 2:01
albCode7-Jun-06 2:01 
GeneralRe: How to study C# well? Pin
yodern7-Jun-06 2:55
yodern7-Jun-06 2:55 
AnswerRe: How to study C# well? Pin
Mahmood Ilyas7-Jun-06 2:10
Mahmood Ilyas7-Jun-06 2:10 
GeneralRe: How to study C# well? Pin
yodern7-Jun-06 2:40
yodern7-Jun-06 2:40 
AnswerRe: How to study C# well? Pin
Tristan Rhodes7-Jun-06 4:21
Tristan Rhodes7-Jun-06 4:21 
QuestionAdding &lt;table> element using MSHTML? Pin
Dr.Grimy7-Jun-06 1:30
Dr.Grimy7-Jun-06 1:30 
AnswerRe: Adding &lt;table> element using MSHTML? Pin
Dr.Grimy8-Jun-06 0:09
Dr.Grimy8-Jun-06 0:09 
Questionmodelling many-to-many relationships with datasets Pin
Jimbo227-Jun-06 0:57
Jimbo227-Jun-06 0:57 
Questionspyware signatures [modified] Pin
Gulfaraz7-Jun-06 0:43
Gulfaraz7-Jun-06 0:43 
AnswerRe: spyware signatures [modified] Pin
Pradd7-Jun-06 8:30
Pradd7-Jun-06 8:30 
Questionfile header Pin
Mahmood Ilyas7-Jun-06 0:38
Mahmood Ilyas7-Jun-06 0:38 

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.