Visual C# Novice's Q&A profile
SQL Server Data Flow Task - OLEDB Source / Destination
Hi Inside a data flow task, i have a oledb source and destination. In my situation, I need to pull data from a table in the source, but also hard code some columns myself, which means my source is a blend of data from table, hard coded data, which will then have to be mapped to columns in oledb destination. Does anyone which option to choose in the oledb source dropdown for the data access mode. Keep in mind, i do need to run a a select query, as well as get data from a table. Is it possible to use multiple oledb sources and connect to one destination, because that is really what intend to do here. I am not sure how it will work, or even if its possible. Basically my source access mode needs to be a blend of sql command and table column ...Show All
Windows Forms How to get Checked Items/Nodes in Treeview Control
Hi to all, I'm using VB.net 2005 and i'm kinda new at it. I had a Treeview with checkboxes shown on in. I already figured out how to populate Items on it, but my problem is that I can't find a way to get all the checked Items on it to its lowest node level. I hope somebody here can help me. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e1 As System.EventArgs) Handles Button1.Click test1() End Sub Private Sub test1() Dim s As String Dim i As Integer = 0 Dim j As Integer test2() While i <= TreeView1.Nodes.Count - 1 If TreeView1.Nodes(i).Checked = True Then j = 0 Dim childcount As Integ ...Show All
Visual Studio Express Editions Using Modules....
I have a VB project with a windows application form with a series of contols. I also have a module that contains a sub to run through the windows controls and then based on the checked boxes assigns boolean true or false... once that is done the sub runs a search on a database... The problem that I am having is that the sub is reading all controls as false for instance.. on windows form I have a checkbox named "checkbox1" Then I have a background Worker that calls the module and sub to run. on the module I have a sub that says something like this. Dim ThCheckbox1 as boolean If windowsform.Checkbox1.checked = True then ThCheckbox1 = True If ThCheckbox1 = true then <<< this is where the code does not ...Show All
Software Development for Windows Vista ICredentialProvider
Did anybody make a successful user logon using the new ICredentialProvider interface My credentials are displayed, but I can't make them to logon. And what worse - after 20 or 30 seconds, the winlogon crashes completely with no recovery possible excepting hardware reset. I thought I basically did something wrong and decided to wait for more detailed documentation or some sample code. But MS doesn't seem to put too much effort on improving their SDK documentation and I also found that at least one other programmer has the same problem: http://msdn.microsoft.com/newsgroups/default.aspx query=vista&dg=microsoft.public.platformsdk.security&cat=en-us-msdn-windev-winsdk&lang=en&cr=US&pt=&catli ...Show All
Windows Forms date & time difference
I have two DateTimePickers (dateFrom and dateTo).. I want to get the difference in words.. for example, two days, eight hours, twenty two minutes use a timespan object and query the object. TimeSpan ts = dateTo - dateFrom; Console.WriteLine(ts.days); //get the days for example ...Show All
Visual Studio 2008 (Pre-release) inline an image into XAML
is it possible to inline an image into a XAML document possibly using a CDATA section ... Thanks, casey just threw some code in :) < Window x:Class = " WindowsApplication1.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Loaded = " Window1_Loaded " > < StackPanel > </ StackPanel > < x:Code > <