WHealy's Q&A profile
Windows Forms Help listbox
I have listbox with mulitiselect set to true; When I iterate to the selected items I need the selected item to be place in a textbox. foreach ( string lsStr in listBox1.SelectedItems) { message1.Add(lsStr.ToString()); } for ( int i = 0; i < message1.Count; ) { string message2 = System. Convert .ToString(message1 + ","); textBox1.Text = message2; } what im doing wrong, it only place the last selected item. You're not appending the strings in the second loop: string message2 = ""; for ( int i = 0; i < message ...Show All
Windows Forms server side config
I've installed the taskvision client & source and they both work fine. But I'm having a problem with the server side. http://www.microsoft.com/downloads/details.aspx FamilyId=53C3B52C-0544-4A03-A79B-ECE6D500B8A7&displaylang=en As you know, there are a few things to do before you install it. One is: - The SQL Server default instance is named "local" (this is installed by default) and that ...Show All
Smart Device Development Geting status indications from miniport driver via NDIS stack
I like to write an application (something like WZC) under WinCE 5.0 using PlatformBuilder for controlling W-LAN connection. My problem is to get status indications from the driver via NDIS stack. Status indications like radio ON/OFF, link UP/DOWN, status of a completed send request... The W-LAN driver is using NDIS function for indicates changes in the status to NDIS stack (functions like - NdisMSendComplete & NdisMIndicateStatus ). As I understand it gets up to the protocol driver. Under the documentation of NdisMIndicateStatus in MSDN they say - the configuration manager can log the change in the status. ...Show All
.NET Development Deserilization of the EventHandler Delegate Not Permitted
Hi, I am using .Net 2.0 and we are using remoting for a windows based application. I am getting the following exception when I am trying to call a remote method: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level. I have set the TypeFilterLevel to Full in both client and server but still I am getting the exception. Here is the client configuration: IDictionary channelProps = new Hashtable (); channelProps[ "port" ] = 0; channelProps[ "typeFilterLevel" ] = System.Runtime.Serialization.Formatters. TypeFil ...Show All
Visual Studio Express Editions Can't remove .NET Framework 2.0 Beta 1
I'm attempting to install the VC# Express Edition 2005 Beta 2 package and have run into a snag. I previously had some of the Express Edition Beta 1 packages installed (VB, VC#, VC++), but removed them in order to install Beta 2. I also have the .NET Framework 2.0 Beta 1 package installed, which refuses to uninstall. First, I tried removing it via Add/Remove Programs. The uninstaller complained that 'netfx.msi' could not be found, and quit. Then, I ran the Visual Studio Beta 2 Cleanup tool, but VC# still said that the .NET Framework 2.0 Beta was installed. I tried Add/Remove Programs again, but now the Add/Remove Programs applet itself said ...Show All
Visual Studio Team System Mobile Distributed Application in Application Diagram
I've a quick question: how can I design a mobile solution using VSTS In AD there's not a mobile application and using a Windows Application instead I cannot implement it usign a the mobile application template. Also in LDD there's not a Device Client (I've used a windows client). For a BizLayer component (for windows application as well) I cannot use a Windows Application because it cannot be implemented usign a Class Library Project template. I need to create a new SDM for Mobile Apps (and for Biz/DAL Layer component) or I've missed something Maybe in this Beta2 there aren't many SDM for mobile, components etc For time now, I've used ...Show All
Visual Basic how to insert new text message on top of the other?
Hi!, I have two webforms and log.txt file on my machine. webform1 enable the user to view the contents of log.txt while the webform2 enable the user to input text message on textbox and save to log.txt. However, the new message to appear on webform1 was on the bottom portion, How do i make the new text message appear on the top of the other I was using streamreader and streamwriter for this. thanks, Mac TextBox1.Text = newText + ControlChars.CrLf + TextBox1.Text Then save TextBox1.Text to log.txt, show in webform1. -Joe ...Show All
Windows Forms How to run a function from a MDIi Child in a MDI Parent
Hello all, I have one problem, I want to execute a function I have in my MDI Parent from a MDI Child that is owned by the MDI Parent, and I just cand find a way to do it. If you coi~uld help me, I would apreciate. Thanks in advance! Thanks a lot rkimble! Now I got it! Well, I don't have any more questions for know,  ...Show All
Visual Studio Express Editions MessageBox return
Hi In C# I write: if ( textBox1.Text == "" ) { MessageBox .Show( "You must enter a name." , "Name Entry Error" , MessageBoxButtons .OK, MessageBoxIcon .Exclamation); } When the uer clicks the OK button, I want the program to return, rather than to continue executing. How to do this Many thx Yuelin hi, you can try something like that //you just use okbutton so the result will be always the same // so change it to something like ok and chancel DialogResult result = MessageBox .Show( "You must enter a name.& ...Show All
Visual J# Rebuild Issue with Object Test Bench
I am able to create an instance of a class in the Object Test Bench. But everytime I attempt to invoke a method (even an empty void method) of the class, the tool asks me to rebuild it, after which it resets the class and does not execute the method. It does this even though I have not modified the code in any way. I try to execute the method right after I create the instance. This seems to happen if you have multiple projects in a solution. Is there a workaround Help! :) Steven Just for your information. I was having the same problem and changing the settings in the optio ...Show All
SQL Server DTC - Transaction context in use by another session
Hi I have a master package that executes a series of sub packages. The master package is run from a SQL Agent job. The packages are reading from and writing to two databases on the same instance of SQL Server 2005. If I set the Execute Package Tasks for the sub packages without any precedence constraints between them and set TransactionOption = Required at the master package level (and supported from there downwards) I get the following errors. The event log shows me: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D00A "Unable to enlist in the transaction.". ...Show All
Visual C++ Problem : D3D-overloads : from MVStudio 2003 to 2005
I have an application running in Studio 2003, which use #define D3D_OVERLOADS. At this moment I have installed Microsoft Visual Studio 2005 but my application doesn't work anymore : Cannot open include file: 'd3d.h' ... Cannot open include file: 'ddraw.h'... Can anyone give my tips on how to solve this problem Thanks Have you install DirectX SDK If you install DX9 SDK, you must include: #include <d3dx9.h> #include <D3d9types.h> and link with #pragma comment(lib, "d3d9.lib") #pragma comment(lib, "d3dx9.lib") For DirectDraw, it now exclude from DirectX, you should D3D function instead. ...Show All
Visual Studio Express Editions How do I evaluate textbox input?
How can I evaluate what has just been pasted into a textbox, so that it may only contain numbers or a decimal point, and if contains other characters or letters, the pasting is undone. I would like to know how this can be done without listing every character and letter. Sorry I forgot to add that the event is: Private Sub txt_box_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txt_box.TextChanged So I can't use e.handled. When I try use undo and then clear undo, I get an overflowstack error. To use IsNumeric function : Private Sub TextBox1_KeyPres ...Show All
SQL Server ForceExecutionResult is ignored by parent
1 Add a Sequence Container. 2 Add a Script Task to the contianer, and set the script to fail, Dts.TaskResult = Dts.Results.Failure 3 Set the ForceExecutionResult on the Script to Success. 4 Execute the package. The container fails, so it detects the Dts.Results.Failure, and ignores ForceExecutionResult. The task itself is Green, so that indicates success. I think this is wrong, as ForceExecutionResult should be observed by both the task and parent container. Not that it should matter, I think, FailParentOnFailure is false. By design (Sep CTP) Ok, so there is a simpler issue here. The sequence container takes no notice of the ForceExecu ...Show All
Visual Basic Unable to install starter kits
Downloaded kits, then try to install but get error of duplicate, etc. If I use the rename .vis to .zip then inside the .zip, there is another .zip but it doesn't say clubstarterkit.zip, just clubsitebv.zip in my case. I dont really have any idea of how to make the starter kit to show up when file, new project, etc. I dont' think they 'install' anywhere. You have to extract it, then go File->Open and browse the the project's .sln or .vbproj file. Dustin. ...Show All
