mrbelk's Q&A profile
Visual Basic Sending Key to an other application
Hi all, I need to build a small application that sends predefined key stroke to an other application, lets say for example, Microsoft Words. I know that might be simple but I never had to do that so does anyone has any idea what function I need to use thanks for helping. What I exactly need to do is to get the Adobe Acrobat Window, it is already open, And send a spacebar stroke and a "Enter" stroke. Is that possible with the information you already gave me If you can give me a code example, I would appreciate it a lot, I'm not use to pointers. thanks a lot ...Show All
SQL Server Passing multi value parameters to CreateSubscription
Hi folks, I am trying to create a SSRS subscription from an asp.net app. I collect the parameter values from the client and make the arrangements to send them to the CreateSubscription method. When the report has single value parameters, my code works perfectly. But if there is a report param with multiple values, I get the error System.Web.Services.Protocols.SoapException: Default value or value provided for the report parameter '<paramName>' is not a valid value My parameter is string type and supports multiple values. I am passing the following string as its Value: AVA,BEL,CAL,CAP,CCA,CEL,COC,COM,ECE,EDT,EMC,EMT,EPB,EPC,EPM,EPO,EPS,ETB,MET where each element separated by comma is a valid param value. Here’s t ...Show All
Visual Studio 2008 (Pre-release) XMAL to C# question (2)
Hi, Again i don't know how to translate XAML to C#... :\ so i have this XAML code: <Grid x:Name="MyGrid" > <Viewport3D Focusable="true" Name="myViewport3D" ClipToBounds="true"> <ModelVisual3D> .... as you can see this is a Grid that contain Viewport3D that contain ModelVisual3D. how i write it in C# you dont need to specify < Transform3DGroup.Children > the content in the Transform3DGroup will be added as children ...Show All
SharePoint Products and Technologies Getting the UDF Directory Pathname
In my Excel Services UDF, is there a way to determine what the pathname of the directory the UDF dll was loaded from I need some more help as this is new to me. I'm using VB.NET and need the path in my New() method of my UDFClass(). How do I set an Assembly variable to the instance of the assembly And what do I pass as the type parameter (required) to GetAssembly() Thanks! ...Show All
Software Development for Windows Vista ActivityCondition without "Code Condition"
Hello, everybody. I've got a CustomActivity , which has Property of type ActivityCondition. For me it is necessary to edit just Declarative Rule Condition in my designer. How can I remove possibility of editing and selecting Code Condition TIA, Nikolay It seems to be working now, but it you still have a problem with that link try going to http://blogs.msdn.com/tomlake/ . ...Show All
.NET Development Euro symbol
I'm trying to pick up the following characters a€ I know the 2nd is the euro sign. Is there ANYTHING I can do to be able to recognize them, whether its through, unicode or ascii or something I am using vb.net 2003. I'm looking to just be able to recognize them in a text format. IF YOU HAVE ANY IDEAS PLEASE LEAVE A POST!!!!!!! Thanks in advance! The problem is that wordpad will show these characters but vb.net 2003 will not read them in using the streamreader. it displays them as unknown characters but I've even tried searching for the unknown characters but to no avail. ...Show All
Visual Studio Express Editions noob question: what do windows applications use as a db?
sorry but I have this totally noob question. I'm completely new at writing windows applications, and want to learn. I have a book (sams learn in 24hours), and it briefly goes over ADO. My question is, besides writing to a flat txt file, what do windows applications use as a database Obviously your standard XP desktop doesn't have a db server, so how do programs save information I'm basically creating a database, but want it to be an installable program, not an MS Access db. But I'm having trouble figuring out what to do in regards to a DB. I see you can use localized db's inside VB, but I keep reading that the user would still need sqlserver express or is that wrong spotty - from the impression ...Show All
Visual Studio Team System Code Analysis on project for Windows CE
Hi I'am trying to use the VSTS Code Analysis feature on native C++-code for the Windows CE-platform. I have found out the following facts: - /analyze is only available in Enterprise (team development) versions for x86 compilers.” and there is no configuration node in the project configuration tree. The option to start it however is still available in the Build->Project Only Menue, so I still assume that it is supposed to work. - When using this menue-entry to start it, at first the problem with the missing preprocessor definitions pops up and can be solved via workaround as described in( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=159315&SiteID=1 ) - Having fixed this, it seems however that none of the warnings ...Show All
Windows Forms Set 'visible' property to 'false' for all the opened forms
Hello, I want to pass over all the opened forms of my application and set the visible property to false, if the form was shown. How can I do that Thanks. You can use MdiChildren property of your main MDI form and loop every item in that array of Form items and set their Visible property to false. This is a way when you have MDI form and you can get all open child forms. If you don't have MDI parent - Mdi children's application, then you should create that array by yourself and then loop that array. ...Show All
Visual Studio 2008 (Pre-release) June CTP Exception reading GroupBox Template
If I do this: StringBuilder sb = new StringBuilder (); using ( TextWriter writer = new StringWriter (sb)) { GroupBox aGroupBox = new GroupBox (); System.Windows.Markup. XamlWriter .Save(aGroupBox.Template, writer); string test = sb.ToString(); } My app bombs a short time later. The Stack shows it crashed at BamlRecordReader.ReadRecord. This also crashes EID June CTP. Any ideas for extracting templates I tried reading the Template out of a GroupBox that was already in a control. I got an exception relating to BorderGapMaskConverter however I did get a template out, but the template was wrong. I found a style in the SDK ...Show All
Audio and Video Development Windows window project
While experimenting I made this windows like window you can see a picture of it on my blog, it would be great if other people could join in and make things like the menubar, alert window, etc. Best to keep it all markup without using pictures makes it easier to share. < xml version="1.0" > <!-- http://techgen.spaces.live.com --> <root xml:lang="en" xmlns=" http://www.dvdforum.org/2005/ihd " xmlns:style=" http://www.dvdforum.org/2005/ihd#style " xmlns:state=" http://www.dvdforum.org/2005/ihd#state " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " > <head> <styling> <style select="id('window')" style:backgroundCo ...Show All
Visual Studio Tools for Office Programmatically creating a new outlook email message containing tables
I am writing an application using VB.NET in VS 2003 that needs to programmatically create a new email message in Outlook 2003. The email needs to include tables containing data from a database. How do I create the body of the email I found information about creating Word documents which would work perfectly for my needs if I could make it work in Outlook. http://support.microsoft.com/kb/316383 Does anyone know how I could get this to work Thank you ...Show All
Visual Studio Express Editions ADO to ADO.NET
Hi, i migrate a VB6 Programm to VB2005 Express and i dont understand some parts of ADO.NET! In ADO i often used the following code : SQL = "Select * from tbCustomer where Key = " + CStr(strKey) Set rs = New ADODB.Recordset rs.Open SQL, glbDBConn, adOpenDynamic, adLockOptimistic If rs.EOF Then rs.AddNew rs("SomeFieldsForAddNew") = .... ..... Else rs("SomeFieldsForUpdate") = .... ..... End If rs.Update rs.Close Set rs = Nothing Has onyone a codesample how i can do this in ADO.NET Thanks for your help. Markus Hi Gudel, i know... sorry!! But the good thing in the old ADO way was that i can check directly if a Record exists or not. If not i can make a AddNew ...Show All
Windows Forms How do I get the number of lines in a text file without already knowing how many there are or its contents?
Visual C# 2005 The topic title is pretty self explanatory. I want to create a method that will read a text file and return the number of lines in the text file. I need a method that can be implemented in plain code and inside its own function. I am combining this with another method I have to get a list of commands, which should be easier than using a dictionary array/collection. Any help is appreciated. Thanks. If its a standard text file, a brute force but easy way would be to use a StreamReader and the ReadLine method and count Copied (then modified) from VS2003 help: (should be same in 2005 I would think) int lineCount; using (StreamReader sr = new StreamReader("TestFile.txt")) { String l ...Show All
Visual Studio 2008 (Pre-release) Relative bindings for nested UserControls
Hi all, Apologies if this is a stupid question, but I've trawled the forums and net for an answer, and just can't find what I'm looking for. I've created a XAML UserControl in another library that has binding defined for its element, however the DataContext for that control is specified in parent XAML form that is hosting the control. I'm using a XMLDataProvider as a test harness and I'm specifying the DataContext in the hosting XAML page (lets call this Form1) and then I'm creating an instance of the UserControl in Form1, then wanting to shift the DataContext to a contained element in the binding XPath. XML Data: < Items > < Item > < Number > 10001A </ Number > < BillTo > < Contac ...Show All
