DotanP's Q&A profile
Community Chat Aspect oriented programming
AOP ….Aspect oriented programming….next generation of OOP in some senses, for such environment where OOP doesn’t fits en.wikipedia.org/wiki/Aspect-oriented_programming ...Show All
Visual Studio Express Editions Problem with C# Express
Hi, I recently installed Microsoft Visual C# 2005 Express. I've created a web application with C# in Visual Studio .NET, but now, I just want to open project but I can't because the application say that I don't have the Web Component for this project. What can I do My first priority is to edit and compile any file *.cs Thanks Visual C# 2005 express does not support web projects. You will need Visual Web Developer 2005 express for that. http://msdn.microsoft.com/vstudio/express/vwd/ ...Show All
Visual C# Variable scope ina foreach loop
Hi, I get a compiler error when I declare a variable of the same name as the one declared in a foreach loop as the code snippet below shows: foreach ( FileInfo file in sourceDir.GetFiles()) { ...} FileInfo file = testDir.GetFiles()[0]; The error is: "A local variable named 'file' cannot be declared in this scope because it would give a different meaning to 'file', which is already used in a 'child' scope to denote something else" I dont see why this is a problem if the two fiel variables are in different scopes or am I wrong in that assumption If not, then why do I alse get a compiler error if I try to reuse the variable by changing the second line to: file = testDir.GetFiles()[0]; Thanks ...Show All
Smart Device Development Problems with Bluetooth Connection
Hello! I have a smartphone Qtek 8300 and Bluetooth pulse oximeter Nonin 4100 ( http://nonin.com/products/oem/4100.asp ). I'm a novice in Communication programming. My task is to write application that connects to this pulse oximeter and recieves some data. I have specifications of Nonin 4100 ( http://www.nonin.com/documents/4100%20Specifications.pdf ). As I read in this document I must use SerialPort for working with this pulse oximeter. But some people advice me to use WinSock but I don't know C++. I have some code on C++ and I don't know what can I do... :( BYTE buf[125]; if( (buf[0]!=1)||(buf[5]!=1)||(buf [10]!=1)||(buf[110]!=1)||(buf [115]!=1)||(buf[120]!=1) ) { // error return; } TUint16 HR = buf[3]; TU ...Show All
Windows Forms Datagrid Cell Keypress
VS 2005 windows unbound datagridview I want to ensure that only numeric values are entered into a datagridview cell. Is there anywhere to put a keypress event in a cell ahmedilyas wrote: there is a way (perhaps others too) implement a CellLeave event. Then get the value of this cell: string theValueEntered = this.theDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; It is weird that I get nothing when trying to get the value of the cell in the CellLeave event. It can alway be accomplished by the regular expression. e.g. private void cell_endedit( object sender, DataGridViewCellEventArgs e) { Regex re = new Regex(@"^[0-9]*$"); string st = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Missile Command - XNA Remake
Max Damage Studios is now making its release of its Missile Command XNA remake public. You can go directly to our downloads page to grab it. This project was mostly a proof of concept written in a very short, around 10 hours, amount of development time. We made use of a few of the DirectX SDK Tools such as XAct to get the final result. All audio work was done in our studio. There are only 11 levels in version 1.0 currently, but perhaps someday we shall extend that and produce another version. But we are moving on to our next project for now. I can't edit the above post because the forum is being strange...but here's the correct linkage for the sound pack: Max Damage Studios - Audio Page ...Show All
Windows Forms Visual Inheritance problem with FlowLayoutPanel Control
Hi, I've a base Form with a FlowLayoutPanel which contains some controls.I need to inherit this form and add some more controls to the FlowLayoutPanel in the inherited Form. But i'm unable to edit any of the properties of the FlowLayoutPanel in the inerited form.I'm alos unable to add any more controls to the FlowLayoutPanel.I've set the modifiers as Protected in the base Form. Is it not possible to alter the FlowLayoutPanle in the dervied Form Thanks, Suresh. Not able to change any of the properties(all properties are disabled) and not able to add any more controls in it. Thanks, Suresh. ...Show All
Visual Studio Team System Urgent-Recording Problems
Hi, I have recorded an webtest which passes some form values for login information in an encrypted form.When I rerun the same script and change the value for the login details due to encryption the script fails.Is there a way in team system in which we can pass the values without encrypting or is this due to the login written in the asp.net code.Please help What exactly is being encrypted The login info You can change the parameters so that they are not encrypted, but if your application is expecting to be encrypted, it may not accept the parameters if they are not encrypted. ...Show All
Gadgets IFrame Sample
Thanks tod ToddOs, my module has now been submitted and it's working ... The 10 downloads I got so far don't really compare well to the 15,000 hits I get from G**gle per day, but what the hell, at least I'm learning :) Anyway, since the script appears to work well, I think it could potentially be useful to others as well. Here are the individual files, which have to be packaged into a ZIP file for submission. This will load an iframe from http://www.tapper-ware.net/patience/live/patience.htm , resize it to width=100% and height=224px ==== gadget.xml: ==== < xml version="1.0" > <rss version="2.0" xmlns:binding=" http://www.live.com "> <channel> <title>Solitaire / Patience</title> <descri ...Show All
Visual Studio Boolean argument issue
I'm just getting started with GAT (so please forgive me if I don't get some of the terminology just right) and I'm running into an issue with how a boolean value that is set in the wizard is showing up in a template. I've searched and searched, but I haven't found out why this is happening. The problem I'm seeing is a boolean value in the Wizard shows up in C# generated code from the template as "True" or "False" (without the quotes). This then fails to compile as those values should be true and false in C#. From what I read, setting the Type of the Argument should get this working correctly - so my argument in my xml file looks like: < Argument Name = " TitleBarVisible " Type = " System.B ...Show All
Visual Basic Noob Database question
Hello, please excuse this question from a total Noob! Im quite happy programmign away in the VB.net 2005 application that im developing, and i am displaying fields from my sql 2000 database, in data grids, in text boxes and all is well. But my question is this. how can i manipulate data fromt he database that isnt shown in test boxes on the screen, i.e id love to load some variables with values from the database is this possible the syntax is elluding me at this stage. many thanks and i look forward to some advice on an article that may help, Google just gives me back so many misleading articles! Hi, of this should not be very diffcult to do. There are many classes in ...Show All
Windows Forms how to activate back and forward buttons in c# project
i have developed the project using c#. there i am having back & forward buttons. how to activate that buttons. like in asp.net i can get the options response.redirect(), but here how to do plz give me a example for activate the back & forward buttons. Thread moved to the appropriate forum well in winforms, to navigate on a webbrowser control: this.theWebBrowserControl.Navigate( urlHere ); there are also functions like goback, goforward etc... if those pages are stored in the history: this.theWebBrowserControl.GoBack(); this.theWebBrowserControl.GoForward(); does this help is that what you are after ...Show All
Windows Forms How to get a scroll bar to scroll down a large programme.
How do I make a VBscrollbar scroll down my programme. I have it docked in the form but I need it to actually function. Thanks. A panel and form has autoscroll property that you can set so you don't have to add scrollbars manually. Are the contents of your program manually drawn or just widgets ...Show All
Visual Studio Express Editions DataGridView cell input
Hi, How can i directly get into the data input mode when i click on a DataGridView cell unit, not like at this moment showing the selection of the cell first then allows you to input the data ok try this, in the designer view of the form, select the datagridview, then in the properties scroll down to "EditMode" and selet "EditOnEnter" does this work for you ...Show All
Microsoft ISV Community Center Forums SendKeys open application
Hi! I try to open a program from a macro in Excel and login (the Bloomberg professional, (not the website)) using SendKeys. With some help from other programmers I got the following code. It does not work at all though and I am lost. Can someone please help me with this My problems are: 1) I get error on the WaitFor …line. ”Sub or Function has not been defined” 2) If I delete the WairFor line I get error on the AppActivate("1-BLOOMBERG") line. “Illegal procedure call or argument” Sub bbg_login() AppActivate("1-BLOOMBERG") Application.SendKeys "{BREAK}",false WaitFor timevalue("00:00:01") Application.SendKeys "user_Name", false Application.SendKeys "{ ...Show All
