I have developed a datagrid control dynamically with pre defined number of columns and rows and docked it to a new form form2. But the form2 comes in usual form size i.e small and all the cells of the datagrid are not visible as it has scrollbars. I want to see all the cells within the form so I need to increase the size of the form2. Please help me...
Eew, you do know we are already at .NET 3.0 and 3.5 is comming in a few months.
Oh well you should so something like:
StringBuilder sb = new StringBuilder(); // From System.Text namespaceusing (StreamReader re = File.OpenText("abc.txt")) // Using makes sure the reader gets disposed correctly
string input = null;
while ((input = re.ReadLine()) != null)
sb.AppendLine(input); // StringBuilder has easy method to add new line and is alot faster than string concat
string result = sb.ToString();
Oh StreamReader has a ReadToEnd() which does what I did here :P
string result = null;
using (StreamReader re = File.OpenText("abc.txt")) // Using makes sure the reader gets disposed correctly
result = re.ReadToEnd();
When I press F10 and then up or down arrow key there appear a box with options Restore, Move, Size, Minimize, Maximize and Close. I think that comes from system, because many windows has similar box (like properties on desktop).
my requirement is that when I click on a cell of a datagridview the cell number with respect to the row number and column number should be stored in a label control separated by commas or in a combobox collection items. Somebody please help me how to acheive this.
Hi! Here's the problem:
I have an exe (no source code) wish for it to run only when it finds a valid license on the pc. Therefore I wish to modify it somehow (wrap,modify, etc) so that it will check for certain criterii such as hardware id before launching itself.
What I've found out so far:
I know I can create another exe that embeds the exe using Visual Studio. However, running the exe from memory only applies to .Net exe. I wish to cover non .Net too. And I know that running non .Net exe from memory is very hard.
How do i do this? Is there a way to modify the exe so that I can insert checking codes before the exe launches normally?
"Long is the way, and hard, that out of hell leads up to light."
I need to use the FormPrinting, the example that I have use the HorizontalAlignment, but in my particular case I need that the Alignment is VERTICAL. I tried to fix it, clearing the code of lines where appear this type of Alignment, but I can not see results. Thanks for the help!
i have created controls in asp.net form
now i want use them in a for loop how do i do it..
which is created statically
there are three linkbutton1,linkbutton2,linkbutton3
now i want to refer three of them in a for loop
linkbutton+i.text=":Hi how r u";
threee linkbuttons text should become the same statement which is give above
how can i do it