simian's Q&A profile
.NET Development Retrieve Single Value from DataTable
Hiya, I was hoping someone could explain how to retrieve a single value from a DataTable. I have a DataTable that is populated with a single row and I would like to assign a single value from that row to a textbox. I have seen plenty examples doing this with a DataSet but NONE using a DataTable directly. Any info would be greatly appreciated. Thanks! J.H. Hi, The sample ...Show All
SQL Server Pkg Execution Works in VS but not in SQL
I'm able to execute a package in VS Pro on my machine. However when I upload it to the sql server and try to execute the package directly it fails with: Error: The product level is insuficient for component "...." (3129) Error: The product level is insuficient for component "...." (5411) The first component is a DataReader Source which is consuming an ODBC (Noble Systems ATOMIX Driver) connection and the second componen ...Show All
Visual C# StripMenu + Database
How to create a dynamic strip menu with database provided data, where the itens was showed according user permission. Hi! Here is some sample from one of my projects. My application can work with multiple insurance companies and only one may be selected as active at single moment of time. I intercept DropDownOpening event to read SQL table with companies and build a list of choices. Last thing was to add "add/modify..." item. ...Show All
.NET Development How to do a programmatic update of table
Assume a table called Test with three columns and n rows: ID integer identity primary key UpperLimit integer V1 integer Test is part of a SQL Server 2000 database on a server. I want to read and update the table using the following algorithm for i = 0 to n-2 test(i).V1 = (test(i).UpperLimit + test(i+1).UpperLimit) / 2 next test(n-1).V1 = (test(0).UpperLimit + test(n-1).UpperLimit) / 2 How w ...Show All
Visual C# Bitwise operators
I am really new to C# and am still learning its many idiosyncrasies. While learning how to code for the RichTextbox control (I'm reading the book "Beginning Visual C# 2005" from Wrox Press, I ran across this piece of code that has me rather stumped. I know it works but I don't have any idea how it works. After reading about bitwise operators it got me even more confused. The code checks the selected text and changes the FontStyle to Bold ...Show All
Software Development for Windows Vista Add Graphic User Interface to custom Activities
Is possible to create a custom activity and include some GUI, so when that custom activity is used in a workflow the user would be able to double click the custom activity and set properties If so, where can I read some documentation about it. I think that, maybe, I need to override some method but I can't figure it out what method. Thanks in advance. Can this custom activity designer also be set up to be a drop ...Show All
Visual Studio Express Editions displaying a number
how do i get an object to display a number between 1 and 9 i have used the code object = 1 Or 2 Or 3 Or 4 Or 5 Or 6 Or 7 Or 8 Or 9 however, it only displays the number 15 instead of a number between 1 and 9 What are you trying to do here Generate a random number It's better to do some research than take a wild guess how to do stuff. http://www.google.com.au/search hl=en&q=VB.NET ...Show All
.NET Development Problem with System.Reflection.Emit
Hi. I am trying to improve performance by using System.Reflection.Emit. Here is what I do: - I have a class (let's call it vector). It has a 1D array of double for holding the data. - The Vector class has operators (+, -, etc.). In the overloaded operators, I build the expression tree. I am trying to emulate expression template trick. - To copy the result of calculation to the destination Vector, I define a function Assign(). - The fun ...Show All
Windows Forms ComboBox
Hi, I have stored in my comboBox some several values.I want with some way to select each time more than one cause I want from the user to delete them ,and keep only the wanted values, from the combobox.The one way i have thought for that is with the checklistbox but i want to do that with combo...Do you know how can I do that Thanks a lot!!! Hi, How about using a listbox control You can add a listbox and change it's "SelectionMo ...Show All
.NET Development How to seach through XML and return only requested/matching nodes
I have an information collection consisting of a dozen or so tags (name, style, location, description, date created, etc) with their accompanying content for a catalog of about 200 items. (this catalog will never grow to over 1000 items). I am learning XML/XLST in general and especially dotNet's implementation of them, and where I would usually just use SQL queries to a mdb file to pull/return only the requested entries, I would like to build ...Show All
Smart Device Development Remote tools without ActiveSync
Hello, is it possible to use the remote tools of VS 2005 on a device without an ActiveSync connection Best regards Olov If that's what you're looking for, then you should check out "Remote Display Control for Pocket PC" http://www.microsoft.com/technet/prodtechnol/wce/downloads/ppctoys.mspx#EGAA which should work over ActiveSync, no dev tools required. There are also commercial products which do the s ...Show All
Visual Basic configuring parameters in configuration wizard in vb.net?
Hi, I have a question regarding how to congure parameters in the configuration wizard instead of writing code in the code behind page in vb.net. I have configured and designed the dataadapter, theconnection, the dataset using the configuration wizards, just to avoid writing code. I have a combobox populated with some values. I need to select a value from it during run time. Now, I have to insert this selected value into an empty column in a di ...Show All
Software Development for Windows Vista GetOpenFileName is not backwards compatible
First, the file filter is appended to the file type description in that combo box at the bottom of the dialog. This is a really bad idea, because there are types which may have countless extensions, and not because they wouldn't fit, but because xp and older cannot handle it (it simply fails to filter correctly). There is way to get around this problem by using the OFN_ENABLEINCLUDENOTIFY flag and handling the CDN_INCLUDEITEM notification messag ...Show All
Windows Forms I don t know how to pass variales and text controls values between forms
Hi, 2 little questions pls: From a form frm1 I call another form frm2. The form frm1 has a text box with a text in it. I don t know how to access that value in frm2. Also I would like to access i frm2 certain vaiables defined in frm1. 2/ What d be the help section in Visual Basic where I ca find such guidelines. Thanks a lot 1. To get access to a TextBox from form1 and form2, all you have to do is to set the TextBo ...Show All
SQL Server Commad works but 0 rows effected
What does it mean when you have a querey like this Update tblWatchInstance SET [NewInvoiceGen] = '1' Where tblWatchInstance.WatchID = '%" & txtWatchID.Text & "%'" But when you run in the Qanalyzer it says 0 rows effected...why is that could it be something i am missing..... If you use equal sign in the where clause it will do a exact match. The watch ID has to match '%something%' You might want ...Show All
