joslat's Q&A profile
Software Development for Windows Vista Custom loop with multiple activities
I want to implement a custom loop that has multiple activities occur during each loop. I have looked at the for each loop at http://wf.netfx3.com/, but although this solution works with one item in the loop, I am having problems detecting when all items in the loop are done. Currently, I end up closing my activity too early when child activities are still executing. Any suggestions Amanda When I add just a sequence, when I add my loop activity to the designer it locks the sequence so that items cannot be added. The loop still has CanInsertActivities returning true, and if the sequence is not there I can insert activities, but not when the sequence is there. Any Suggestions Amanda ...Show All
Microsoft ISV Community Center Forums Table or Array in the header of an excel sheet
Hi everyone! I'm trying to add a table or something like this in the header (right part) of an excel sheet in order to align datas ,there are 2 columns with 3 lines. I'd like to have something like that: Name Mr XXX Function Blah Blah Age 24 When I add these as a string, I get something like : Name Mr XXX Function Blah Blah Age 24 Does someone know if it's possible and if it is, how Regards, Christophe. ...Show All
Visual Basic Updating Dataset
Hello. A question please. I know that a control (for example a textbox) we can bind it (binding) with a column of a table of a dataset. If We change data of a row, it reflects on the control on the form. Then, my question is: Can we do inside it out is there a way to bind the value of a control with a column of a table of dataset and changing the value of a control, the column will change automatically ex: if the user modifies a data of a control that it will make the same automatically on the table. Thanks... Data binding is bi-directional. If you change the value in a control it will reflect that value in the database. If the value is updating in the database the next time that that control is bound ...Show All
Visual Basic FileCopy Program
I am currently trying to make a program that will allow a user to select a file orgin. Then the user selects where the want the file destination. Then they can click a button that will show the file origin and destination on the main form and show a progress bar at the same time. Thanks, QWERTYtech you can use the System.IO.File.Copy class to copy the file from source to destination. In regards to the file copy progress, there have been a few topics about this, here is one that was easy to find via the search http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=833209&SiteID=1 http://msdn2.microsoft.com/en-us/library/c6cfw35a(VS.80).aspx ...Show All
Visual Studio Express Editions tab control
Hi I am using a tab control, a status strip and a tool strip. the tool strip is docked at the tp and the status strip at the bottom but when i try and dock the tab control to fill the form it is hiddne behind th other two controls. How can i solve this problem Hi, this is a Z-order thing - you have to bring the tab control to the front. Either: a] right click status bar and choose Send to Back. repeat the same for tool strip. or b] select tab control and bring it to front (from VS menu: Format | Order | Bring to Front). [Right-click selecting the tab control might be a bit difficult because it contains tab pages so when you click on it you actually select tab page, not the tab control... so make sure the proper ...Show All
Visual Basic Help - How can I runa VB program without runtimes installed
Hi, I'm new here and I was wondering, is it possible for me to run a VB 2005 program using the Framework 2.0 on a computer without the runtime I want to do this because for a project I've decided to make a program but the computer I wnat to run it on and show teh class does not have the necessary runtimes installed. If I'm running it off a USB Flash Drive is it possible for me to do something such as install the runtimes to my USB Flash Drive and have the program use the files from the Flash Drive As you know, this is a school so I'm not allowed to install any software and this is the reason I ask this question. Thanks. Ohh man, Is there anyway of converting visual basic code to something like C++ The prob ...Show All
Visual Studio 2008 (Pre-release) Validation and XAML
I have a page with some textboxes on which participate in 2-way binding to an object. Some of the text-boxes are bound to integers and I have a ExceptionValidationRule to catch when the input is invalid. I want to disable a button when exceptions have occurred and am looking for a neat way to do this. Originally I envisaged having some sort of triggers on the button which would spot the exceptions and update it's style. I had problems around getting the static Validation object to play with Xaml though. So I decided to hook in an event handler to the .cs file using Validation.AddErrorHandler. This works in that it raises an event when validation fails allowing me to grey out my button, but there is no corresponding ValidationSuccessful eve ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texture2D::FromFile formats
documentation says .... Creates a texture resource from a file.Creates a texture resource from a file. which is nice, but how about a list of supported image formats. How will people know if there textures they design will load Shouldn't the documentation provide this information for those intrested i found the answer is the types enumerated by the ImageFileFormat enumeration. This should probobly be noted somewhere in the docs of the FromFile method ...Show All
Visual Studio Express Editions datagridview header change
I am trying to add my own header names and have been very unsuccessful at doing this can someone point the way Thanks. Imports System.Data Imports System.Data.OleDb Public Class DatabaseClass Private theConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mail.mdb;User Id=admin;Password=;" Private theDataSet As New DataSet() Private theDataAdapter As New OleDbDataAdapter() Private theConnection As New OleDbConnection(theConnectionString) 'create our connection object Private Sub DoGetData() Dim theCommand As New OleDbCommand( "SELECT * FROM importdata" ) Dim theDataSet As New DataSet() theCommand.Connection = ...Show All
SQL Server Related Tables in Model Files
I want to create a model file that relates two tables. However, these tables do not have a foreign key relationship in the database. Is there any way to do this I'm hoping to programmatically generate the XML for the smdl file. Here's the XML that is generated when there is a foreign key: < Role ID =" G958db767-3d65-4445-9ccb-5f76c41720fb "> < Name > Linked Problem </ Name > < RelatedRoleID > Gf5496c9e-13b8-4c66-965d-c3a3c9a78cc8 </ RelatedRoleID > < Cardinality > OptionalOne </ Cardinality > < Relation Name =" dbo_Incident_FK_Incident_Problem " RelationEnd =" Target " /> </ Role > Is there any way to change this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. texture2d problem...?
Hi All, i'm new to XNA programming (and directx programming altogether). having a lot of fun with XNA and most things are pretty straight forward for a simpleton like me. here's a problem i'm having that i'm hoping someone can shed some light on. I'm using a lot of photos in my application (a slideshow!). I'm testing with 1 Texture2D and every few seconds loading another image into it using Texture2D.fromFile, etc... Here's what i'm experiencing - if I don't call dispose() on the texture before each new fromfile, it's a memory leak... this makes sense. the problem is that the texture seems to get confused on it's size. I'm using a mix of different sized non-square images. it's like the texture only reads the first texture size called and t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Magenta sprite color comes up transparent?
This seems to be a new behavior in Beta 2, is it a feature or a bug When I draw a sprite with SpriteBlendMode .AlphaBlend that contans the color (255, 0, 255) that color shows up as transparent. Is this to allow an easier way to create transparent regions in your sprites Bill You are kidding me There is a hard coded color key in the texture processor. What happens when people download and use precreated content. What happens when a artist has nice gradient in a texture and one of the intermediate colors happens to be Magenta We have to go back and replace all the 255,0,255 colors with another similar one. What if we get a bunch of sprites with a different color key - DX and MDX have always allowed you to specify i ...Show All
Visual Studio Express Editions why doesn't this code work?
i dont know why, but this code doesn't work. Imports System.Runtime.InteropServices Public Class Form1 Dim MOUSEEVENTF_LEFTDOWN As UInt32 = &H2 Dim MOUSEEVENTF_LEFTUP As UInt32 = &H4 Dim MOUSEEVENTF_RIGHTDOWN As UInt32 = &H8 Dim MOUSEEVENTF_RIGHTUP As UInt32 = &H10 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As Integer = 5 Dim y As Integer = 5 Dim clsNew As New Class1 Class1.MouseClick1() End Sub End Class Public Class Class1 Declare Auto Function mouse_event Lib "user32.dll" ( ByVal dwflags As Integer , ByVal dx As ...Show All
Visual Basic add jpgs
i have jpegs as well as .dat files in a folder called 'data' and i want to include all these in my project which i converted to vb 2005 from vb6, however, i cannot find how to publish them using the wizard; i.e i cant find any options to include these files! (i'm very new to vb.net - only been using it a few days!) From the Project menu...Add Existing Items...All Files... And then select the files you would like to add to the project...You can also create a Subfolder to place all of these files... HTH ...Show All
.NET Development Removing tags when generating XML
I am writing this post in the c# forum also as I don't know which one it is more appropriate in. I am writing code in c# that serialize a group of classes nested with lists of other classes and I get the following xml code < xml version="1.0" encoding="utf-8" > <kml xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema "> <Doc> <Document> <name>Smily.kml</name> <open>1</open> <folder> <Folder> <name>Matts Folder</name> <open>1</open> <place> <Placemark> <name>Symantec Building</name> <desc ...Show All
