|
The plug-in itself will have to be in native code. From there, have your plugin load a control from your .NET app and display it in the window.
|
|
|
|
|
Yes, that's what i thought myself so far.
I'm just installing my old dust-bitten copy of MSVC++ 6.0 to do this.
So there is no easier way to achieve what i'm asking for ?
As i wish to have my app running as a plug-in for FF and IE as well,
i suppose i'll end up having THREE projects:
The main app itself, written in C#,
the app compiled as ActiveX user control, so it can be plugged into IE,
the app compiled as dll, wrapped into C++ code, so it can be plugged into FF.
Correct ?
|
|
|
|
|
I'd have 4 projects:
1. Your main code containing the controls you want to display in .exe/IE/FF. This is a dll.
2. A main application that runs your app as a standalone program by loading the above dll into a Windows Form. This is an exe.
3. The Firefox plugin that loads your dll into Firefox.
4. The IE plugin that loads your dll into Internet Explorer.
gordon24 wrote: I'm just installing my old dust-bitten copy of MSVC++ 6.0 to do this.
I don't think that's necessary; the latest Visual C++ 2005 should work fine.
|
|
|
|
|
Of course, you're completely right about having FOUR projects,
also i regonized, but too late, that the OpenGL FF plugin sample
was done using VC++ 2005 ...
Well, let's see, if i'm now finally able to get things working ...
|
|
|
|
|
I don't know how to do that or even if it is possible. If I did need to know I would go to the Mozilla Developer Center for Plug Ins and read the documentation to acquire the knowledge.
|
|
|
|
|
Hi,
How can i get whether a selected node in a treeview with to levels, a child or a parent node is?
|
|
|
|
|
The ChildNodes property tells you if the node has any children. Does this help?
/ravi
|
|
|
|
|
You can also go upward:
<br />
System.Windows.Forms.TreeNode node = theTree.SelectedNode;<br />
System.Windows.Forms.TreeNode nodeParent = node.Parent;<br />
if (nodeParent.Parent == null)<br />
return;<br />
|
|
|
|
|
I am writing a small application to open windows (Internet Explorer in this case) from within the application. I am using the System.Diagnostics.Process to do this. My question is, is there a way to either open the application on a secondary monitor, or move it once it is open. I would assume this is done with a call to some windows api functions. Would anyone care to shine some light on this for me.
|
|
|
|
|
In case anyone is interested, I am working with lazy managers and on bootup they want the machine to open 2 ie windows in full screen on 2 seperate monitors (we use some pages to monitor production).
|
|
|
|
|
This[^] may help get you on the right track.
|
|
|
|
|
Hi,
I have a form with some textbox controls.I am using a bindingsource to bind data to these controls.
For Example, i use
txtbx.DataBindings.Add("text", bindingSourceName, "Ds_Column_name") to bind data to the control.
This works fine and i could see the data.
Now, i have one more form with a datagrid and in the Grid_DoubleClickCell event i am taking the value of a column of the activerow.Here in this Doubleclick event i have declared an object of form1 and passing the activerow value to the constructor in form1.
Following is the one i am talking about:
string wrNumber = Grid1.ActiveRow.Cells["WR_NUMBER"].Value.ToString();
uiJobs uiJobsObject = new uiJobs(wrNumber);
Now, in form1 constructor i have written this:
public uiJobs(string wrNumber)
{
LoadDataSet(....);
BindControls();
}
private void BindControls()
{
bindingSource.DataMember = ".....";
bindingSource.DataSource = ds;
txtbx.DataBindings.Add("text", bindingSourceName, "Ds_Column_name");
}
Now, here the i am getting nothing..I am unable to bind data.....
Could please anyone help me out.
Thanks,
Pavan.
|
|
|
|
|
Hi everyone,
I have a little problem and I feel like the solution is in front of me but I just can't make it happen.
I haven't googled it yet, just because i don't know how to search it, but I'm looking for it in the MSDN Forums (Searched MDI in forums and reading the topics whichever looks close to solution.) and I was unable to find something for the problem.
The problem is I have an MDI form and I show a dialog which offers you some options and when the user clicks the button a new dialog appears.But I couldn't find a way to set the MDIParent property for the form that is called from the child.So the new form appears independent from the MDIParent.
What I've tried is:
I tried overloading the Form.Show(this.MDIParent)
I've created an instance of the MDI form in the Grandchild(?) form. I've tried to set the this.MDIParent = MDIMain but it just didn't work.
I've tried this.AddOwnedForm(Form)
So, surprisingly, none of them worked.
It'd be really nice if you could help me through or hold my hand and take me to the neverland. =)
Thanks.
|
|
|
|
|
hi there, i think this will help
from the first form you have to raise an event (on click of something ex. button) and you write this code :
Form frm = new Form();
frm.MdiParent = this;
frm.Show();
and i will depend on that form, from where it was opened,
respect.
spaps
|
|
|
|
|
Hi Shpends,
Thanks for the quick reply. But it seems to me that your code shows up a child form.What I need is showing a child form that is called from the previous child.
I mean, if we call the first child form X and second child form Y, I try showing Y through X and I can't set the MDIParent property because I call it from an MDIChild form not from the MDIParent itself.
I hope the explanation above is clear enough. =)
Thanks again.
|
|
|
|
|
Try this...
In the MDIParent (Form1)
private void Form1_Load(object sender, EventArgs e)
{
Form2 newForm = new Form2(this);
newForm.MdiParent = this;
newForm.Show();
}
for 1st Child (Form2)...
public Form2(Form mdiParent)
{
InitializeComponent();
_mdiParent = mdiParent;
}
private Form _mdiParent;
private void Form2_Load(object sender, EventArgs e)
{
Form3 newForm = new Form3();
newForm.MdiParent = _mdiParent;
newForm.Show();
}
with Form3 being the 2nd Child.
Obviously you need to dispose of the forms somewhere but should get you going.
|
|
|
|
|
Hi DaveyM69,
Thank you very much for your help. It works just fine.
Thanks again.
|
|
|
|
|
hi,
im working on a customer recording sw. i need to get the customers from the db according to the specifed keywords. firstly i wrote a stored procedure and i executed it and it is working but with datagrid it is not. then i wrote a less specific procedure into the c# code, if i didnt write any parameter it is working, i see the customer info in the datagridview but with a parameter the datagridview is empty. here is the code:
string connStr = "Data Source=ZEYNEP\\SQLEXPRESS;Initial Catalog=Esmira;Integrated Security=True";
SqlConnection conn = new SqlConnection(connStr);
SqlCommand cmd = conn.CreateCommand();
SqlParameter param;
param = new SqlParameter("@ad", SqlDbType.NVarChar);
param.Value = "zeynep";
cmd.Parameters.Add(param);
cmd.CommandText = "SELECT * FROM musteri where ad=@ad";
DataSet dataset = new DataSet();
SqlDataAdapter dataadapter = new SqlDataAdapter(cmd);
dataadapter.Fill(dataset,"FOO");
dataGridView1.DataSource = dataset.Tables["FOO"];
here "cmd.CommandText = "SELECT * FROM musteri where ad=@ad";" if i write "ad=zeynep" it is ok but "ad=@ad" is not working.
does anyone have an idea about it???
|
|
|
|
|
Hi,
I have added a dynamic column to the datagridview.
In every row of this column there is a checkbox.
Not sure why I can not check these checkboxes as I click on them.
In case it makes any difference, I am leaving the autogeneratedcolumn as the default and so I am not setting it.
This briefly shows you what I am doing...
dtPricesSourcesBest.Columns.Add("AcceptPrice", typeof(Boolean));
dgvSecurityPricing.DataSource = null;
dgvSecurityPricing.DataSource = dtPricesSourcesBest;
Any ideas please?
|
|
|
|
|
arkiboys wrote: Any ideas please?
Look at the properties for the column. Make sure you have them all initialized properly.
|
|
|
|
|
Solved it.
The problem was that all the columns were set to readonly.
Thanks
|
|
|
|
|
I have an application that loads the default country from a country table based on the user's login credentials. However I have a combobox(as part of addres fields) that loads all countries from a countries table. I would like the combobox to default to the default country.
eg. if a user login in US I want US as the first item in the combobox.
Please help
Thanks
Tawa
|
|
|
|
|
You could do it like this:
private void YourFormForm_Load(object sender, EventArgs e)
{
int defaultCountryIndex = 7;
countryComobBox.SelectedIndex = defaultCountryIndex ;
}
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Is it possible to get the index from the combobox instead of hard coding the value. I am trying to avoid a situation where I have to provide values for all countries
|
|
|
|
|
TawaPower wrote: Is it possible to get the index from the combobox instead of hard coding the value. I am trying to avoid a situation where I have to provide values for all countries
Yeah, I was just giving a simple example of what you could do. Definately not a good idea to hard-code anything like that. What you could do is:
Once you have the country from the user, you iterate over each county in the combobox, and once you find the match for the user's county you have the index of it(you iterator value in your for loop), and set the selectedindex to that value.
-- modified at 11:22 Tuesday 13th November, 2007
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|