vikionline's Q&A profile
Software Development for Windows Vista binding dynamicproperties through xaml only
Hi, I saw in one of of forum, we can bind dynamic properties to other actities like this: activitybind1.Name = "dynamicPropertiesActivity"; // The name of the source activity (a DynamicPropertiesActivity) activitybind1.Path = "ParameterBindings[\"DynamicInt\"].Value"; //This is the trick: access the ParameterBindings property this.someFixedActivity1.Name = "someFixedActivity1"; this.someFixedActivity1.SetBinding(DynamicPropertyActivityLibrary.SomeFixedActivity.IntProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1))); I want to do this binding through XAML only workflows. I tried like this: SomeFixedActivity1 x:Name="someFixedActivity1" Integer="{ActivityBind Name=dynamicPropertiesActivity1, Path=ParameterBin ...Show All
Windows Forms Can not change properties at design-time from controls in an Inherited Form
Hi guys, I have a Form that inherited from another Form, the base Form have a DataGridView and BindingNavigator , all the modifier for the Controls from the base Form is Protected, but the problem is at design time all the Properties for the DataGridView and BindingNavigator from the base Form can not changed directly from the child Form, any common Controls doesn't have the problem like the two. My question is why the both Controls can not changed directly from the child Form Beside the DataGridView and BindingNavigator is still another Controls that behaves like the two Thanks in advance. ...Show All
Windows Forms Create a single instance of a Dataset to share across forms
Paul Ballard MVP answered a posting on how to share Dataset across forms. He gave a great and simple solution but I wanted to extend it. When using the GUI it tries to create a new instance of the dataset. So the first thing I want is it to load the instance into the shared variable so any calls to currentDS would use the current instance. I did this by modifing the constructor call. The next issue I ran into (this is the one I’m having problems with) is when the auto generated code tries to create a new DS. Example: I create a new form and I drag a datasource Datagridview to the new form. The code creates a new instance. Any ideas how to modify the typed dataset to check for any instances and if found use them inst ...Show All
Visual Studio Express Editions Program opens, then closes right away
I have writen this code: # include <iostream> using namespace std; int main () { cout << "Hello World" ; return 0; } then compiled it, but when I open the executable, it opens then closes right away, and I was told that it's running to fast, is there any line of code that will make a set pause np ;) remeber, any "return <number>;" (replace <number> with any number) in "int main()" will end the program. if you dont want to display anything at the end do: #include <iostream> #include <windows.h> using namespace std; int main() { cout &l ...Show All
Community Chat Kyro KidSafe Browser (beta)
Hello all, I am making a "KidSafe" browser for kids. Please download my program and post any noticed bugs,etc. It takes only minutes to set up. I am 10 years old, so who can make a browser for kids better than a kid Progress: Final will be started in January Thanks you everyone for your contributions and encouragement. *Has 3 tabs for browsing. *Has a "My Websites" button with up to ten of your programmed websites in it. Beta Features: *Has 3 tabs for browsing. *Has a "My Websites" button with up to ten of your programmed websites in it. *Talking Help guide *A new install program Updates in final version: *Button text replaced with graphics. *A game room with games, and fun KidSafe software (suc ...Show All
Windows Live Developer Forums Problems with custom tiles
I am adding a custom tile using a static map image file on my pc and loading with AddTileSource & AddLayer. The file loads but not only is it not scaled or positioned correctly, but it also gets tiled across the whole background VE image The image is correctly georeferenced in the bounds clause and is based in the northern hemisphere - in the UK. I've tried bmp, png and gif formats - but same result. Is there a minimum bit map image size or lat/long precision issue that might cause this OK, thanks for the responses. No I was not using Mapcruncher - I've misinterpreted how the tiling works. I'll do some more homework! ...Show All
.NET Development execute a command programmatically
Hello all I need to execute a command (that works in command line) from my application. but I dont know how. for example I want to use Caspol.exe to change the security policy of the computer inside the application. I know how I should use caspol.exe from command prompt but I dont know how to use it inside my application. I use C# under .net 2005 I am looking forward your responses thank you in advance To run any application, file you can use this: System.Diagnostics.Process.Start(completePathHere); // It'll run whatever path is supplied in the argument... You can also provide arguments to exe: System.Diagnostics.Process.Start(completePathHere, someArgumentHere); Please See Pr ...Show All
Software Development for Windows Vista How do I stop execution of one branch of a workflow without effecting another?
Hiya all I need to write a large workflow containing multiple parallel braches and each branch will contain activities that perform actions and then set their own result to true or false. Just prior to completion of each activity I want to test the activity's result variable and if it is false, move no further down that branch. All other parallel activities should continue however. Can anyone advise me on the best method to achieve this Do I need to programatically remove further actions Thanks Michelle x Isn't it much simpler (and easier to manage) if you implement those parallel branches as different workflows ...Show All
SQL Server How to restrict a custom component to be used only in the event handler tab?
Hi, One of my plan is to develop a custom task compoent to log the errors into the destination provided as paramter to the component. Now how can I restrict the use of this component in the event handler tab only. can something like this be done Also extending this a little further, is the below thing possible The custom component should expose custom properties which should allow the user to add the destinations for logging the errors. It will be a predefined list (window event log, text file, sql table etc) and the user will be allowed to check what all he/she wants. Then if the user has selected sql table then ask for the oledb connection and the table name, if text file is selected the ask for the path of the file. Apology ...Show All
.NET Development How to capture the domain name of a requesting website in .net code-behind
How do I capture the domain name of a requesting website using vb.net code behind Example, WebsiteA code-behind redirects a response to websiteB. In websiteB VB codebehind , is there a way to capture the domain name of websiteA, e.g. www.websiteA Is there a http class that can provide this property thanks.... If a user is redirected from another site, you can get the redirector from the HTTP_Referer header Request.ServerVariables["HTTP_REFERER"] ...Show All
.NET Development Simple Update from a VS 2005 vb project to an mdb?
Hi all, New to Visual Studio, and only have experience with asp and access. The problem I have is this. I can call nearly anything out of my database that I want, but for the life of me, I can't update even a single field. Now the worst part is this. The little program I'm working on to do the data access is just a simple console app, which passes the data on to clients. All is well except, how do I code an update to a field. For example, to update the field Email in the Clients table with a variable passed through dimmed as a simple string This is an example of the code I am using for my general select querries: Dim conn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Delirium.mdb" Dim cmd A ...Show All
SQL Server filegroup auto-growth - know when it happens?
Hey guys, I'm running SQLServer 2000. I am in the process of looking over our current filegroups and providing reports based on file size increases. One thing I'd like to know is when (date and time) a filegroup last "auto-grew". Is there a way to know when this occurs thanks, Jason Derek, Thanks for the info. I should have re-worded my question I think: Is there a way to know when the date/time a filegroup last auto-resized Let's say it auto-resized last friday, is this timestamp stored somewhere Profiler would tell me only if I was running it at the time of the resize. I'm trying to correlate the time of an error with the last time a large filegroup resized. thanks Jaso ...Show All
Microsoft ISV Community Center Forums Help With using XML Index file in Excel VBA...
Hi Ive read through the MSDN reference library for help on XML in VBA - although, I cant find any answers. Maybe you guys can help me out. I have an XML Index file. This file specifies a userId, and the path where that users file can be found. As Below... name subject_id output/2000027/02934289 850912AB05108268B3A3F5B4340CC1F9 output/1999270/06491337 6A49B2D34F376C2E257FBA9F5979C556 output/2000024/02931089 AA6194970A98F3C5542BF226A627051D So, for user AA619... the file path is (output/200024/02931089) The index file is very large. How do I go about: 1. Opening XML File 2. Go through each entry 3. Set directory to that entry, and open the fi ...Show All
Visual C# How to return properly from an eventhandler (or do something approximating the same thing)
Hi! In my code, I need to return from an eventhandler function (function for handling the click of a button), and I can't figure out how. I think this is impossible. I'm not sure. But either way I can't figure out how to redesign my code to work around that problem if that is indeed an issue. Here's the code in question: [code] private void BtnConnect_Click(object sender, EventArgs e) { Connect(); return; } private void Connect() { Socket = new NetFXSocket(false, "82.116.68.153", 1345); UserState = new StateObject(0, Socket.Listener, 1024); if (Socket.Connected == true) { LstConnectInfo.Items.Add("Successfully connected to login server!"); } else ...Show All
Smart Device Development .net compact framework won't install on my mobile 2003 arm pocket pc.
Error says it isn't compatible with my device. I need this in order to run my most useful software on the pocket pc. The latest revision of my software (myOffice.net) requires the .net compact framework. Any clues why this isn't working More info: toshiba 350, intel PXA255. Thanks. Please, someone respond. Hi, I just tried to install version 1.0 and that installed, however, when I try to install the software that needs the .net framework, latest version I assume, the installer for the specific software won't continue unless the version 2.0 installs. If that doesn't install, then the installer aborts the entire install process. Bummer. ...Show All
