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

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

LeeH1972

Member List

ronnyh
MVP_M_Rajesh
MAG
Umair Khan
bram
Havoc131
jg3333
Ghawas
Andro_
Karl Costenbader
jeremypv
Raiden_S
Manojas
Chennai BOY
Sweey
Måns Tånneryd
John Calcote
Jon M.
merc
erik v
Only Title

LeeH1972's Q&A profile

  • Visual Basic How to get Windows Directory

    I was programing on Visual Basic 6 and I was good. Since days I have purchased Visual Basic 2005 and I liked it very much, it is stately. There are a lot of differences, e.g. in VB 2005, there is no API. My question is: How can I get Windows and System Directory Can anybody help me, please   Thanks   Environment .GetFolderPath( Environment . SpecialFolder .Desktop ) gets the desktop folder. Change the enum passed to the function to get the folders you want. ...Show All

  • Windows Forms DataGrid Vertical Scrollbar Problem

    Hi, I have a .NET 1.1 WinForms app with a datagrid bound to a datatable. There are 53 records in the table, and the grid displays 7 or 8 at a time. When the form initializes, the data is sorted on the LineNumber column (as it should be). The vertical scrollbar is visible but disabled. If I click on one of the column heads to sort the grid, the vertical scroll bar becomes enabled.  If I then sort on LineNumber, as it was originally, the scrollbar remains enabled, as it should. The question is, how do I enable the vertical scroll bar from the beginning   Am I forgetting something or is this a bug Is there a workaround Thank. ...Show All

  • Software Development for Windows Vista Retrieving data back from workflow

    I have a state machine Workflow that has two states 'Create' and 'Delete'.I have a Asp.Net webpage that creates a 'Vehicle' object and sends it to the workflow using parameters(I have a 'Vehicle' property as a public property in the workflow). I now need to process some rules and retrieve a 'Xml file /Any kind of processed information' containing the Vehicle objects information....what I need to know is how do we retrieve data processed in the workflow without using " data pipes " (because I need to use this application in a distributed scenario)..... thanks, P.S.: Also I have a Local service used to raise events that t ...Show All

  • .NET Development Easiest way to check if a User is in an AD group?

    I have 2 strings, one containing the ActiveDirectory account name of a user (eg. "MYDOMAIN\JoeSchmoe"), and another containing the name of a AD Group/Role (eg. "CanCreateParts"). I need to write some code that will check if the user is a member of that group. What's the best way to do this I know when the code is running under the user context in question (eg. when I use impersonation in ASP.Net) I can just do: Dim MyPrincipal As New System.Security.Principal.WindowsPrincipal(System.Security.Principal.WindowsIdentity.GetCurrent()) If Not MyPrincipal.IsInRole("CanCreateParts) Then How ...Show All

  • Windows Forms MS Configuration Application Block

    Hi All, I am using Microsoft Configuration Application Block for my application's configuration. It works well but I have the following question: In my app.config, I have multiple configuration sections. If for each section I use separate configuration storage location (i.e. external XML files), it works fine - however, this ends up with too many small XML files. I want&n ...Show All

  • Visual Basic Installing.

    Kelly, You will get alot further with your frustrations by providing details of your problems/issues to the product feedback center: http://lab.msdn.microsoft.com/productfeedback/Default.aspx ...Show All

  • Windows Forms Closing Processes

    Do you guys know of a good way to close a process, such as an adobe acrobat process that has been started programmatically Here is some code I've found (for starting and printing a pdf file), and it works fine, but it leaves the acrobat reader running and I want to be able to close it out. I believe getting the process ID and closing&nbs ...Show All

  • Visual Studio Team System Solution file not checking in - how can I?

    Hi, I have a simple web project (the new VS2005 asp.net web project add-in) and 2 class projects under a solution. Originally, I created a solution that was in the same folder as my web project. However in order to not keep getting the source control warming: "users may have projects getting this project..." etc. I have re-saved my .sln file in my 'trunk' folder on my dev PC and deleted the old .sln from my PC and Team Foundation. Now, VS2005 is not giving me any way to check in the new sln file. How can I accomplish this The .sln is on my hard drive and works fine, however it's NOT in source control and Team Foundation/Syst ...Show All

  • .NET Development A question about proxies

    Hi I'm using a transparent proxy to intercept method calls. Everything goes well if i use the "proxy.method(args)" way but when i use "methodInfo.invoke(proxy,args)" i get a Reflection.TargetException, it says something like "the object doesn't match with the target's type". How do you think i could make it work Thanks a lot, greetings   Joannes Vermorel - MVS wrote: In the example of the previous post, I was just calling GetTransparentProxy() to retrieve a proxy from an instance of a class that inherits RealProxy. Joannes Sorry for a somewhat belated reaction. I never tried the method you ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DPlay - Server-Close()

    Closing a server (server->Close();) stops responding my application (application not responding). I also recommend this behaviour in the DPlay sample 'SimpleServer' after starting/closing the server. Any idea about this behaviour and is there a work around Thanks for replies! DirectPlay is deprecated.  Game developers should use Windows Sockets (see Windows Sockets ) and the Windows Firewall APIs (see Games and Firewalls ). ...Show All

  • .NET Development Slow function getpixel

    I am programming imageanalysis using VS2005 VB and the use of the single line k = apicture.GetPixel(i, j).R over all pixels in the image is very time consuming. Is there a faster way to get the pixel intensity of a pixels in an image held in memory kind regards Morten Use the LockBits method: http://www.bobpowell.net/lockingbits.htm ...Show All

  • Visual C# How do I create a simple table in C#

    Hey, Iam designing a inventory software, and I need to make a table that shows the item number, description and price of each item. Iam not using any databases, just want to store all the info in 1 file. Whats the best way I can do this in C# First of all, thanks to everyone that his helping me, its been really helpful from all the information you guys have shared. And secondly, this XML thing as really taken care of my inventory problem. Now another part of this business project that Iam doing is the Invoicing part. I designed a simple form with a datagrid, but this time I want to make the datag ...Show All

  • Visual Studio T4 Text Template Editor for VS2005

    Here's an interesting link for those of you who don't ready my blog (shame on you by the way ). Gaston Milano has created a T4 editor that plugs into VS2005 . It does colorization of template code versus output text, keyword colorization, and some intellisense. It should prove very useful for those of you writing T4 templates. Dunno if this is the place to ask this, but I have tried to get the T4 Editor to work with DSL Tools templates, but haven't done it yet... Anyone able to give some step-by-step guide of setting it up It seems to be a very useful tool, that would ease some of my grievances with these templates. ...Show All

  • Smart Device Development trapping FN key

    Currently, on my device, to enter numbers using the QWerty keyboard, i have to press the function key each time, as there is no NumLock function available. So i thought i might be able to simulate this by implementing the following rule: -create a background process that will determine if the function key is pressed twice quickly -if so, i set a private property, _numLock = true; -if the FN key is pressed twice again, i set _numLock = false; -basically, i would like to have a process recieve all keystrokes, if _numLock = true, i can then pass the keystrokes on, but also set what ever needs to be set to indicate the FN key is pressed. i thoug ...Show All

  • Visual C# changing toolBar backcolor

    Does anyone know how to change the backcolor of a toolbar component.  The BackColor property doesn't seem to be available for this control and i would like to avoid making a custom control or overriding the paint event if i can. Josh, Thanks for the ideas but instead of taking the shortcut it looks like i will just build my own.  I was hoping there was a nice easy workaround but after some research  it doesn't look like thats the case.  I'm sure that there will be a need for this again inside my company so all is not lost.  Thanks again. Adam ...Show All

©2008 Software Development Network