|
homer simpsom wrote: suffix.Length
As you're starting at 1, and it's 0 indexed, the Length property goes one character past the end.
Christian Graus - C++ MVP
|
|
|
|
|
Hi Friends
I m using sqlhelper class file which is stored in DataAccessLayer,it is used for connecting the data from database.
But when i m using this sqlhelper in another class getting an error.
In visual studio 2003,the code is
SqlHelper.ExecuteDataset(ConfigurationSettings.AppSettings[Projectname.Global.CfgKeyConnString]
, "SPName", parameters);
but same code in 2005, getting an error.
so could any one give an idea to solve this problem.
Thanking U,
Naren.
|
|
|
|
|
Is it possible to serialize an Image?
I have a class that containes an Image loaded from a jpeg, when I tried to serialize it I couldn't.
any help would be appreciated
|
|
|
|
|
Hi
I would like to see the query log from sqlserver 2000, but i cannot. How can i do that?
|
|
|
|
|
hi
i want to set myDatagridView.Rows[i].Visible = false; but the Following error has shown me :
Row associated with the currency manager's position cannot be made invisible
How to solve problem and hide each Row that i select at runtime without this error ?
My Code is :
int i = 0;
while (i < this.dataGridView1.Rows.Count)
{
DataGridViewRow GridViewrow = this.dataGridView1.Rows[i];
if (GridViewrow.Cells[0].ToString() == "True")
{
}
else
GridViewrow.Visible = false; //error in this line
i++;
}
|
|
|
|
|
Well I'm not totally sure, but I can tell you're having a BindingSource problem.
In my expirience, I wouldn't be able to edit almost nothing usingn BingdingSource or TableAdapters, because we can not mess with the internal managment of the .NetFramework.
Solution: Fill the DataGridView manually using sql querry, it should solve the problem.. (I mean manually exactly how it sounds.. row by row and Cell by Cell)
good luck.
(sorry my english)
___________________________
vykom's best.
Free your mind! use GPL.
up to open source!!!
|
|
|
|
|
i cannot found any solution to "drawImage" my .wmf with smoothed lines.
Is there a way to do tha?
|
|
|
|
|
After taking a break from Microsoft IDE's and working in Java land, I'm missing the Control-LeftClick to click through a definition to navigate to the definition.
In Visual C# 2005 this just feels too clunky requiring a right-click and selection of a menu item.
I don't suppose anyone knows an option/plug-in that performs this?
Regards,
Ray
|
|
|
|
|
In my VS 2003 it's currently mapped to F12. But you can define an alternative key combination in Tools->Options->Keyboard and then slect Edit.GoToDefinition and type in a desired key combination. In VS 2005 it will be similar.
Kevin
|
|
|
|
|
That is also mapped to F12. You could change the mapping if you prefer.
|
|
|
|
|
I wrote a small win application. Is there a way to do a printprivew for whatever is displayed on a window form. I want to add print preview functionality for anything that appear on a form. Can you show me me some codes plz.
|
|
|
|
|
|
thank u so much am checking it
|
|
|
|
|
hi
i add an Unbound DataGridViewCheckBoxColumn to my datagridView for user to select each record that he wants to print (print with DataGridViewPrinter Class), I want to invisible other records that checkbox is False or null,
but at RunTime when i set a checkbox to true and uncheck it again (set to false)
when i want to invisible that record .. the following error shown me :
Row associated with the currency manager's position cannot be made invisible
my code is :
foreach (DataGridViewRow _gridViewRow in dataGridView1.Rows)
{
if (_gridViewRow.Cells[0].Value != null)
{
if (_gridViewRow.Cells[0].Value.ToString() == "True")
{
_gridViewRow.Visible = true;
}
else if (_gridViewRow.Cells[0].Value.ToString() == "False")
{
_gridViewRow.Cells[0].Value = null;
ds_zamin1.Khaneh_1.Rows.RemoveAt(_gridViewRow.Index);
}
}
else
{
_gridViewRow.DataGridView.EndEdit();
_gridViewRow.Visible = false; //Error Occured In this Line
}
}
|
|
|
|
|
You cannot make selected row/cell inviible.
Use...
dataGridView1.CurrentCell = null;
|
|
|
|
|
Try this.
CurrencyManager cm = CurrencyManager)BindingContext[this.DataGridView1.DataSource];
cm.SuspendBinding();
this.DataGridView1.Rows[index].Visible = false;
cm.ResumeBinding();
|
|
|
|
|
thx
|
|
|
|
|
In my c# desktop application i want to change key in my app.config file at runtime.
How can i change this value in runtime?
Actually my need is that i want to store a value somewhere during runtime which i can access next time the i run the program. So this need to be physically written.
Regrads
Hari
-- modified at 11:39 Thursday 23rd November, 2006
|
|
|
|
|
Settings are stored in the config file as properties -Xml elements-. You can access them using the following line
global::ProjectName.Properties.Settings.Default
The class Settings is inherited from global::System.Configuration.ApplicationSettingsBase . Check it in your MSDN or more simply explore it using intellisense.
Regards
|
|
|
|
|
Thanks for the reply. Actually i want to write to the app.config file
|
|
|
|
|
And?? Use the save method in your settings class.
global::ProjectName.Properties.Settings.Default.Properties.Add(new SettingsProperty("MyProperty"));
global::ProjectName.Properties.Settings.Default.Save();
Regards
|
|
|
|
|
Hi Guys,
Im having trouble populating a datagridview that contains DataGridViewComboBoxColumns.
I want to populate the datagrid with de contents of a TList but for some reason it is not working.
The comboboxes are filled with values that match with does that might be in the Tlist and i use the following line to bind the list to the datagrid.
dgTaskPredecessor.DataSource = task.Predecessors;//task.Predecessors is of TList<TTaskPredecessor> type
Can anyone help me?
Tanks
|
|
|
|
|
Hello!
I have a question about the kind of propertygrid that is used in for example http://www.codeproject.com/cs/miscctrl/bending_property.asp[^]
For one of the properties I would want the user to only be able to chose out of the values 512, 1024, 2048, 4096 so that when he clicks this property a list with these values comes up.
I have been able to do this with strings using enums but not with numbers.
Does anyone have an idea how to solve this easily?
Best regards,
Hampus
|
|
|
|
|
Hi guys,
I'm having following situation:
private function DoSomething(){<br />
int x = 6257;<br />
<br />
CheckSomething();<br />
Myclass.UseX(ref x, somethernr1);<br />
Myclass.UseX(ref x, somethernr2);<br />
Myclass.UseX(ref x, somethernr3);<br />
Myclass.UseX(ref x, somethernr4);<br />
...<br />
Myclass.UseX(ref 6257, somethernrN);<br />
}<br />
<br />
Checksomething(){<br />
int x = 7834;<br />
Myclass.UseX(ref x, somethernr1);<br />
...<br />
Myclass.UseX(ref x, somethernrM);<br />
}
Is it possible that after CheckSomething() the x value in DoSomething() has changed?
(PS: There is something that sometimes locks up the application, we can't reproduce it and we're trying to figure out where it is (via logfiles, can't debug).)
Thanks.
|
|
|
|
|