Jason Jaegers's Q&A profile
.NET Development IP Address Range Array question
I know this should be easy, however... im building a small scanner and wanted to create an array of some sort to scan all addresses in the range of textbox1 and textbox 2 i have been reading about arrays and have tried to contemplate how one should be setup for this and cant figure it out.anyone know of any tutorials or sameple code where this is done Not looking to be spoon fed, just tryin to get a grasp on vb2005 this is what i have now in vb6, mind you, the code and logic are all incorrect right now, because im working on it right now, i will be doing this in vb express and yes, im a damn code noob..thanks [code] '---------FIRST IP SPLIT--------- ' Dim start1, start2, start3, start4 As Integer star ...Show All
.NET Development how does an xml file that contains 3 values look like pls?
I need an xml file with 3 values: field1 : value1 field2 : value 2 field 3: value 3 Can you help me with that Thanks One possible xml file matching your requirements is this: < myDoc field1 =" value1 " field2 =" value2 " field3 =" value3 " /> Cheers, Dimitre Novatchev ...Show All
.NET Development How to use xslt to read multiple (directory full) xml files and generate one output file.
G'day, I've got an Vb.2005 windows forms xml based application that generates and consumes XML files. So far I've uses XSLT files to transform those xml files in a one xml file to one output file senario. XSLT is painful to write, but eventually I get a solution. I'm completely stuck on how to use multiple xml files, ( for example all the files in a directory) to then generate one output file via xslt. I know I've got to use the Select="Document( )" and or some variables but I can't seem to get a good example that doesn't rely on another xml file to provide the paths to those documents. Eg. Nunit 2.2 has an xml results file formated the following way, and I want to read the results of my nightly unit tests results and p ...Show All
SQL Server Please help with this views
Hi In acces i have make a view witkh this code <> #15:30:00# How can i write this in a view on the sql sever I have try with <> '15:30:00' But it dosn't work , my field i a datetime( maybe i shal change that Hope someone can help Regards alvin Yes I can see it now in my view i have (dbo.Varer.Start <> CONVERT(DATETIME, '2006-10-25 15:30:00', 102)) so can you help me to do it right Regards Alvin ...Show All
Windows Forms MDI Parent and Child form TaskBar question
Hello All, I am writing my first MDI form using Framework 1.1. Everything is working properly with the Parent form and the various child forms that I open up within it (eg I can cascade, minimize, maximize, etc). There are 2 things which are causing me problems. One is that only the parent form is showing up in the TaskBar. We are running XP Professional and in Excel, if I have multiple files open, when you click the taskbar you get a combobox which allows you to pick which one you want to select. The old style way of separate task bar items would also be acceptible. The second thing which is related is that if I Alt+Tab I can cycle through open files and multiple Excel files will show up individually for selection purposes. I have n ...Show All
.NET Development OPC Automation
Hello, I'want to create an OPC Client for any OPC Server in VB.NET. I use Visual Basic 2005 Express Edition. So, I add a reference to my OPCDAAUTO.dll. And at this time, there is just this part of Code : Public Class Form1 Dim WithEvents g_OpcServer As OPCAutomation.OPCServer Dim WithEvents g_OpcGroups As OPCAutomation.OPCGroups Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load g_OpcServer = New OPCAutomation.OPCServer g_OpcServer.Connect("KEPware.KEPServerEx.V4") g_OpcGroups = g_OpcServer.OPCGroups.Add("Grp") End Sub End Class When I Run the App, i go this Error message : Unable to cast COM object of type ...Show All
Windows Forms Drag and Drop to Word
Hello, I'm writing a little photo-database application and i would like to be able to drag pictures from a Windows.Forms.PictureBox object to another application that can accept images, eg Word, Excel, Powerpoint... I have the following event handler: private void pictureBox1_MouseMove( object sender, System.Windows.Forms.MouseEventArgs e) { if ( this .mouseDown == true ) { this .pictureBox1.DoDragDrop( new Bitmap( this .RealPath),DragDropEffects.Copy); this .mouseDown = false ; } } and the mouseDown property is set when the mouseDown event is fired. This works very well when i try to DragDrop from my app to Excel of Powerpoint but it doesn't work when trying to DragDrop it to Word or ...Show All
Visual Studio 2008 (Pre-release) XAML/C# Singleton class?
What is the best way to implement a singleton pattern in XAML/C# Haven't gotten this to run correctly... I guess it's the way the XAML and C# are tied together... XAML shouldn't really get in the way here. < Object xmlns = " clr-namespace:System;assembly=mscorlib " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " x:Class = " Singleton " /> using System; public partial class Singleton { private static Singleton instance; private Singleton() { InitializeComponent(); } public static Singleton Instance { get { if (instance == null ) { instance = new Singleton (); } return instance; } } } ...Show All
Microsoft ISV Community Center Forums Supplying variables for a stored procedure through a form
Hello all, I have been racking my brain and the internet on this question for months now. I sure hope someone here can help me. I have a bound form where data from a help desk call can can be entered. I have a button on the form in case work order needs to be created. The button executes the stored procedure below, which is supposed to insert a record into the tblWorkLog table based on the current entry in the Work Order form (the user just entered). My problem is this, how do I pass the data in the forms!WorkOrder!JobID control to the stored procedure, which is called using the "DoCmd.OpenStoredProcedure" subroutine. The DoCmd event will not allow variables to be listed after the procedure name. In a nutshell, How do y ...Show All
SQL Server variables in data flow OLE DB
I'm storing a sql command (could be an SP call or simple select) that I would like to pass into the "OLE DB Source" container in my data flow task. If I choose Data Access Mode: SQL Command from variable, I get an error saying there is a data source column with no name. I've fought SSIS pretty good up to this point. I realize you need to "initialize" variables & expressions in the control flow ahead of time if you want to access them in the data flow. But I was kind of hoping that all I would need to do in this case would be pass a SQL command into a variable and access that somehow in the data flow without jumping through any hoops. Is this possible This is a great forum btw, thanks, Phil ...Show All
Visual Studio Team System Install VSTS with data tier on a Cluster SQL Server
hi .. I was wondering if someone can send me a link for installing VSTS in a dual server mode. where data tier resides on a clustered SQL Server instance. I am not having any luck with finding such a doc on msdn. thanks You just need to install Tfs data tier on the active node of the cluster, follow carefully this step in the installation guide "Checklist: Team Foundation Server Cluster Deployment" for complete instructions. ...Show All
Visual Studio 2008 (Pre-release) BitmapImage.StreamSource best practice?
I want to do this: using (Stream imageStream = webClient.OpenRead(url)) { BitmapImage bitmapImage = new BitmapImage(); bitmapImage.BeginInit(); bitmapImage.StreamSource = imageStream; bitmapImage.EndInit(); this.image.Source = bitmapImage; } but it throws an exception because the image hasn't finished downloading when the stream is closed. So instead I find myself doing this: Stream imageStream = webClient.OpenRead(url); BitmapImage bitmapImage = new BitmapImage(); bitmapImage.DownloadCompleted += delegate { bitmapImage.StreamSource.Close(); }; bitmapImage.BeginInit(); bitmapImage.StreamSource = imageStream; bitmapImage.EndInit(); this.image.Source = bitmapImage; But it doesn't feel right. Is this ...Show All
Visual Basic How to install old vb6 activex controls ?
Hi, My old app depends on some activex controls shipped with vb6 enterprise edition. How to install these controls on my system I have vs 2005 installed, so afraid to break something installing old stuff. How to get these activex controls thanks Vilius If you know they shipped with VB6, you could just install VB6 and get the controls that way. -Scott Wisniewski ...Show All
Visual Studio Express Editions Don't get email-confirmation
When I register for the key for Visual Studio Express the confirmation mail never actully makes it to my inbox. I don't know wheter this is a bug og just something I'm doing wrong. Where should I ask Check the registration FAQ: 2. When I try to register the product, I don’t get the e-mail verification mail. http://msdn.microsoft.com/vstudio/express/register/faq/ And for your question, Visual Studio Express Edition forums are the right place: http://go.microsoft.com/fwlink/ linkid=53461 Hope this helps! Timo ...Show All
Visual C++ D8004
A C/C++ project consistently adds /D to the end of the response file in debug configuration. This leads to a D8004 error. The extra /Ds do not appear in the command line, only in the repsonse file. This is not a problem in release configuration. There are no /D to edit out of the command line. Build Log Build started: Project: WatSat, Configuration: Debug|Win32 Command Lines Creating temporary file "d:\naldll\watsatclo\Debug\RSP00003830125768.rsp" with contents [ /Od /I "d:\watwin\includes" /I "d:\watwin\s" /I "d:\naltool\s" /I "d:\naltool\includes" /D "_DEBUG" /D "_WIN32_" /D "_EXPOR ...Show All
