|
|
int rowNumber = 3;<br />
int cellNumber = 2;<br />
<br />
bool b = (bool)dataGridView1.Rows[rowNumber].Cells[cellNumber].Value;
But one tricky thing is here: if a value you are getting was not set (nobody checks or unchecks this checkbox) the value of it is null. We need handle this case.
int rowNumber = 3;<br />
int cellNumber = 2;<br />
<br />
bool b = false;<br />
if (dataGridView1.Rows[rowNumber].Cells[cellNumber].Value != null)<br />
{<br />
b = (bool)dataGridView1.Rows[rowNumber].Cells[cellNumber].Value;<br />
}<br />
|
|
|
|
|
Is it possible to see whether or not a program(exe) is installed on a
machine from web? for example, i'd like to check if winzip is installed and if
it is installed, the location of the executable.I want to check from web.Is it is possible...Plz any one help me.
Thanks.
Regards,
justin
|
|
|
|
|
You want to see if the user has a file on the local machine from an ASP web page? Can't do it, you don't have file access rights to the local machine from a web page.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Thanks for ur reply.
Is there any alternate way like javascript.Plz help me.
|
|
|
|
|
ActiveX has file rights I think. Not sure, why do you need to do this from a web application.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
I wouldn't thank me yet, make sure it does what you need it to. I still don't understand why you are doing that check.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
I want to check wheteher the exe is installed in a client system for invoking exe from the web
|
|
|
|
|
Hello Dear fellows
kindly do the needful
i want to get hardware information of client computers connected on Local area network.i want to get these information in C#.
plz help me how can i do it?
replay me
imee56@yahoo.com
haroon
-- modified at 2:49 Friday 17th August, 2007
|
|
|
|
|
Can you please tell me how to write the contents to the pdf file because it will be helpfull to me as i am creating asame type of applicaiton
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
iTextSharp is a library that allows you to generate PDF files on the fly.
SharpPDF is a C# library that implements different objects for the creation of PDF documents.
Are all were the inbuilt library in C#
Regards,
Satips.
|
|
|
|
|
Dont mistake me
you have mentioned SharpPDF know is it an extra refernce or else is in any namespace because i am new to this topic
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
They all are external references.
.NET itself doesn't have any support for PDF.
|
|
|
|
|
Thank you all i got the logic and it helped me to create the file.
if i have any further clarifications i will ask you.
Once again Thank you so much
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
ItexrSharp and SharpPDf are all external references only. As for us there is not inbuilt references for PDF in .Net
Regards,
Satips.
|
|
|
|
|
Thank you so much Mr. Satips.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hi All,
I am been stuck with Drag-Drop operation in C#.I wanna to click on picture1,move it with cursor and dropped on picture2 when user make mouse_up event.
But Drag_Enter event for picture2 does not fired at all.As i wanna to know in picture2_DragEnter that wich is the picture box wich entered my area.
I am using DoDragDrop() in picture1_Mousemove with DragEffect.Move. I have seek many topics but not got any any idea!!. I m bit confus with DoDragDrop().Pls tell something about DragEffect Enum. Picture ctrl does not have AlloDrop prty. I am been stuck with my project. from last 3 days. pls pls help me!!!
Below is my code snippet.it will give u some info.
private void picturebox1_MouseMove(object sender, MouseEventArgs e)
{
DagDropEffects ddEffect = picturebox1.DoDragDrop(picturebox1, DragDropEffects.Move);
if (ddEffect == DragDropEffects.Move)
//then move the mouse else dont move it
}
//Code in target picture box Drag_Enter event
private void picturebox2_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.Bitmap))
//then it is valid control, so take its name
else
//not valid so dont allow to drop on target picture box
}
Help wud be appreciated !!!
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
hi chintan
this is a good example for you
http://www.codeproject.com/cs/combobox/LarryDragAndDrop.asp
regards
|
|
|
|
|
thanx it will help me a lot.this for u
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
Hi, I am using Interop to gain access and make editions to an excel file and I am able to make it to individual cells. However I cannot seem to figure out how to make changes to an object like a textbox and checkbox programmatically using C# in the Excel file.
|
|
|
|
|
I assume here that you can get the Excel, Workbook and Worksheet objects...
String sFileName = <full path to file>;
Microsoft.Office.Interop.Excel.Application oApp =
new Microsoft.Office.Interop.Excel.Application();
Workbook wkb = oApp.Workbooks.Open(sFileName, .....);
Worksheet sheet1 = wkb.Worksheets["Sheet 1"] as Worksheet;
Microsoft.Office.Interop.Excel.CheckBox cb = sheet1.CheckBoxes("Check Box 101");
...the rest should be obvious. For example, cb.Value = true;
That's the code. The non-obvious part to me was the name - in this case "Check Box 101". In the upper left corner of Excel, as you click from cell to cell, it shows the name of the cell. For example, A1, A2, etc... If you RMB on the CheckBox it will show the name of the CheckBox in this very same location. You can change the name to whatever you want. That's the name you use in code to access the CheckBox from the list. Excel will auto-name them so there is some predictability. But I've received spreadsheets where the names are all over the map.
Good luck!
|
|
|
|
|
c#:
THE dataset or (datatable) have much items.
when I click the button(button.text=next) ,how can I get the next item from the dataset or(datatalbe)?
please help me!
By the way :follow method could not get the right answer,allways get the inital value:
private void method1(object sender, EventArgs e)
{
i=(i+1);
}
|
|
|
|
|
lockepeak wrote: i=(i+1);
Wow.
You named a member variable 'i', and you incremented it. How would this get any item ?
Where is the data set ? Are you showing it's contents on screen ? where do you hope to get this data from, and to ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|