StartingOverProgramming's Q&A profile
Visual Studio Express Editions Subtracting textboxes
I finally got the addition to work. How can I subtract two textboxes Is it even possible If IsNumeric(Me.textbox1.Text) andAlso IsNumeric(Me.textbox2.Text) then Dim result as Integer =Cdbl(Me.textbox1.Text) - Cdbl(Me.textbox2.Text) MessageBox.SHow(Cstr(Result)) else MessageBox.Show("Both text boxes must contain numeric values, Please Try Again!") end If ...Show All
Software Development for Windows Vista Inter-workflow communication
I have a Registration workflow that needs to initiate a Purchase workflow. The Registration workflow must wait until the Purchase workflow completes (success or failure). Initially I was going to use the InvokeWorkflowActivity to invoke the Purchase workflow from within the Registration workflow. But InvokeWorkflowActivity executes Asynchronously. Is there some mechanism by which the invoked Purchase workflow can notify the Registration workflow that it has completed I did see the custom activity by Jon Flanders that invokes a workflow synchronously, but I would like to find a method that is simpler and does not require a custom activity. Loose coupling of workflows is very important, so the Registration and Purchase workflows must ...Show All
Windows Forms XML to DataGridViewCheckBoxCell Problem
I've got a datagridview bound to a dataset that reads in an XML file that looks like so: <root> <item>False</item> </root> What I need is for this item to show up in the dgv as a datagridviewcheckboxcell instead of simply a textboxcell. I'm getting the text "False" show up in the cell when what I want is a checkbox. Here's what I'm doing in code, but it's not working: dgv.Columns( "item" ).ValueType = System.Type.GetType( "System.Boolean" ) dgv.Columns( "item" ).AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells dgv.Columns( "item" ).SortMode = DataGridViewColumnSortMode.NotSortable dgv.Columns( "item" ).HeaderText = &q ...Show All
Visual C# AppendPrivatePath
Hi, I am using AppDomain.CurrentDomain.AppendPrivatePath("Plugins"); to create a directory for .dll pugins. Works fine. However the C# compiler tells me that it is deprecated and to investigate, AppDomainSetup.PrivateBinPath instead. Code completion does not find PrivateBinPath. Two questions then, Is it a problem to keep using AppendPrivatePath , and Does anyone know how to use PrivateBinPath similar to the way I have used AppendPrivatePath Thanks Jeff Hi Damon, Thanks for the help. I will check out those links. That line of code looks like what I need Jeff ...Show All
SQL Server Partition by attribute not in fact table
Hi, I am trying to partition a measure group in a cube. The problem is that I don't want to split it by the granularity attribute in the fact table. I want to split it by an attribute in the corresponding dimension table which has a one to many relationship to the attribute in question. I can't do it by using any numerical operators on the granularity attribute ( between, less than etc.). Can anybody suggest a solution Dave Hi Dave, One way would be to (in the partition Query Binding) join the fact table to the dimension table(s) with the attribute that you wish to split by. This is the type of query that AS 2000 generates, when a partition slice is defined on a non-leaf member of a schema-optimi ...Show All
Visual Studio Express Editions Visual C++ Express: Examples
Hi, I've written a fair amount of code in C++ Express, but its always been standard ANSI C++. Now that I'm onto Windows stuff I'm stuck and nowhere seems to have decent code I can look crib. Can people please reply with links to good Visual C++ Express specific code examples. I want to write a small single-instance listbox driven application launcher, preferably populating the list box from a directory of shortcuts, so if there are any examples relevant to this I would be grateful. Cheers, Dave Steadman. Hi, Try with this link. There is book Visual.C.plus.plus.2005.Express.Edition.Programming.for.the.Absolute.Beginner. It's good for start. http://www.programmerworld.net/books/visual_c ...Show All
Community Chat How to collect File Usage/Activity Statistics?
Hey I am on a project to centralise several geographically dispersed file servers, and I need to collect some stats on file usage/activity at these sites. I need to know how often documents/files on these servers are opened , and how often documents (new or pre-existing) are saved , so that I can make some estimates of the bandwidth that these site servers will consume if centralised. I have been playing with turning on Auditing for the relevant folders, which logs events to the Security Log. While I think I can collect stats relating to documents being opened using these logs, getting to the stats about documents/files being saved or updated is more problematic as the events thrown in these cases don't appear to offer the sort of da ...Show All
SQL Server is there a TSQL statement to delete file like xp_delete_file for SQL2000
I know there is a command xp_delete_file for SQL 2005 but if I want to delete a file from a 2000 database is there a command to do the same. Didnt' find a good TSQL option but did find a VB script I modified to do the job. The SQL Agent can run VBscript so this works well. For other people with the same problem the script I"m using is. Option Explicit on error resume next Dim oFSO Dim sDirectoryPath Dim oFolder Dim oFileCollection Dim oFile Dim iDaysOld iDaysOld = 2 Set oFSO = CreateObject("Scripting.FileSystemObject") sDirectoryPath = " \\nas01\SQL_Server_Backups\EZPROD01 " set oFolder = oFSO.GetFolder(sDirectoryPath) set oFileCollection = oFolder.Files For each oFile ...Show All
Windows Forms about DataGridView
how can make copy the all column and rows that contain information and paste them into MS Excel file or MS Word file Hi, Try the ClipboardCopyMode property and the GetClipboardContent method. Once you obtain the object from the method, you add it to the clipboard object in the stardard way. Charles ...Show All
Windows Forms Change file ownership of an output file.
My program generate a data file, (e.g .txt) What I want to do is RIGHT AFTER the file is generated, it will 1) change the file ownership to an admin account ( i have the admin username and password) 2) change the permission to readonly for everyone(domain user). This ways, I am sure the data file is safe and the data is correct. Thanks, Terrence Hi Terrence, Ownership means the rights to read, to write, to execute etc. Therefore if someone has the R,W,X rights, he equally has the ownership. Then, you can add the RWX rights to yourself besides letting the admin take the ownership of the file. I got the same error message if I tried an unexisted account. But it worked fine when the right account was used ...Show All
Visual Studio 2008 (Pre-release) How are Inlines drawn?
I've been trying to understand how the FlowDocument renders it's Inline elements, but the documentation doesn't discuss this aspect. Can you tell me how the Inlines (or Blocks also) are rendered and which classes are responsible for it Thanks. ...Show All
Visual Basic comunicate using hyperterminal
Not doing this tommorrow, so dont bang your head to hard hear. Many years ago I started to interface with an old system we use for things(cant go into details) I fiqured out how to communicate with the old unit, it was through a hyper terminal through ms works 3 i believe. I could import the data in raw format, I tried text delimiter and got a bunch of data that was wrong(has got to do with how the data is pooled from the server. Its not consistant from start to finish). Any how, has anyone seen a article about a good way/or know from first hand of dealing with communications that could be deployed through VBE. I know what settings to use to communicate with the server, but I will have to fiqure out how to deal with the data an ...Show All
Visual Basic SQL command to Access database in vb2005
Hopefully someone can shed some light on the problem I’m experiencing. I’m fairly new to vb2005 but I’ve managed to totally confuse myself. Below is an example I’m using to extract data from an access database however when I try to include a "Where/Like" command I’m getting no data returned. The really confusing thing is that if I paste the sql string into access it works fine. The actual sql string I build is:- “Select * from M_Businesses Where Description Like 'B*' Order by Description;” I’ve included code and an access database to recreate. Any comments would be much appreciated. Cheers John Private Sub TextBox1_TextChanged( ByVal sender ...Show All
Software Development for Windows Vista throttling to not overrun MaxSimultaneousWorkflows
If I have a WF host running on a server in which I want to have asynchronous workflow execution, I assume I need to manually control how many instances I start to not overrun the thread pool I didn't see a count property on the runtime, so is the correct way to get this to call GetLoadedWorkflows and check the count on that collection I'm a little concerned this may not accurately represent the total number of threads in use. To put this another way, if I have a message queue being read by a Windows Service host, and each received message invokes a workflow, whats the correct way to optimally keep the Workflow thread pool busy but never overrun it Thank you, great post there I should have found it ...Show All
Visual C++ compiling c++ source code in visual c++
Hi all, i am currently studying c++ and using the cygwin Linux emulator environment. this allows one to compile the header and implementation files together using the makefile. i can compile a single file in the visual c++ command prompt, but how do i compile these files together in visual c++. i should note, they are console applications. if i could use the command line prompt would be useful, but better still would be the VC++ GUI environment. also, how do you get line numbers to show on code windows thanks in advance Marc Walker You also asked this question in the XNA Framework forum. I understand that this is your first question in these forums, so for the future, please don't ask the s ...Show All
