|
Hi Guys,
I solved the problem of the MDI child not maximising, many thanx to all the replies.
What happens now is when an item is selected in a listbox on a dialog form [the dialog is called using ShowDialog() ], it should open another form in an MDI as a child. unfortunately this new child is under the other children.
Question: How do i make it the topmost child to be displayed.
thanx 4 ur anticipated response.
He who goes for revenge must first dig two graves.
|
|
|
|
|
Call the Activate method on the new form.
|
|
|
|
|
i have datagrid contains 4 columns , one of them takes decimal datatype i want to increment this value each time to get the sum
string name;
decimal price, due;
int count;
name = txtSelectedItem.Text;
price =decimal.Parse( lblPrice.Text);
count =int.Parse( txtUnitOrder.Text);
due = decimal.Parse(lblDue.Text);
DGSelectedItems.Rows.Add( name,price,count,due);
decimal sum = due++;
txtSum.Text = sum.ToString();
the value didn`t incremented but replaced
regards in advance
|
|
|
|
|
Mr.Kode wrote: decimal sum = due++;
due is incremented after is is assigned to sum... you want...
decimal sum = ++due;
That should fix it.
Matthew Butler
|
|
|
|
|
Hi All,
I have made one window service in which i have included some COM components like Microsoft.Internet Control.
In a seperate Window application my code is working properly but when i integrate that code in my window service in gives me COMException like
System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error: 8007000e.
Is there any solution for this kind of error????
Thanks in advance
Himal Rupera.
|
|
|
|
|
So have you told the service that it may interact with the desktop?
|
|
|
|
|
yes i have told to service that it can interact with desktop
|
|
|
|
|
Sorry cant help more. Maybe the ApartmentState? Google reveals over 2000 matches with that error code.
|
|
|
|
|
i have a question about the application i have made that is on some pcs the numeric values decimal separator treated as thousand separator, eg if value is 9121.4532 then on some pcs it will be 9121,4532
my question is its my app fault or that pc fault ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Xmen wrote: is its my app fault or that pc fault ?
There's no spoon fault. It all depends on the standards and formats set up in a computer. Assuming Windows XP, in Control Panel, have a look at Regional Options -> Standards and Formats -> Customize -> "Digit grouping Symbol" and "Decimal Symbol".
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
thanks mate, shukria dost xD
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
Explain Multidimensional array in c#.net
|
|
|
|
|
|
|
it means:
"a" is a two dimensional array
regards,
suman
--
"Programming is an art that fights back!"
|
|
|
|
|
Be more precise with your post. What do you want to know about multi dimensional arrays?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Actually i want how multidimensional array values are saved in memory? how to retrieve the values. and if suppose i want assign some value into that how it is possible.
for example see the below code and explain me how to assign
PointF[][] p =new PointF[5][];
private long nP;
List<pointf> tP = new List<pointf>();
if(condition)
{
nP = nP + 1;
}
p[nP] = tP;
in here i had error msg for System.NullrefrenceException in this line
p[nP] = tP.
what shall i do?
|
|
|
|
|
Sure your code works? Has too many problems...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i have employee screen its having some area hierarchy once u click on go button it displays result in datagrid.What i want is the results displyed in the datagrid to be exported to excel..how can i do this
|
|
|
|
|
|
I am binding a datatableof a dataset to a gridview.
But I want to exclude some columns from
binding. How?
string strSQL = string.Format("SELECT A,B,C,..);
MySqlDataAdapter da = new MySqlDataAdapter(strSQL,myCommand);
DataSet ds = new DataSet();
da.Fill(ds,"MyTable");
myGridView.DataSource = ds.Tables["MyTable"];
Above line, how to exclude some columns from binding to grid?
Thanks
|
|
|
|
|
You need to create and bind individual columns. Alternativley, in the design view you can specifiy columns and their corresponding datasource.
An easier way would be to only select the columns you need.
A final alternative, for those columns you do not want to see, set the width to zero.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i have employee screen its having some area hierarchy once u click on go button it displays result in datagrid.What i want is the results displyed in the datagrid to be exported to excel..how can i do this
sadfadf
|
|
|
|
|
Try not to post same thing several minutes apart and don't use words like "urgent" because most members on this site frown upon that
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|