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

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

txteacher

Member List

Walker Boh
JohnnieK
Rick T
Mark.Stockton
Shruti00
Tin Aung Soe
moorpipe
jchau
Prabagarane
THNQDigital
angi.w
Grayson Peddie
learnerplates
rad9k
Ron Liu
Javahar
N. Farr
StevenR2
blixy
pjs.net
Only Title

txteacher's Q&A profile

  • Visual Studio 2008 (Pre-release) pack uri syntax

    The "application:" provider in the pack uri style, look for resources in the EXE file. What about if my custom control should load resources from his own dll file What's the syntax to load resources from a dll Thanks, Raffaele Here's more on how to reference a file embedded in a DLL . The pack URI is optional when you're dealing with application files (i.e. those declared in your project file as Resource or Content). You can simply use a relative URI. ...Show All

  • Gadgets Open File Dialog: chooseFile returns Save As Dialog

    How do you get an Open File Dialog oShellItem = System.Shell.chooseFile(False, "Media Files:*.*;", "C:\", "") The above code returns a Save As Dialog for me instead of an Open File Dialog, and the previous code I've used with "MSComDlg.CommonDialog" doesn't seem to work under Vista. Any help is appreciated very much. Thanks. You have a typo in the filter string. Interesting that it bring up the save as dialogue though. Replace the ";" with "::" and you'll get an open dialogue. oShellItem = System.Shell.chooseFile(False, "Media Files:*.* :: ", "C:\", "") ...Show All

  • Visual Studio Express Editions header file problem

    Hi everyone, In the below header file, there is a function which is implemented in the header file . Why is it really possible to implement functions in header file Another question is that what is the function of #ifdef and #endif in the below codes I will appreciate any helps. 1 // Fig. 10.7: Increment.h 2 // Definition of class Increment. 3 #ifndef INCREMENT_H 4 #define INCREMENT_H 5 6 class Increment 7 { 8 public : 9 Increment( int c = 0 , int i = 1 ); // default constructor 10 ...Show All

  • Windows Forms Colour Control Lag Problems

    I have a user control, which is mad up of 216 checkbox (button appearance) to represent each web safe colour. Each has a event to relay the fact it has been clicked so can change the colour of whatever. The problem is when the control is displayed there is a big lag / slow down effect in the application. I wouldnt have thought 216 buttons/ checkboxes is that many to display on a screen each with a listener. But it appears so. Any ideas on what this could be Am i cgoing to have to come up with another way The only other way i can think of would be to draw 216 rectangles separately and go down that route. Only problem is i cant see how i would be able to show a selected colour by depressing it. Is the route to take Thanks ...Show All

  • Visual Studio Team System TF30169: The New Team Project Wizard was unable to download the process template (NEW PROJECT)

    Hi, I have been working on Process Templates for a while and uploading new versions have working very well. A few weeks ago I installed BETA on SP to test Custom Controls within the process template forms. The TFS BETA was installed on a test server with it's own TFS installation, and not on my developer PC. - Visual Studio 2005 Service Pac 1 Beta - Visual Studio 2005 TFS Service Pack 1 Beta But when I discovered I couldn't upload process template for regular TFS servers (without SP1 Beta), I removed VS 2005 completely (I think) with SPs and Team Explorer from 'Add and Remove programs", and reinstalled the full package. I'm able to upload the new process templates successfully, but Im getting an exception when tring to cre ...Show All

  • Visual Studio Custom Tag: <Overloads>

    Is the <Overloads> tag functional in the November CTP How should be used Regards Okay, I didn't understand that you were using external comments.  That aside, I believe it is working as expected and that you are just misunderstanding how it works.  <overloads> is just putting a message on the root node page.  It isn't altering how the items are grouped or how they are listed on the type's member list page.  In there, they will still be listed individually.  To change that behaviour would probably require reworking the XSL transform that generates the member list for a type. Eric   ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. MS should ask the community to work on features for xna!!!

    MS i really think you should use the knowledge of the community to help create features for XNA. If MS asks the community to work on specific area, or feature and to send there program to MS, MS could skip alot of the programing work, and just certify and expand upon the ideas of the community. Hell look what the xbox community did will all of the xbox live featuers. What do you think. godsarmy wrote: MS i really think you should use the knowledge of the community to help create features for XNA. The community can already build features on top of XNA, so I don't get the point you are trying to make. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. UI Development with XNA?

    I'm interested in building a "windows" user interface into my XNA game, however, I'm not finding a whole lot of tutorials or code samples on how best to do this. I want to draw a sprite on the screen, say one that mimics a window, and allow the user to drag it around the screen and resize it when they are on the borders. I've got the dragging feature working by simply polling the mouse coordinates inside the Update method and checking if it's within the bounds of my sprite's rectangle, but I'm not sure if this is a good method or not I figure this is something that has been done many times before so there is probably a "best practice", but I can't seem to find anything on it for XNA. I'm really just looking for confirm ...Show All

  • Visual Basic Optional Object parameter passing in a function

    Hi, I have this code. I want to use the same procedure with the controls on a form instead of just controls on a groupbox. The catch is i do not want to repeat the procedure. I tried to declare grpbox as optional but it will ask for the default value and I don't know what i can give as default. Any other recommendations to make this function precise would also be welcomed. Thanks Public Sub checkCriteria( ByVal GrpBox As GroupBox) Dim grp As GroupBox = CType (GrpBox, GroupBox) Dim ctrl As Control Dim flag As Boolean flag = False For Each ctrl In grp.Controls If TypeOf ctrl Is TextBox Then Dim sctrl As TextBox = CType (ctrl, TextBox) Try If sctrl.Text <= txtasUMin Or sctrl ...Show All

  • Visual Studio Tools for Office No such interface supported with v3

    I install Office 12 Beta 2 and VSTO v3. Attempting to create a new project of type Excel 12 Workbook in VS 2005 fails altough it generates some files on the disk. Opening the project file manually results in the following error and the project fails to load: --------------------------- Microsoft Visual Studio --------------------------- The operation could not be completed. No such interface supported --------------------------- OK --------------------------- I re-installed WinFX Runtime Components - February Community Technology Preview (CTP) and vsto3ctp.exe to no avail. I have also Office 2003 installed on the same machine. Office 2007 Beta 2 and VSTO was installed after Office 2003. The key datapoint in your config descrip ...Show All

  • .NET Development How to parse invalid characters

    I am downloading an xml file.It have some invalid characters.In valid characters could be changed. I have an xml file for my custom setting.I will replace the invalid characters with the valid one. so I have added a node named InvalidCharacters in which i provide the invalid characters. 1, Now I want's to load these invalid characters in an array [ i will split the string by ',' and load in an array] but How can I load the string in the cdata area. 2, I am getting an erro [Character '', hexadecimal value 0x1a is illegal in xml document] when i try to put the character in my xml file for setting. <InvalidCharacters><![CDATA[ ,&,</a <,</a<,</< ]]></InvalidCharacters> Use XML to ...Show All

  • Windows Forms FocusRectangle Problem

    Hi everybody, I need to change the button FocusRectangle colors in my Forms, because I have Flat type Appearance with a background image. Which is the best way to do it I tried with an override of the OnPaint method and DrawFocusRectangle, but I just get an strange behaviour... Thanks in advance, Demian Hi Chris, When I override OnPaint method with the next code for example: protected override void OnPaint( PaintEventArgs pe) { base .OnPaint(pe); ControlPaint .DrawFocusRectangle(pe.Graphics, pe.ClipRectangle, Color .Blue, Color .Blue); } It doesn't change the Focus Rectangle color, and also insert's me a dotted ButtonBorderStyle. Thanks for your repl ...Show All

  • Software Development for Windows Vista Resolving HTTPS MEX Endpoint Problem

    I am sure there is something I am missing out here but I have no idea what. In my STS Config, I have this: <services> <service name="Softwaremaker.Security.SecurityTokenService.SecurityTokenService" behaviorConfiguration="stsBehavior"> <endpoint contract="Softwaremaker.Security.SecurityTokenService.IWSTrust" binding="wsHttpBinding" bindingConfiguration="stsInfoCardBinding" address="" /> <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /> </service> My service metadata is set as follows: <serviceMetadata httpsGetEnabled="True" httpsGetUrl="mex"/> ...Show All

  • Windows Forms what event gets fired when a child windows closed inside MDI?

    Hi, what event gets fired when a child window closed inside MDI Is there any way to catch that event Thanks, Igor i don't understand how to write it,do you have an example in vc++ 2005 express , of how to let the mdiparent do something when the child is closed ...Show All

  • SQL Server sql update

    I am building a stored procedure (sp) as below to update a table. Some of the parameters may or may not be provided hence null values... Is what I am doing correct please I get this error when running it: [Microsoft][ODBC SQL Server Driver]Syntax error or access violation Thanks Create PROCEDURE uspUpdate @IndexID int, @UnderlyingIndexID int = null, @Nearby int = null, @RolloverTypeID int = null, @Decimals tinyint = null, @LimRolloverDate datetime null, @LimRolloverPolicy varchar(50) = null AS declare @Error int declare @Msg varchar(128) declare @sql varchar(1000) update tblData set UnderlyingIndexID = @UnderlyingIndexID, Nearby = @Nearby, RolloverTypeID = @RolloverTypeID, Decimals = @Decimals, LimRolloverDate = @L ...Show All

©2008 Software Development Network