Software Development Network Logo
  • VS Team System
  • Windows Forms
  • Windows Vista
  • .NET Development
  • Visual FoxPro
  • Visual Studio
  • Game Technologies
  • Visual J#
  • Visual C#
  • Microsoft ISV
  • Visual C++
  • Smart Device
  • Architecture
  • SQL Server
  • Visual Basic

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

johnlayer

Member List

Lin Wey
aguyngueran
vbvc
ZebraTJ
Derwood
Omar Naeem
behnamkh
nidionys
PMBottas
Dean Stewart
Rick_in_Alpharetta
nwilliams
SmartFX
Pedro Felix
bigjimslade
Peter paterson
Jeremy Lloyd
KCHK
Jijil
mikeyand77G
Only Title

johnlayer's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Performance problem with Texture.FromBitmap

    I reduced program boot time (when running from within the IDE) from 12 seconds to less than 1 second by re-writing Texture.FromBitmap using unsafe code.  For me it was easy because I'm only using 32 bit textures and 32 bit bitmaps.  It would be nice to see this function optimized in future releases of the SDK.  BTW, Texture.FromStream has the same problem. -Jeremy FYI: I use the above code for Texture.FromBitmap and (and a similar solution for Texture.FromStream), which works as long as your bitmaps are 32BppArgb. -Jeremy ...Show All

  • Visual Studio Team System Services disappear when restoring TFS data to a different server

    I have been working through the restore to a different server process with TFS Refresh as described in http://blogs.msdn.com/vstsue/articles/500334.aspx . Got to the last step "To make clients to refresh their work item cache data" and I noticed that most of the TFS web services aren't working. For example, http://[applicationTierServerName]:8080/WorkItemTracking/v1.0/ClientService.asmx returns a blank web page. When going to the IIS Manager it was found that services for VersionControl, WareHouse, WorkItemTracking have the same symptoms. (Build & Services services are working). Any ideas   ...Show All

  • Visual Studio SatelliteDllPath-Option does not work in VS 2005 Beta 1

    Hi! I have developed an AddIn with VS 2005 Beta 1 an I want to use a custom icon for a named command. This is how I register the command: Command command = commands.AddNamedCommand2( addInInstance, "BuildConfiguration", "XTrace Build Configuration...", "Shows the XTrace Build Configuration", false, 1, ref contextGUIDS, (int) vsCommandStatus.vsCommandStatusSupported + (int) vsCommandStatus.vsCommandStatusEnabled, (int) vsCommandStyle.vsCommandStylePictAndText, vsCommandControlType.vsCommandControlTypeButton ); My .addin file looks like this: <Addin>         <SatelliteDllPath>E:\DotNET 2.0\Visual S ...Show All

  • Windows Forms DataGridView bug?

    Somtimes I set one of the DataGridView column's visible as false, but it still comes up when I run the program. Anyone has same problem I think I have found an instance where this bug still occurs. My app does not use columns built in the designer. Instead it uses columns generated by a custom class method returning a DataGridViewColumn array and then using the grid's AddRange method. We do this so we can change properties of our grids using a config file as well as save user-specific column order and size. Building the columns works fine, however if we were to change the grid's datasource in anyway (filter property on bindingsource, e ...Show All

  • .NET Development Web service and Active Directory??

    Dear all: I have a web site in a AD domain, and the authentication mode is "Windows". Then, I need to call the web service from a windows form application after users login into domain. How to get correct credentials for calling the web service automatically Thanks a lot. If you are accessing a webservice (secured with windows authentication) from a windows forms app you can set the Credentials property of the VS.Net generated webservice proxy class Dim proxyclass as new <yourWSproxyclass> proxyclass.Credentials = System.Net.CredentialCache.DefaultCredentials ...Show All

  • Visual FoxPro Cursors...

    Hello again, I have a cursor that stores information, mostly which can be duplicates of one another. These items are presented through a list box. A user can add and remove specific items from the listbox and the cursor which displays them. My problem is that I am unable to remove a specific item if there are duplicates. What it does is it deletes all of them. Any ideas Lil, Would you eloborate it. How do you delete for example. Delete-SQL or xBase Delete Syntax you use etc. ie: delete in "myAlias" && delete current record in workarea "myAlias" would delete a single record. Delete SQL might delet ...Show All

  • Windows Forms Web Service

    When trying to use Web Services in a Win Forms Project I have changed the URL Behavior of the service to dynamic and VS crashes. I have also tried to add the app.config manually and it just disappears when you re-open the project. Has anyone got any ideas how to get round this problem. Thanks Dave I never encounter this problem. Have you&n ...Show All

  • Software Development for Windows Vista ActivityValidator

    Hello, This my first time with custom activity what i want to do is simple am having a property in my custom activity called Text and i want to validate this property  i don't want this property to be empty so i build my validator class [ ActivityValidator ( typeof ( MyValidatory ))] public partial class Activity1 : Activity { public static DependencyProperty TextProperty = DependencyProperty .Register( "Text" , typeof ( string ), typeof ( Activity1 )); private string _text; [ ValidationOption ( ValidationOption . Required )] public string Text { get { return ( string ) ba ...Show All

  • Visual C++ How to change the Tab Label Font ,not all labels but the specific one. THKS!

    Hi Dear All,     How to change the Tab Label Font ( CPropertyPage) ,not all labels but the specific one.  THKS!     If it's worth the effort you should be able to do it with a hook on TextOut or DrawText whatever it uses internally and select your font into the dc. ...Show All

  • Visual FoxPro Very nice!

    i got a lots of help from here     thank you very one again Jet ...Show All

  • Architecture Architecture templates

    I am in a small shop where we don't have UML tools or other design aids other than Visio. What I am looking for if there is any are templates or guides, standards for how a system architecture should be documented. That standard would also include how architecture should be documented graphically as well. Many deep "Thank you" as all of the answers have been very helpful and with excellent linsk to great resources. Please lets stay in touch on this interest and important subject. ...Show All

  • SQL Server Query Analyser

    Hi, Can't seem to find which download includes Query Analyser, I have downloaded Management Studio Express Help Please Hi there, As far as I'm aware, Query Analyser is no more and the functionality has been integrated into Management Studio Express. In your Management Studio Express window you should have a button called "New Query". Alternatively, you can go through the menus: File > New > Query With Current Connection or File > New > Database Engine Query Doing one of these methods will open a new window in Management Studio Express where you can enter all the T-SQL you want. When you'r ...Show All

  • Windows Forms STAThreadAttribute problem in managed c++ windows forms

    hi, i m developing a windows forms application using MC++, when i do debug the project , it fails in the line of ' openFileDialog1->ShowDialog(); ' and gives an error like that : An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dll Additional information: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process. But its already done in Form1.cpp like that : System::Threading::Thread::CurrentT ...Show All

  • Windows Forms Binding ComboBox and DataTable including a None entry.

    Hello. We would like our customers to select a country, but it is not required. Thus, the top-most entry shall be "<None>". We read the countries from our database and bind the DataTable to the ComboBox. How do we go about adding a None entry to the ComboBox We can't add a None row to the DataTable or DataView. Is there a property on the ComboBox I'm missing or something Cheers, Chris   Carpe Noctem wrote: What I do is considering it's a lookup DataTable and the Business Process will not 'save' this DataTable back to the database, I remove all constraints in the DataT ...Show All

  • Windows Forms Enabling a tool bar Via MDI Child

    I have a situation where I want to use a login screen for determining which toolbar to load on my MDI parent application.  But, I can't seem to make it work.  I first load the MDI parent and then Load a Child form for the login page.  Once the person logs in I can't enable the toolbar on the MDI parent from the child. &nbs ...Show All

©2008 Software Development Network