gary.ruan's Q&A profile
Visual C# He need some help with authentication
Im trying to design a login form that will check against a SQL database to see if the username and password are correct. Could some one please supply some sample code of how i would do this. Thanks, Greg Are you working on ASP.net 2.0, check the following link http://www.asp.net/QuickStart/aspnet/doc/ctrlref/login/default.aspx ...Show All
Windows Forms Can I access the DataTable_ColumnChanged Event..............
Can I access the DataTable_ColumnChanged Event.............. of the child form from the parent form \ Thanks Yes. Parent form should see ChildForm.Datatable You should "AddHandler ChildForm, AddressOf ParentForm.ChildDataTable_ColumnChanged" in the parent form. Obviously you have to declare the ChildDataTable_ColumnChanged sub also ;) Doing this will attach an event handler for ColumnChanged events raised by that dataset. ...Show All
Visual Studio Team System Team Suite 2005 + SQL SERVER 2005 + TEAM FOUNDATION SERVER on one machine?
I have one spare computer with Windows Server 2003 Enterprise installed. I would like to have both the Application Tier and Database Tier on this machine. Is this possible Can VS.NET Team Suite 2005 Beta 2 exist on the same machine as SQL Server 2005 Beta 2 Team Foundation Beta 2 I have not been able to successfully install all of these products on one machine. I read somewhere that with Beta 1 the application tier and database tier must be separate, but is this still true for Beta 2 Any help is appreciated. This scenario is completely supported in Beta 2 if you use the April CTP of ...Show All
Visual Basic Relase the Fix for Visual Basic Compiler Error &H8013141e&
Hi all i just want to know when is going to be released the fix for visual basic compiler error &H8013141e& this is already reported in the microsoft productfeedback site. i think this is a very urgent patch that must be released asap and please do not repond that i should go back to vs.2003 because i have lots of code developed in VS 2005 to framework 2.0 .. JSB PS: this error pisses me of, i need to restart VS.IDE every 5 minutes. i think this is too bad for a recent relesase product ( its full of Bugs ). I am having the same problem. Happens in both Visua ...Show All
Visual C# static/const/readonly variable...
I must be missing something simple... I want to have a small struct... I want 3 of the 5 variables to be constant for all instances and the other two to be variable. However, the 3 that are constant come from an xml file.. which must be read in...not an actual string in code... so I've tried things like struct samplestruct { public string constVar1 = xmlval1; //won't compile because you can't instantiate in struct so i tried struct samplestruct { public const string constVar1 = xmlval1; //won't compile because expression must be constant so i tried struct samplestruct { public static string constVar1 ...Show All
Visual Studio Setting report viewer width
I am trying to set the width of my report viewer in my asp.net page and for some reason it is not seeing it. It always comes up as 869px. I tried setting it at runtime in the code and in the properties of the reportviewer but no luck. I veiwed the source and saw that crystal injects it's own style in a div like so: <div class="crystalstyle" style="width:869px;height:629px;position:absolute;top:0px;left:0px"> <div id="ReportHeaderSection1" style="z-index:3;clip:rect(0px,864px,50px,0px);top:0px;left:0px;width:864px;height:50px;"> is there any way around this Thanks, Sam Problem still exists. ...Show All
Visual Studio Express Editions Embedded application Icon in exe
Hi, I have had a new icon to my project, setting Build Action to Embedded Resource. Using the application tab in the project properties, select this icon as application Icon. The result is that the ICON is not embedded in the "exe" but in a separate folder. how can I embed it in the "exe". Regards I would add them directly to the resources. View the project properties and click the Resources tab. It will tell you if there are none and let you add a resource file in that case. Click on the Add Resource drop down and select Add Existing file. Select the icon you want and rebuild. Now you can access that ...Show All
.NET Development Web controls
I am currently using IE WebControls Version 1.0 on the windows XP professional machine and it works fine but if i install it on windows 2003 it dont work(i see contents of two tabs one below other). I using it for the Tabstrip control ONLY. Any known issues do i have to install something else I checked the microsoft website for help on the above webcontrol it says "Microsoft Internet Explorer WebControls are not currently supported." Thanks Ed ...Show All
Microsoft ISV Community Center Forums Changing chart series
Hi Can anyone point me in the right direction on working with Charts in Excel. I have a workbork with five pages, each page has many charts, each chart has three series. I had specified a range well beyond the data, the blank cells did not appear on the charts, and the charts updated automatically as data was entered. The data page has changed, now I need to set the ranges each time. I know the final column for each series, how can I scroll through each chart on each sheet, and update the column setting to the new requirement. I know how to do this by selecting each Chart by name, and setting the range by using the full range details. ...Show All
Visual Studio Error "Operation is not valid due to the current state of the object"
I'm trying to use the ReportViewer control (in remote mode) in a winform app. Everything works great until I try and change the ReportPath of the control (in response to a TreevIew after select event ) when the currently visible report is a report that has been drilled into from the original report specified in ReportPath e.g. ReportViewer rv = new ReportViewer(); /* other code */ rv.ServerReport.ReportPath = "/Report1"; rv.RefreshReport(); User then clicks on a link in Report 1 that jumps to Report 2 (still within the same control). Now if you try and set the ReportPath to anything you get an "Operation is not valid ...Show All
Visual C++ MS C++ 2005 express database mismatch error when compiling
Every time that I attempt to compile a c++ program I get a database mismatch error. When I looked this error up in the included documents, it said that I needed a newer version of dbi.dll. Where can I find this file I know that my programs work because they compile with ms vc++ 6.0 and the gcc complier. Here is the artilce where it told me "how to fix it," but I still cannot find the file that I need. Visual C++ Concepts: Building a C/C++ Program Fatal Error C1902 program database manager mismatch; please check your installation A program database file (.pdb) was created usin ...Show All
SQL Server Replication Deadlocks
Hi All, I need to get some assistance with some replication deadlocks im getting. We have two servers, which push information between each other, which I have a hunch could be a cause. Basically I keep getting the 'Agent Retry' Alert from SQL: DESCRIPTION: Error: 14152, Severity: 10, State: 1 Replication-Replication Distribution Subsystem: agent SQ01-EMS-SQ02\UK-183 scheduled for retry. Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. When doing some googleing, I found the Trace Flags and setup flags 1204 and 1205, but they dont give me ...Show All
Visual Studio Tools for Office Insert HTML text in a Word document
Hello: I'm trying to insert a HTML text in a word document. I have an action pane with a few controls. With theses controls, i call to a remote web service and get some information in HTML format. After this, i want to insert this HTML information in the document, but i don't know how to do it. I have a very few time, next thursday i have to give in the software. I'm using Visual Studio 2005 Beta 2 and VSTO 2005. Please help me. Thank you very much. Bye. One quick way to do this is to save the html into a file and then use Range.InsertFile command. For example: Selection.InsertFile FileName:="sometext.htm" ...Show All
Visual Studio Team System Changing Levels,Report Options, Altering existing rule
Hi, I am using VS2003 and FxCop 1.32 . I have following questions 1. I have created custom rules, but i want to ask whether it is possible to alter/modify existing rules 2. Can i change default levels of errors/warning like If i want to change Critical warning to warning .. how can i do it 3. Is it possible to log some specific messages to a different xml report in one run 4. I have added words in CustomDictionary.xml , but FxCop is not picking them. Why Thanks Hi Lovenish, 1) FxCop doesn't provide an option to modify existing rules. what rules woul ...Show All
Visual Studio Team System Seeing Source Code stored in TFS
When I open Source Code Controller (Beta 3) it lists my Team Projects such as $/t9. When I click on $/t9 in the left pane the right pane points me to my workspace (on my local harddisk). How can I view the source code currently stored in TFS TIA, Barkingdog The rightmost column in the right pane tells you which files are in sync. If it says "Latest = yes" then those file are in sync and viewing them is the same as viewing the latest version in TFS. If not, then attempting to view those files should prompt you with an option to view either the version in your workspace or the latest v ...Show All
