Software Development Network Logo
  • Visual C++
  • Microsoft ISV
  • Visual Studio
  • Windows Vista
  • Visual FoxPro
  • VS Team System
  • Visual C#
  • Game Technologies
  • SharePoint Products
  • SQL Server
  • .NET Development
  • Audio and Video
  • Smart Devicet
  • Visual Basic
  • Windows Forms

Software Development Network >> wspencers's Q&A profile

wspencers

Member List

Peter ebSms
EthanS
pat capozzi
Bradrover
Sweeps78
anzrul
Will Merydith
shahrul
facemann
Wanderermy
Koen M
une
louis murray
Jason W. Matthews
Trevor Townsend
April m
Garyon
Gunston
maxvio66
brajeshkumar69
Only Title

wspencers's Q&A profile

  • Visual C# Pressing Control + key

    Hi I want my application to accept keyboard input such as Control + p (pressed at the same time). That's what I found: bool modifier = false; void Form1_KeyDown( object sender, System.Windows.Forms. KeyEventArgs e) { if ((ModifierKeys & Keys .Control) != 0) modifier = true ; } void Form1_KeyPress( object sender, System.Windows.Forms. KeyPressEventArgs e) { if (modifier && e.KeyChar == 'p' ) { Console .WriteLine( "control + p pressed" ); modifier = false ; } } The problem with this example: pressing Control + p at the same time does not work. What do I need to do Thanks A simple way to achieve that............ private void Fo ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How to draw a Rectangle in XNA

    Guess the subject covers it.. how do you draw a rectangle in XNA I just started using XNA about 2 weeks ago so i still haven't get used to it yet. any help would be really appreciated.. you can always use orthographic projection matrix projectionMatrix = Matrix .CreateOrthographic(ScreenWidth, ScreenHeight, 1.0f, 100.0f); ...Show All

  • Visual Studio Team System windows not found iexplore.exe

    I'm trying to add a "Web Test..." to my test but appear: ..windows not found iexplore.exe. Check the source.... (Windows no puede encontrar el archivo: iexplore.exe. Asegurese que la ruta y el nombre del archivo esten bien escritos...) Yes, I have Iexplorer intalled in C:\Archivos de programa\Internet Explorer\IEXPLORE.EXE Maybe, I need change or configurate the root.... I don't know! Thanks! ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Game Component Designer Problems

    I am having a little problem with the designer at the moment. I have a component, lets say it is called ComponentA, and this component has a public property of type List<InternalComponent>. (InternalComponent being a simple class that contains some public properties and a public Texture2d property. This list appears in the designer surface and you can edit the list, however whenever I okay the items I have added to the list they do not get persisited in the InitilizeComponent of the Game. If I manually add elements to the list in code, I get an obscure error on the designer surface that says the type InternalComponent could not be cast to InternalComponent Are there any special things that I should be doing Kind Regards, ...Show All

  • Visual C++ Link Error

    Hi all. Im having a link error when i compile 3 source files together. error LNK2001: unresolved external symbol __imp__SendMessageA@16 Thats just one out of 4 errors. I've googled the error msg and found that other have had the same problem, but neither of their problems were ever resolved( at least not on the article/forum) So since i have this issue and i'd like to know what i need to update/change to fix this error. Im using VC++ 6 platform SDK 2003 Everything is in order to compile in the settings etc. From what i've read its some sort of out-dated problem. But how can it be out dated if i can compile the source by itself It would'nt compile if it was so out-dated right Any suggestions on what i should do is appreciated as always. ...Show All

  • Visual Studio 2008 (Pre-release) DataContract issues - output doesnt match schema

    My idea was to create a Web service operation that returned an instance of a published XML type. I figured this would be a good demonstration of the benefits of a DataContract. So I got hold of an opml schema and simplified it (see OPML.xml for sample of desired output) Ideally, I thought there should be a way to convert the schema into a .NET class, and I believe this can be done via svcutil, but it's not obviously available from the VS GUI. So I wrote the class by hand (see DataContract.cs). I then added ServiceContract.cs and Service.cs. It seems there's no way to test the service without a client in WCF (this seems a step backwards to me, as a built-in test page is provided with all other Web service environments) so I built a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. IDE problem

    I downloaded XNA today from microsoft after installing the VS 2005 express edition. I then watched a tutorial on how to develop pong and noticed a difference in my IDE. when i go to create a new project, i do not have the option to create "Game(XNA)". Mine says: "Game". the text below the project type window says it's an XNA 1.0 game so i clicked it. I then noticed my default game1.cs class has no designer to it. There is supposed to be an expand option on the class so i can set properties such as height, width, etc. My game1.cs is simply a class with no way to view it in design time. Has anyone else experienced this Thanks. Perhaps the tutorial was made with the first Beta release of ...Show All

  • Visual Studio 2008 (Pre-release) How can i activate Context Menu via Leftclick of the mouse

    i have images and wanted context menus attached to it instead of popups. how would i possibly do this using the leftclick of the mouse instead of using rightclick. Thanks in advance. I did this recently, and came across a weird data binding problem. My MenuItems are "Checkable", and the "IsChecked" property is bound to a property of my UserControl: <MenuItem Header="Group by"> <MenuItem Header="Rating" IsCheckable="True" IsChecked="{Binding IsGroupedByRating}"/> The ContextMenu is attached to a Button. This works fine, if I open the the context menu using the right mouse button. However, to support opening with the left mouse butt ...Show All

  • Internet Explorer Development How to get current displaying URLs?

    I am absolutely new to IE development. And am only familiar with VB for Windows development. So any help here would be greatly appreciated. I am interested in finding the current URLs being displayed in IE windows/tabs. How do I grab this data Is there a way to do this smoothly in VB Thanks. Where are you trying to access this from Are you external to the IE process in which case you shoudl be able to use accessibility interfaces to access the tabs in IE7. Thanks -Dave ...Show All

  • Microsoft ISV Community Center Forums Error Handling in Excel VBA

    Hello, I am trying to connect to a database through a userform. The database expects a valid user name and password. I do I handle the error if someone puts in an invalid user name and password I want to display the error message which the system returns to the user. Kindly help Thanks something like this: in this example 'user' is the name of the text box on the form for user name input and 'password' is the name of the text box for password input 'Check to see if data is entered into the UserName combo box If IsNull(user) Or Me.user = "" Then MsgBox "You must enter a User Name.", vbOKOnly, "Required Data" Me.user.SetFocus Exit Sub End If 'Check to see if data is e ...Show All

  • .NET Development how to install sql server based application on different computer

    hi, i am new with vb.net and sql server, i have just made an .net vb application with connectivity to sql server. The server was installed on the local machine at the time of development. As now i have build the application, i installed it on a different machine on LAN. but its giving error "The 'SQLNCLI.1' provider is not registered on the local machine." I think something else i need to install to get rid of it. Please suggest how do we make sql server based applications running on LAN connected machines. thanks Nitin hi, thanks for the reply, I tried to install the .Net application and the sql server with the same server name ( used in connection strings of applicat ...Show All

  • .NET Development Design using properties in derived components

    I am developing a series of components, where a number inherit from others which are themselves usable components. In the derived components I often want to hide from the end-user properties which were exposed in the base class component but which are being used in the derived component internally and should not be modified by the end-user. Unfortunately there appears to be no way in the .Net architecture to do this gracefully. My properties are all virtual so I can certainly override them in the derived class, but I see no way of hiding some of them from the end-user in the derived class other than to override the property and use the Browsable(false) attribute. This still does not stop the end-user from accessing the property in run-time ...Show All

  • Visual C# Intellisence not auto show?

    some day ago,i install a Resharper!but my memory is too small to run it! so i uninstall it. after that,I found the Intellisence is not work normal! the Intellisence can't auto show the box! but i enter the shortcut ctril+K and ctrl+L,the Intellisence box will appear! but this is too complex to write code!I don't know what' wrong! Is there someone can help me Thank you very much! --sorry for my poor english You can try the following Go to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE and run devenv /setup followed by devenv /resetuserdata followed by devenv /resetsettings CSharp. [ from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=412559&SiteID=1 ] this will reset all the setting ...Show All

  • Visual Studio 2008 (Pre-release) Dynamic applying of client’s configuration

    By importing of endpoints from WsdlImporter, the resulting enpoint can not be used to dicertly create the instance of the factory and proxy at the client. For example: MetadataExchangeClient mexClient = new MetadataExchangeClient (mexAddress); MetadataSet metadataSet = mexClient.GetMetadata(); WsdlImporter importer = new WsdlImporter (metadataSet); ServiceEndpointCollection endpoints = importer.ImportAllEndpoints(); ChannelFactory <TChannel> factory = new ChannelFactory <TChannel>( endpoints[0]); ITestService proxy = factory.CreateChannel(); If the example is executed as it is, the last line will fail with following exception: “ Instance of MessagePartDescription Name='n1' Namespace= ...Show All

  • Windows Forms Why isn't CellStyle Format preventing alpha characters in Number format column?

    Hi all, I'm a bit confused here. I set the CellStyle Format for each column in my datagridview to be: 1) Number 2) Date 3) Currency 4) Just Text. So why are letters allowed to be typed into the Number column, or the date column If I'm using the wrong property, then what would be the correct one I don't want to use validation - b/c then it's too late. I want to prevent a non-legal character from ever being written into the cell. Thanks. Thank you for the response. I did get a sample application from MSDN for a masked Text Box - which is close to what I want. But the only problem is that it has a specified number of characters. What I mean is if I set the masked format to be "$999.99" then $1_0.0 ...Show All

©2008 Software Development Network