George2's Q&A profile
Visual Studio Express Editions Populating a Dataset from an SQL Database
I am using VB 2005 Express Edition! Also - this is my first attempty at accessing an SQL database, so I acknowledge that I have probably done something very silly but at this stage I am stumped and need some help. As a reference on how to do this, I used KB Article 301216. I have basically copied exactly what was shown in the article changing names to suit my requirements and have come up with the following code :- Dim connection As New SqlConnection(ConnectionString) connection.Open() Dim adapter As New SqlDataAdapter ReadString = "SELECT * FROM configuration" adapter.SelectCommand = New SqlCommand(ReadString, connection) Dim DSetCONFIGURATION As New DataSet( "CONFIGURATION&qu ...Show All
Visual Basic click and drag, howto?
How to click and drag a component, such as textbox for windows application and smartdevice app I'm sorry..but it still got an error 'Location' is not a member of 'System.Windows.Forms.MouseEventArgs'. I try to change e.location with textbox1.location > no error! but I can't find the the textbox events such as MouseMove, MouseDown, Mouse Up still need help, thx ...Show All
Visual Studio 2008 (Pre-release) datacontext
Hi, I'm new to wpf - and kind of lost in regards to the use of data context. I used to be a VB6 developer, so I'm used to using recordsets. What I'm trying to do with WPF is to basically populate a list view grid with ICollection<SomeItem> but sometimes this collection might be empty so I want to convert this empty collection to contain just one row of data with a message string. Once converted I want format the control (listview/grid) according to the number of columns returned. Any input would be great. Thanks in advance. Kind regards, apply a style to the listview, change the highlighted content < Style x:Key = "myStyle " TargetType = " {x:Type ListView} &qu ...Show All
.NET Development XML Instance document cannot detect attribute
Good Day guys, here's my problem: I declared this global attribute in my schema document. By the way, I'm using VS .NET 2003. < xs:attribute name ="OutputId"> < xs:simpleType > < xs:restriction base ="xs:byte"> < xs:pattern value ="[1-4]" /> </ xs:restriction > </ xs:simpleType > </ xs:attribute > I also declared this global element: < xs:element name ="Output"> < xs:complexType > < xs:sequence > < xs:element name ="MinOutputVoltageLimit" type ="xs:float" /> < xs:element name ="NomOut ...Show All
Windows Forms Click Once deployment issues from TFS Build
I am trying, for a while now, to publish a VS2005 win app to be available using click once deployment. Basically it is the application from Mike Bouck's RAM blog. I added this solution to TFS and created a build type integrating the deploy.proj file supplied by Mike Bouck's RAM solution. When the application is 'Team build' (Trying solution build by TFS, and devev /rebuild and MSBuild using corecompile target override in the tfsbuild.proj file), t he build process runs fine after modification of the Deploy.proj file for my environment. Deploy to the virtual root is subsequently successfull. The issue here is that when i try to install the app from the publicationu ...Show All
SQL Server Dataset Data is not the same as Database Data
Hi, Thanks in advance. I have a problem in my dataset. Today morning we updated some of the descriptions to our parameter tables. But these are not getting updated to our reports. I checked the dataset. Even that shows the same values. How do I go about this Please help. Thank You. Regards, Das. You might have turned on caching on the reports. Reports execution can be cached, which is mostly done in environments where data retrieval would take a tremendous time comparing to the benefit of having realtime / cached data. Look in the properties of the report. Caching of the report should be disabled, otherwise the reportserver will take a copy from the Report Server Temp database to render the report ...Show All
Architecture Developing for ASP (Application Service Provider)...what would be important?
We are starting a project to be a web app (in C#) that runs hosted in a service provider, outside our company. Then our customers will access this ASP and use it, paying for a monthly license. Well, this seems to be very common nowadays, but I cant find much documentation about how to create, tips, and workaround for eventual problems that might occur. One thing that comes up in my mind is that we should use, for each single table, an ID that can identify uniquely each of our customers accessing that table. Maybe some concurreny treatment should be built as well....what else Anyone could help me on this Thanks a lot ! Well this is a good site indeed. But what I was seeking was something focused on the developing side..somet ...Show All
Visual Basic IDE says OK but compilation fails
I am developing a web site/system using VS2005, ASP.NET and VB.NET. Suddenly I ran into a problem where I cannot build my site any more. The message is: ..path../UserOwner.aspx.vb(1278,0): error BC30451: Name 'a3333' is not declared. BUT the (in this case) label a3333 is declared. When I edit the behind code there is also no "bubble lines" telling me there is a problem. But as soon as I hit Run - I get this message in this code. It look's like I have hit a "limit" as all objects created "before" in this page works perfect, but all objects "after" fails in the compilation. This happens around the 180th object on this page. If I as example drop a new button object on the page - set's the ID ...Show All
Visual Studio Team System Reinstalling TFS
It all started with having a working environment of single server VSTS installed. I created 2 test projects in it and was able to give users access to them. Due to prioritization, the work was held up for few weeks.The only change, that I know of in between in trhe server is that WSS was upgraded in this server. So I started this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=640894&SiteID=1 I also referred to this one: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=147772&SiteID=1 But the problem remained unresolved. Pressure of delivering mountains. One thing is going on for me. All the team projects that I have created so far are test and no one cares if I delete them. So, I decide to reinstall VS ...Show All
Visual C# Creating instance of a generic type
Hi eveyone, I have kind of weird problem . This method is creating an instance of the specified type (parameter:typeFullName) . Reason we don't directly create an instance of the <T> is that it could be an interface too. Here is the code sample : public static T CreateDAO<T>(string typeFullName) { Type daoType = Type.GetType(typeFullName); return (T) Activator.CreateInstance(daoType); //Exception thrown line } Exception says : Unable to cast object of type "Sample.OrderDAO" to type "Sample.OrderDAO" . It can't cast itself to itself's type . What might be the problem Thje following works fine for me. More details are needed: class T ...Show All
Visual Studio VS 2005 SP1 Beta doesn`t want to install
I`m not commenting the decision to use windows installer patching system right now (long story short: 1GB of memory wasn`t enough), but after an hour or so the installer doing who knows what atm just died with a very informative message: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908. The number was different the first time I think, when I ran out of free space. And as I click OK it just keeps poping again and again. Oh, wait... it`s stopped after 40- or 50-something clicks. Now, after some time, we have this: Error 1935.An error occurred during the installation of assembly 'CppCodeProvider,Version="8.0.0.0",PublicKeyToken="b03f5f7f11 ...Show All
Visual Studio How to attach reportviewer with multiple datasets?
Can anyone give me a detail example of how to implement it thanks ...Show All
Visual Basic ClickOnce autoupdate question
I have an application that I published to a local network folder with ClickOnce. I set the autoupdate option to check once every 7 days. If I publish an update of the same apps and same network folder , do I need to keep the old version in that same path, or do I have to remove it first then publish, so that it will automatically pick up the new version Hi, you don't have to do anything, just publish your application to the publish location. Just make sure the new version is higher than the previous one [Visual Studio will by default increment this version with each successfull publishing]. All version are kept in the same published location, safely stored in their folders (marked by their versio ...Show All
Windows Forms DataGridViewButtonColumn: How to hide a button in it?
Hello, I have a DataGridViewButtonColumn of delete buttons and I want to hide one of the buttons in particular row in order to prevent the user from modify the row's contents. I’ve found the following article, which was on point, but the advice did not work: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=487054&SiteID=1 I have implemented a work-around, but it isn't very elegant... If the user clicks a delete button in the column, my dataGridView_CellClick event handler will ignore the event if it is from the row that I want to protect: if (dataGridView.SelectedRows[0].Cells[3].Value.ToString().Trim().ToUpper().CompareTo( "NO COMPANY" ) == 0) { return ; } I'd a ...Show All
Visual Studio Tools for Office Make Spell check dialog appear as transient when invoked from 3rd party application.
Hello all, I am using MS word spell check in an application using Interop assembly referece Dialog dlg = _wordApp.Dialogs[WdWordDialog.wdDialogToolsSpellingAndGrammar]; and using dialog.show(ref myObj). where object myObj = Type.Missing, last = _wordDoc.Characters.Count - 1; Problem: The dialog hides itself even if i do _wordApp.Visible = false; I want the window to be transient - should be at top of my application. Any suggestion will be of great help. Thanks in advance Hi Neo This question has nothing to do with the VSTO technology, and is therefore off-topic in this forum. The better place to ask would the be the officedev newsgroup. http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.publi ...Show All
