No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
Could someone tell me why I get the error "Operation failed:Index and lengt must refer to a location within the string Parameter:Length". It happened at this line: TheDataGridView.Rows[j].Cells[i].Value = tmpStr.Substring(0, 709); tmpSize = g.MeasureString("Anything", tmpFont); RowsHeight.Add(tmpSize.Height); tmpSize = g.MeasureString(TheDataGridView.Rows[j].Cells[i].EditedFormattedValue.ToString(), tmpFont); if (tmpSize.Width > 710) { string tmpStr = TheDataGridView.Rows[j].Cells[i].ToString(); TheDataGridView.Rows[j].Cells[i].Value … | |
I've a datagridview shown, I would like to change the font of that row to bold when a user hover over any cell on that row. I know I can use the rowenter and rowleave but some how it changed the font bold to the whole grid not just the … | |
Has anyone seen this error? I wrote a short program to loop thru each of the specified directory and check each of the files and for some reason I got this error. Does anyone know how to handle this? I want the program skip this file name and continue with … | |
I've the following code to search and high light a string in a rich text box but it seems like it works on some and not on some. Suppose my Rich Text Box Text string is "CUST.DATA.OBJ-1681 sometext and sometext and sometext" and if I search on "CUST.DATA.OBJ" then it … | |
Could someone tell me how to go about this? I've a dataGrid and when a user right-click on one of the row's header I want a context menu pop-up with the menu choices "View Detail", "Cancel". Thanks in advance... | |
Could someone tell me why I can't use the following code? It kept saying 'string' does not contain a definition for 'Match' and no extension method 'Match'. string SearchText = "7,true,NA,false:67,false,NA,false:5,false,NA,false:5,false,NA,false"; string Regex = @"\btrue\b"; int NumberOfTrues = Regex.Match(SearchText, Regex).Count; | |
I've a form, when it's show I don't want the user to be able to resize it by dragging the bottom righ-hand side corner of the form. Could someone tells me how to disable this? Thanks in advance. | |
I'm making a Login form with two text boxes(username, password) and a button called "Login". I would like to simulate the Login click when the user finishing enter the password and press the "Enter" key. Could someone tell me how to go about doing this? Thanks in advance. | |
Could someone tell me why when I start a project, it added a new Form1, I can rename this to something else but I can't seem to rename the Form1.Designer.cs? How do I change the default form name? Thanks in advance. | |
I'm a newbie so please be patient with me. I've two forms, one is the main form and the other is the login form. On start up, I would like to have the login form show up so the user can enter their credentials and upon successfully login I want … | |
Could someone tell me how to print the code for the whole project? If possible with line # too. Thanks in advance. | |
I added a Button on my form, I want to arrange it's location precisely to the pixel on the form. Does anyone know how I can do that? Thanks in advance. | |
Does anyone know of a third party simple grid for C#? Preferbably free ones. Not the Datagrid within C#. I'm try to learn C#. Thanks... |
The End.