|
openFileDialog1.ShowDialog();
System.Diagnostics.Process.Start(openFileDialog1.FileName);
No need upload anything. You have to have Excel installed, otherwise the system will not know what to do with the file.
var question = (_2b || !(_2b));
|
|
|
|
|
Hi ,
Anybody please help me in this ..it is an urgent for me.
Actually i have a DataGridview in my window which should be with one fixed row and 2 fixed columns.
Fixedrow is done in Datagridview with the headercolumn property. Now i need to add 2 columns as fixed..
I tried with cell.frozen property, then the column is frozen, but still the tab control goes into this cells.and also it is not appearing same as column header.
Is there a way to make this 2 columns as rowheader?
In VB6 Flexgrid we have the option Fixedcols=2 ....is there any equivalent in DataGrideview windows C#?
Anyone please help me, asap...
Thanks in advance.
- Rami
|
|
|
|
|
Use TemplateFields and then set the AutoGenerateColumns= false. Hmmm I think I haven't understood your question clearly...anyways hope this one helps you
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
Hi Spunky Coder,
Thanks for your reply
Can you explain me how to use Templatefields,
Actually i need to make my first 2 columns of my grid as fixed columns (row header)..
Thanks for your help...
-Rami.
|
|
|
|
|
he is not asking about asp
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)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I was saying about TemplateField property in a GridView. Huhhh I accept that these IDE's make me a bit lazy in remembering the syntax...I wonder how can I code without IDE's Intellisense Hey I'm sorry...I haven't realized that this is a C# forum
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
modified on Tuesday, March 17, 2009 6:25 AM
|
|
|
|
|
Hi Spunky coder,
There is no TemplateField Property in DataGridView of Windows C#...
Can you help me on this....
Thanks.,
-Rami.
|
|
|
|
|
I have an form which is called from another form.
How can i close the called form when i click a button in the parent form.
Thankyou,
YPKI
|
|
|
|
|
when you show that child form, keep its intance and call Close() when require.
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)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Here is the code..
public partial class FormParent : Form
{
public FormParent()
{
InitializeComponent();
}
FormChild frmChild;
private void btnLoadForm2_Click(object sender, EventArgs e)
{
frmChild = new FormChild();
frmChild.Show();
}
private void btnCloseFrom2_Click(object sender, EventArgs e)
{
frmChild.Close();
}
}
|
|
|
|
|
Please Reply back to state whether you got what you want. .
This helps in unnecessary replies from other users. .
So if you are done with your query .. Please reply informing something like got you. .
Or completed . .
Please . .
|
|
|
|
|
Hi,
I have created a client socket and when I try to connect to a remote IP address, I receice an exception
"An address incompatible with the requested protocol was used".
Code works fine on XP but it throws this exception when run on Vista.
I believe that Vista uses IPV6 by default for IPAddress and not IPV4.
This could be the reason.
But I am not able to find out the solution as how to handle it.
Please suggest.
- Nihar
|
|
|
|
|
niharshukla wrote: I believe that Vista uses IPV6 by default for IPAddress and not IPV4.
I do not think so...however vista is more secure than XP. I would like to suggest that off your firewall and then check.
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)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi All
I have two files
1.Application File
2.Import File
I have some data to be imported to Application File from import file.
When the file to be imported is in the executing directory and i run the application the code is working fine and actually importing the data to the application file.
Now the challenge is when the Import File is not in the executing directory.My application do not give any error and also runs fine(i used breakpoints and checked the intermediate values of variables(all were correct)).From intermediate variables i conclude that my application is reading data from the file to be imported correctly.But it is not writing into it.And after closing the application The application file is supposed to have Imported data from the import file.But it donot have any imported data and shows the data of previous state.
After that I decided to go for an alternative
I decided to copy the import file from another location(say desktop)
to executing directory.
First I used
1.Fileinfo f = new FileInfo("Fully qualified path of import file");
f.CopyTo(@"tempdata.olf");
2. i used FileStream code to copy files using Binary reader and binary writer
The code works fine and do not throw any runtime errors or exception
But the import file is not copied to the tempdata.olf.
Note:
1.I have used FullName(fully Qualified Path) of both files
2.The application is working as desired only when both the files are in executing directory.
3.I am running the application in admin account
Does anyone has idea what may be wrong.
Thanks
Regards
THE SK
|
|
|
|
|
Are you using Vista ? Vista creates 'magic folders', if you don't have good security settings, I believe.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am using Windows Xp SP2
Regards
THE SK
|
|
|
|
|
Christian Graus wrote: Vista creates 'magic folders',
Dude, there is no Magic in computer...
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)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Are you referring to soft links?
|
|
|
|
|
hi
I want to convert docx format to doc format using c#.
I have googled about this but not get any good article.
any help will be appreciated.
thanks in advance.
|
|
|
|
|
I have not used Office 2007. But I guess there are options available to save file as docx or doc. All you need is to do the same using code. Use the office interop and it will be done.
जय हिंद
|
|
|
|
|
You obviously need to use Word to do this, then it will be trivial.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
use this
http://www.openoffice.org/[^]
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)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
osemia wrote: If you help me, i will send you somemoney $100
I assume this is a joke. A question that makes no sense, so no-one can answer it, with a cash reward ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|