Ralf.R's Q&A profile
Visual Studio Express Editions Sending keys to a game
I tried to send keys using the "SendKeys" function to a game, and its didn't worked. How can I do it I used simple SendKeys. System.Windows.Forms.SendKeys.Send( "{UP}" ) And the game act like I pressed ESC and then up arrow. EDIT: I tried it on Counter-Strike. ...Show All
Visual Basic Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta
This is so aggravating because I'm sure it's a simple thing! Using the new Visual Basic 2005 Express Edition Beta. Created a project, form, controls, etc. Worked great. Love it, compiled perfectly. Saved everything, closed the program, went to bed. Woke up, opened the project, but now CAN NOT open the form (form1.vb) in Designer mode!! I can open the code, it's all there, exactly as I left it, but cannot get back to the designer mode to (easily) add more controls to it! F7 just opens the code, right-click just gives me code option, not designer option. This is amazingly fr ...Show All
Software Development for Windows Vista Create a code expression with RuleConditionDialog
Hello, I'm trying to crate my own code expression with CodeConditionDialog. The costructor of CodeConditionDialog work fine if I have set a correct code expression, but I cannot start from a new (empty) code expression. If I run the following code: Workflow1 wf = new Workflow1(); Activity activity = wf.GetActivityByName("ifElseBranchActivity1"); RuleDefinitions defs = new RuleDefinitions(); RuleExpressionCondition condition = new RuleExpressionCondition("ConditionName"); condition.Expression = new CodeBinaryOperatorExpression(); RuleConditionDialog dlg = new RuleConditionDialog(activity, condition.Expressio ...Show All
Visual Studio Team System How do I delte work items?
Is there a way to DELETE work items Say the pre-defined template for Agile puts in some items which I don't agree wish - and instead wish to start 'a fresh'. How do I go about deleting work items So that they would not pollute reports as being closed/completed - even though I did that - just to get rid of them! Thank you. I have responded about deleting work item in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=327599&SiteID=1 . Please take a look and let me know if you need any more information or help in deleting work items. -Mohammad ...Show All
Visual Studio MSBuild file for .Net 1.0, 1.1, 2.0, Compact Framework 1.0 & 2.0 and Mono
Greetings, Intro: I'm currently working in a library that has to target both .Net 2.0 and .Net Compact Framework 2.0. My initial approach was to have two projects for each assembly. The source code would be all the same, with #if's testing for the compact or the full framework. One of the projects would have all the files, and the other all the files from the first linked. As the number of source files and assemblies growed, this turned into problematic. At some time, I also wanted to test if my code worked in mono, even if it wasn't required. So I thought of using msbuild to customize my build. I started googling, and found msbuild files fr ...Show All
.NET Development Service OnStart ends - "now work to do" message
I'm getting a message that my service ended because it had no work to do. Well, it did have work to do because it has a FileSystemWatcher object monitoring a directory. That worked until I added an TCPListener with delegated callback when a TCPClient connects: Protected Overrides Sub OnStart( ByVal args() As String ) Dim dt As DateTime = DateTime.Now Dim sDir As String Dim sPort As String With fsw .Path = sDir .Filter = "*.*" . ...Show All
Visual Studio Express Editions Computernames
Hi How can i see the names of all the computers in a network, which are connected to my computer or which my computer is connected to. Regards Thomas do you want the Shell browser: or the Directory Object picker : ...Show All
Visual Studio Team System XML report doesnot show excluded and absent messages.
Hi all, I have an FxCop project with certain active, excluded and absent messages but while I save the report, the excluded and absent messages are not saved in the XML. Only active message are saved. The option in project default for excluded and absent messages are checked still the report doesnot contain excluded and active messages. I want all the messages in the report. Please anybody help me in solving the problem.Thanks in advance. Although the Project default's show that excluded and absent messages are checked, can you check the actual Project's option (Project -> Options) Regards David ...Show All
Windows Forms How to assign a shortcut key to a ToolStrip Button?
Does anyone know how do I set shortcut keys to buttons on a ToolStrip I need that when the user press "Ctrl+S" on the keyboard the "Save" button gets pressed. I expected to be able to asign a shortcut key to the button, but there is no shortcut key property! Does anyone know why is this The best thing I could find is that toolstrip buttons (at least when I copied and pasted the example from .Net 2 SDK Documentation) was that if you insert a & in the Text property of the button you can get a nice Alt+whatever as per normal button accelerator behavior. But for toolstrip arbitrary hotkey I did not detect anything so far.   ...Show All
Visual Studio DTE.ExecuteCommand and Action.AddFolder
Hello to the VS Extensibility Team: I would like to automate the VS 2003 Setup and Deployment Project with a Macro that first places the IDE's SolutionExplorer and FileSystem Windows into a known state: ' This works properly in the Macro IDE under VS2003: DTE.ExecuteCommand("View.SolutionExplorer") DTE.ExecuteCommand("View.FileSystem") DTE.ExecuteCommand("Window.CloseAllDocuments") DTE.ExecuteCommand("View.FileSystem") and then calls the "Action.AddFolder" command to create a new dataFolder underneath the FileSystem's 'Application Fol ...Show All
Windows Forms Searching files in directories
hi.. how do i search files in a directory using file attributes like modified date,file size,create date time using .Net. Regards dhn Here is a self-explaining example: DirectoryInfo directory = new DirectoryInfo("c:\mydirectory"); foreach ( FileInfo file in directory.GetFiles() ) { if ( file.CreationTime.Date.Equals( DateTime.Now.Date ) { // Found a file that was created today. } } ...Show All
Visual Studio General Crystal Question
Hi, I'm new to Crystal Reports (CR) and have a few general questions. 1. I note that CR is integrated into Visual Studio. If I build a C# project to distribute to my users, can I include CR in the package 2. Are there any licence issue with the above scenario 3. My users have certain pre-built queries and reports that they run, but they can also create their own queries and reports which they then share almongst the team. MS Access has been used to achieve this in the past. Is CR capable of similar customization from a C# project I'm thinking here with picking out tables and fields etc. much like the Access query designer. T ...Show All
Visual C# how to display Expand Collapse rows in datagridview 2.0
Hello I am using .net 2.0 In my windows application datagridview. I want to display the data in master and child relation ship. i.e displaying in the form of Expand & Collase mode. This is straight forward in .NET 1.1 winforms DataGrid. anybody anysounds plz help how to do this usng VS 2005. hi, i saw this question b4 , and the anwer was its not supported in datagridview just the datagrid, the good news is that you still can add datagrid to your form programmticly public Form1() { InitializeComponent(); DataGrid dg = new DataGrid (); dg.Location = new Point ( 10 , 10 ); this .Controls.Add(dg); ...Show All
SQL Server Multiple Records Subquery..
Hi everybody, I like to display the records for AccountNo = 221 from table records shown below, how would I do this I am display this results in a crystal report. What is sql statement to do this Thanks. Sql Statement: (this statement is not allowed) Select AccountNo, RecordID, (Select Description From Table1 Where RecordID In (Select RecordID From Table2 Where Date < '04/05/2006')) As Description, Amount From Table2 Where Date < '04/05/2006' Desired Result: AccountNo RecordID Description Amount 221 20 Whew 290.00 221 21 Hi There Good Morning 728.00 ...Show All
Visual Studio Express Editions DataAdapter Update Error :Syntax error in INSERT INTO statement
I am trying to add a record to an Access DB Table, everytime I try to update the DataAdapter with the updated DataSet I receive the Error: Syntax error in INSERT INTO statement. Here is the code: Dim da As OleDb.OleDbDataAdapter Dim ds As New DataSet Dim con As New OleDb.OleDbConnection Dim sSQL As String con.ConnectionString = "PROVIDER=Microsoft.jet.OLEDB.4.0;Data Source=Alarms.mdb" con.Open() sSQL = "SELECT Message FROM [AlarmsList]" da = New OleDb.OleDbDataAdapter(sSQL, con) da.Fill( ds, "AlarmList" ) Dim dsNR As DataRow Dim cb ...Show All
