|
hello all,
I have one activex player.I am downloading its dll using <object>tag in axpx.
But do i find programatically Whether the dll is downloaded or not?
please help me
puja
-- modified at 6:19 Monday 1st May, 2006
|
|
|
|
|
I have written an application has a main window, I want my window doesn't lose the keyboard focus,even
if I running another program (i.e: lose focus for short time only).
|
|
|
|
|
You could use a Timer [^] to make your main window the active window, although I dare say this might annoy your users. I recommend considering an alternative GUI before deciding to do this.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Hello
I'm working on C# project in RTL mode from 6 months ago.
I designed project for 1024*768 mode and now if user change the resolution, controls seems terrible. I know that i can use Dock properties! but it's late.
Now i want to control Monitor Resolution when project works.
Please help me to identify and change resolution.
|
|
|
|
|
I woul duninstall a application that would change my monitor resolution (except for games offcourse).
Just don't do that.
Revise your GUI!
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
CWIZO wrote: I woul duninstall a application that would change my monitor resolution (except for games offcourse).
And even then the game has to be able to detect an alt-tab and restore the system defaults. The 1.0 release of civ3 didn't do that. Drove me crazy.
|
|
|
|
|
|
Hi,
I am designing a data bound user control and i want to to know what other data interfaces that i will need to support in my control regarding the data-binding, apart from the ones i have listed below:
I currently have my design to support data sources implementing these interfaces:
IList
IListSource
IBindingList
Are there any others i need to support too?
-- modified at 5:11 Monday 1st May, 2006
|
|
|
|
|
Hi all
i have a simple c# web application. when i press the go button, i call a function that handles the main functionality of the page. i would like this function to be called also when the user presses enter on the edit box. i have found quite a lot of code on how to call Client Side functions by adding an attribute to different components, but i haven't found anything on how to call a server side function like mine.
any ideas anyone?
Thanks
il-gg
|
|
|
|
|
You will need AJAX. Take a look at ATLAS (atlas.asp.net)
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I have a problem.
On my form (mainform) is use a panal wich should load another form (form1)
now i placed the panal en he should load the form1 when the mainform loads.
but i get this error:
Top-level control cannot be added to a control.
i don't know what to do whit this error.
public partial class main : Form<br />
{<br />
Form1 from1;<br />
public main()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
internal Form1 From1<br />
{<br />
get<br />
{<br />
if (this.from1 == null)<br />
<br />
{<br />
this.from1 = new Form1();<br />
<br />
this.panel1.Controls.Add(this.from1); <br />
this.from1.Dock = DockStyle.Fill;<br />
}<br />
<br />
return this.from1;<br />
}<br />
}<br />
<br />
private void main_Load(System.Object sender, System.EventArgs e)<br />
{<br />
this.FFrom1();<br />
}<br />
<br />
<br />
internal void FFrom1()<br />
{<br />
this.From1.Visible = true;<br />
}<br />
this is my code
i use visual C# 2005
and offcourse writing in C#
can anyone help me?
|
|
|
|
|
Set the TopLevel property of your Form to false prior to adding it.
|
|
|
|
|
thanks for your fast reply
where acactly should i'de be doing that.
on the Mainform (the form with the panal) or Form1 (the form that's load)
toplevel = false; or something like that was the code but where should i put this.
before the panal loads
or somewhere else?
|
|
|
|
|
In the getter of Form1 right before adding it to the Panel:
internal Form1 From1
{
get
{
if (this.from1 == null)
{
this.from1 = new Form1();
this.from1.TopLevel = false;
this.panel1.Controls.Add(this.from1);
this.from1.Dock = DockStyle.Fill;
}
return this.from1;
}
}
|
|
|
|
|
oh great that works
but can you give one last advise?
now if i select a row or something he opens a new form
but this he opens outside the panal?
how can i do this?
|
|
|
|
|
Hi,
sorry but I don't understand your question. What rows are you referring to?
If you wish to show a Form normally just leave TopLevel to true and call either Show or ShowDialog on it.
|
|
|
|
|
inside the Form1 there is for example a data grid..
with a selectrow command he opens another form with the details of the selected row.
this form should be opend inside the panal also
|
|
|
|
|
First of all you should consider creating user controls instead of forms all the time.
Then its the same procedure with any form you have. Set TopLevel to false and then you can insert it into any panel you like. If you want to exchange the contents of a panel then call panel.Controls.Clear() prior to adding the other form. If you want to have several items in one panel you can either set them location and size programmatically or (better) just create two panels (one holding formA and one holding formB).
|
|
|
|
|
hey can anybody tell me how to pass control values of one window form to other in windows application in c#?????????????????????/
Thanking You.
Sincerely,
VIRAL PATEL
|
|
|
|
|
Hello...
You can use public variable to which you can pass value...Like
suppose if you have two forms Form1 n Form2. Now you want to pass value from Form1 to Form2.....First make a public variable in Form2 then in Form1 use the following code.
Form2 obj = new Form2();
obj.yourpublicvariable = "some value"; // assign value to public var of form2
// ur code
................................................
The other way could be that you can pass the value to Form2 via Constructor.like
Form2 obj = new Form2("Some Value");
//For this you must write your own constructor in Form2 accepting the value u r passing.
Hope this helps
regards
mubashir
|
|
|
|
|
_mubashir wrote: You can use public variable to which you can pass value
Ugghh! That is a bad idea and here's why[^]
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Thanx pal for correcting me...
regards
mubashir
|
|
|
|
|
You can read this article on passing values between forms[^]
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Anybody know how to play a video file in the user Default player using C#?
Looking forward to a favourable reply.
Rgds,
Sam J
|
|
|
|
|
Hi,
System.Diagnostics.Process.Start("C:\\Movies\\MyMovie.mpg");
|
|
|
|