Sorinuc's Q&A profile
.NET Development Variables in a sql command
Hi, I am connecting to a database using the wizrds on visual studio.net(is that ADO ) but the problem I am having is a fairly easy one I think. I want to use a variable as my WHERE command in my sql statment. for example int Number1 = 1; SqlDataSource1.SelectCommand = "SELECT UserID FROM Users WHERE UserID = 'Number1'; I am postive that the UserID is an int value. The program compiles correctly but when I run the&nb ...Show All
.NET Development Connecting to a database and parameters in sql
Hi, I am creating a small web app, that searchs a database depending on the information the user enters onto the web form. I create the connection to the database by using the visual studio wizards by binding the data top a grid view. Below is my code SqlParameter word1 = new SqlParameter(); word1.ParameterName = "@tb_1"; word1.Value = TextBox1; SqlCommand cmd = new SqlCommand("SELECT * FROM ApprovedComponents WHERE Vendor = @t ...Show All
Visual Studio Express Editions Dataviewgrid with dynamic binding
I have a dataviewgrid and want to populate it with data based on the name of a table selected from a list box. Code I have: Dim i As Integer For i = 0 To StudentsDataSet.Tables.Count - 1 ListBox1.Items.Add(StudentsDataSet.Tables(i).ToString) Next 'the above code gathers table names, just fine Dim curItem As String = ListBox1.SelectedItem With DataGridView1 .AutoGenerateColumns = True .D ...Show All
Windows Forms Appending two or more word documents to one word document
Hi, I would like to use VB to take two or more word document fils and concat them to one word doument. Although this is not a Windows Forms question, I'll try to help. Your question really centers on how to use the  ...Show All
Windows Forms How do I filter a BindingSource using the Child token?
I have to DataTables with a parent-child relation set between them. The BindingSource object is bound to the Parent table. Is there a way of applying the filter with search/filter criteria specified for the child DataTable I've tried: ParentBindingSource.Filter = "child(RelationName).aChildCol='strToFilterOn'" but I get an error "Cannot interpret token 'child' at position 1." Any ideas on how this can be done Af ...Show All
Visual Studio Team System Where is Team Foundation Server?
I just spent 2 days downloading the Visual Studio 2005 Team Suite from Microsoft's painfully slow MSDN servers. From the MSDN site: Visual Studio 2005 Team Suite 180-Day Trial The 180 Day Trial Edition is a time-limited, but fully functional, version of Visual Studio 2005 Team Suite. It also includes a time-limited and fully functional version of Visual Studio 2005 Team Foundation Server. I see nothing on this DVD that looks like Team Found ...Show All
Software Development for Windows Vista Image distortion using my native screen capture tool.
I ever wrote a simple screen capture tool in WinXP. It worked well, but as I used it in Vista beta2, the captured images were not correct at all. I also tried PRINT SCREEN key and Magnifier tool, and the result was the same. Forgot the link of the image I get by using PRINT SCREEN key. My display card is GeForce 6200. Can anyone shed a light on it Thanks. http://us.f2.yahoofs.com/bc/4008e591_15418/bc/My+Documents/desktop.jpg bf5UtmEBg ...Show All
Software Development for Windows Vista Is WF right solution for high-throughput OLTP?
We are considering re-implementing the core of our OLTP (on line transaction processing) app using WWF. Having worked with WWF for awhile now, I've concluded it meets our needs very well for flexible loosely-coupled messaging with contract-based binding of endpoints. One area still concerns me, that's performance. Our input to the WF from host is a message object, and we pull the modified object back to the host a ...Show All
Visual Basic entering default data into a database table record
I am using vs 2005 and sql 2005. I am using a webform to insert records but I want to automatically add the current time and the user id in addition to the data that the user enters. Is it possible to do it with the detailsview control and hidden fields If not what is the best way to do this Hi, When dealing with default values its better to be specified in your table directly. You can dothis by editing yo ...Show All
Visual Studio 2008 (Pre-release) foreach or yield on a 'stream' instead of an IList?
I'm a recent exile from Java land and would like to know the following for C# (2.0 ... can't use LINQ in production yet :( ): What is the best way to not just iterate through a list, but keep track of new entries to it and 'process' those as wel. In other words, I would like to do something like this: foreach(Data d in myList) Console.WriteLine(d.somevalue); The above line will just go through the list and display the 'somevalue' attribu ...Show All
Windows Forms locating a doc file iside a folder
How to locate a doc file inside a folder and finding a particular feild inside that doc file Hi , U can use this method to get whther the File is present in Specified folder or Not.... Private Function IsFilePresent(ByVal Direc ...Show All
Visual Basic Exporting Crystal Report to Word Document
Hi all, I use ReportDocument component to export a crystal report to word document. This works fine. But it uses saved data when report is exported next time. Database changes are not effected in the new report. When I used refresh() method to refresh the data, it creates login failure. Anybody please help to solve this issue. Thanks, Ajish ...Show All
Windows Forms VS 2003 and framework2.0
Hi, How can I point VS2003 to framework 2.0 I have both 1.1 and 2.0 installed on my development machine and for some reason I cant install VS2005. How can I point VS 2003 to 2.0 framework. In this scenarion, will I be able use new features of 2.0 such as datagridview, enhancements in ADO.net and other new features Thanks, I am very sorry but you are not going to be able to get Visual Studio 2003 t ...Show All
Windows Forms Z-order of OwnedForms
Is there any native .Net way to determine the Z-order of the forms contained in the OwnedForms collection or must I revert to Win32 API's Thanks, Ray Manning ...Show All
Visual Studio Own PropertyPage loses focus while typing
Hi, What I did: I implemented a new PropertyPage for my package using a UserControl implementing Microsoft.VisualStudio.OLE.Interop.IPropertyPage. The content of the PropertyPage should be different for each build configuration, so I injected it using VSHPROPID_CfgPropertyPagesCLSIDList. Problem: When I type something into a TextBox on that page, it loses the focus, when I press "m" or "c". When I press "m" the &q ...Show All
