Brandon Zundel's Q&A profile
Windows Forms datagridview currentrowindex and select & Unselect
hi in old days i used datagrid and currentrowindex to navigate recordes in datagrid , but now i want to convert from datagrid to datagridview but i found some properties are not the same her is my function i used: private int iRowIndex; private void fnSelectUnSelectCurrentRowIndex( int num1, int num2) { this .iRowIndex = this .dataGrid1 .CurrentRowIndex ; this .iRowIndex = this .iRowIndex + num1; this .dataGrid1. Select ( this .iRowIndex); this .iRowIndex = this .iRowIndex + num2; this .dataGrid1. UnSelect ( this .iRowIndex); } i still missing these static methods is there something equal your problem has been met by other guys,here is a thread which will help you h ...Show All
Visual C# Favorites/Registry Help Needed!
I am making a web browser in C#. I need help doing the favorites. I got as far as populating the favorites menu with a list of values from the "LocalMachine\Software\WebBrowser" key.Now how can I make the browser navigate to the clicked menu Heres what I got for the App to load the list of values: RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\WebBrowser", true); private static void Form1_Load(object sender, EventArgs e){ RegistryKey RK = Registry.LocalMachine.OpenSubKey("Software\\WebBrowser"); if(RK != null){ string[] valNames = key.GetValueNames(); foreach (string x in valNames){ favoritesToolStripMenuItem.DropDownItems.Add(key.GetValue(x).ToStr ...Show All
SQL Server How do I move my database?
I am using VWD 2005 Express, with SQL 2005 Express. My web hosting company supports ASP 2.0 and SQL Server 2005, but have put SQL on a database server, which is separate from the application server. I successfully published a "Hello world" test application, but my database application failed after displaying the logon page, presumably when it first tried to connect to the database. VWD has created my database within the application folder ( app \App_Data\ASPNETDB.MDF) and created the configuration string in web.config: - < add name = " ConnectionString " connectionString = " Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True " pr ...Show All
Visual FoxPro report tool bar
After a report is generated and appears in a preview you get a small toolbar that floats undecked in full view of the info that you try to read. It was an annoyance until I had only 1 page in the report and once I moved the bar down the report page and believe it or not it DISAPPEARED behind the frame's lower edge. It was not a big alarm for me then since I had only one page but now I have many and the only way to flip pages as I can see is to get the toolbar back. I cannot possibly retreive it no matter what I try. When I moved the toolbar down I hoped that it would deck somewhere and become available as part of the frame but it is not what actually happened. The toolbar disappeared at design stage but the same form's report appe ...Show All
Windows Live Developer Forums Hover functionality on Pushpin click
My user likes the way the pushpin hover looks, but they want it done on the click of the pushpin instead of on the hover (along with different data that I'm Ajaxing in). I know I've seen this code someplace, but can't find it now. I have the OnClick working, I'm just not sure how to create the div. John, I've seen your 'Virtual Earth Popup Styles', but am not sure how to put it in play. Thanks in advance...Steve Since you mentioned my name.... I had this on my to do anyway, its annoying that if you click on a pin it stops the mouseover from displaying. http://www.soulsolutions.com.au/onclick.html Credit to hafi and sanderson1000 . <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tra ...Show All
SQL Server Issues with removing replication
SQL Server 2005 Standard replicating to an identical server. My issue: When we go into the database to remove a large number of rows, it says we are unable to delete since the database is in replication. Is there a way to pause, or stop replication temporarily I stopped the log reader but it still gave me the same error. The only way I have found around this is to delete the publication and re-create it when I'm ready. Now though, I'm unable to delete the publication. SQL Server Management Studio will freeze if I either try to delete something from the UI or command line. This happens with objects in SQL Server as well as rows and such. It will just freeze and I have to kill the process. Please Help! If yo ...Show All
Windows Forms edit button
hi, i have create a grid view and with the edit button on each row in VS 2005 web form. but my row didnt change into a textbox inorder for me to edit. Anyone have idea protected void GridView1_RowEditing( object sender, GridViewEditEventArgs e) { GridView1.EditIndex = e.NewEditIndex; GridViewRow Row = GridView1.Rows[e.NewEditIndex]; } oh that's the problem i had. How do i actually create a textbox in that column inorder to edit the data in the row. Any idea CIndy ...Show All
.NET Development Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'
Hi, I'm using Visual Studio 2005 Professional and SQL Server Standard. I ran the 'aspnet_regsql' tool to enable the application services for my ASP.NET project. When using the WebPartManager control on my ASPX page, I encountered an error that tells that 'dbo.aspnet_CheckSchemaVersion' cannot be found. I guess this is pointing to the 'aspnetdb' database on my SQL Server. When I tried to navigate using Management Studio, I located the stored procedure, and verified it exists. I also overwrite the <connectionStrings> localSqlServer on my web.config file from named instance of SqlExpress to my local SQL Server 2005. Please help me to remedy this problem. Thanks. I realize that this falls under the "check the o ...Show All
Windows Forms System.Deployment.Application.InvalidDeploymentException on some machines
Hi! I'm getting the following exception when trying to install my ClickOnce-App on some machines: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://192.168.23.105/system3/System3.application Server : WinGate Engine Deployment Provider url : http://192.168.23.1 ...Show All
Visual Studio Team System Cannot use TFS Team Explorer and VSS2005 alongside
We are unable to use VSS2005 alongside TFS Team Explorer. If we change source control plug-in in Tools to VSS2005, and then try to load a VSS2005-controled solution, it automatically switches to TFS and cannot connect to VSS2005. If we try to switch source control again to VSS2005, after the solution is loaded, it thinks it's a new solution and tries to add it anew into VSS2005. Basically, it gives preference to TFS whatever ways of loading VSS2005 solutions we try. If we uninsall TFS Team Explorer, VSS2005 works again ... not good enough ... The best way to change source control bindings is from the File -> Source Control menu. This will leave the solution correctly formatted. If you have an old version of the solution in TFS, ...Show All
Commerce Server error when trying to view reports
Hi all I'm tryung to view the commerce server reports. When trying to view the EntryPage report i'm getting this error: [rsMissingFieldInDataSet] The data set ‘TableDataset’ contains a definition for the Field ‘Measures_Visit_Count’. This field is missing from the returned result set from the data source. [rsErrorReadingDataSetField] The data set ‘TableDataset’ contains a definition for the Field ‘Measures_Visit_Count’. The data extension returned an error during reading the field. There is no data for the field at position 3. as a result i can't see the visit counts of each page(but i do see the top entry pages) If i'm trying to browse the EntryPages Cube via the analysis services , i'm getting the correct data. a ...Show All
SQL Server Variable that maps to bigint in SSIS
Hello Which variable type in SSIS maps to bigint in SQL Server 2005 I am returning a single column value of type bigint from SQL Server and want to store that in a varible in SSIS, what datatype should I use I tried Int32, Int64, Uint64 and it did not work. Did I do something wrong Thanks This may sound goofy but the way I got it to work was to set the variable as a string. If you want to pass it in, you can pass it in as a long. The obvious one int64, doesn't fly for some reason. -- Brian Knight ...Show All
.NET Development Intermittent webservice issue...
I have a webservice that pulls data from an AS400 backend across an ODBC connection. On initial load of a page, it pulls the data without issue. If I refresh the page, any subsequent calls to one of the functions in the webservice fail, and I get the error: "SoapException: Input string not in correct format" There are only 2 calls to the service that generate this error. I had thought it was an issue with the data being returned from the AS400 (some of the data items were packed), but adding a "cast" call within the SQL doesnt help. Again, initial load works fine but any refresh fails. The functions in question return a dataset, and if I debug I get the error right when I go to fill the dataset. I also tried loading a d ...Show All
Windows Forms Performance of a fully transparent brush
I have a simple performance question about transparency (.NET 2.0, WinXp). Does GDI+ handle zero alpha transparency as a special case What is the cost of graphics.FillRectangle(Brushes.Transparent, myRectangle) compared to graphics.FillRectangle(someSemiTransparentSolidBrush, myRectangle) and graphics.FillRectangle(myFullyOpaqueSolidBrush, myRectangle) I ask because I am designing an application with possibly thousands of small interactive outlined shapes. I only want to fill the selected ones and from a design point of view it would be more elegant to fill the shapes with a zero alpha brush instead of checking the state of the shape when drawing it. Soren I could apply some reverse engineering timing app ...Show All
Visual C# ORA-12154: TNS:could not resolve service name
I am trying to connect oracle 9i through c# and I am getting the following error. Please see the code below. I have created a dsn name using Microsoft ODBC for oracle. I am using .net 1.1. My oracle has installed in d:\ my .net is installed in c:\ can anybody help me what is the problem for the error. try { //string myString= "Data Source=test_data;Integrated Security=yes"; OracleConnection connectionObj= new OracleConnection(); connectionObj.ConnectionString = "Data Source=ArunTest;User Id=scott;Password=tiger;"; connectionObj.Open(); connectionObj.Close(); } catch (Exception ex) { Console.WriteLine(ex.Message); } Check your ORACLE_INSTALL_FOLDER\Network\Admin for a file c ...Show All
