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

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

bhv

Member List

lustigorMolch
hye_heena
K. Murli Krishna
Tuk
peter.keyjob
Jim P.
Omerrr
fatquack
NonExisto
djjdaeja
mariso
rako77
NetPochi
Tom_Liu
KippV
barkingdog
NickoM
Mona_D
Marc Developer
mliesmons
Only Title

bhv's Q&A profile

  • .NET Development how could I change the Client's IP address automatically through C#

    Good day to all experts, how could we change the client's IP address automatically using C# programing make it realization . I have a small program running at the workstation ,I wanna C# programm may automatically connect ADSL and 30 seconds can closed ADSL connection. Thank you very much for your help regarding this matter. Have a nice day to all have already done this a couple of weeks ago. Couldn't find any way of enabling/disabling via an api. Use WMI or win32_Networkconfiguration to search for the card you want to enable/disable and use DEVCON.exe to disable then enable it. (Restart worked i think.) Code sample is at the bottom. I have since changed the code to run a proccess(originally I made a vbscript file. B ...Show All

  • Visual C# GetKeyState() API ?? Logging pressed keys

    Hi i am working on a c# project. I want to handle the key press of some keys like enter and some others while the form also is not active, so i cannot use the keypress event handler, what i am using is the GetKeyState API with a timer. what i read in the msdn us that this function return: if the high order bit is set to 1 then the key state is down else the key state is up. My code in the timer was: for (int i = 0; i <= 255; i++) { if(GetKeyState(i) < 0) { myString += ((char)i).ToString(); } } then i flush myString to a text file, i tried the app and i tried to write something like Love, the result was LLLLLLLLLOOOOOOOOVVVVVVVVEEEEEEE i dont know why there is repeat also why it is only capital l ...Show All

  • Visual Studio 2008 (Pre-release) Can i debug the service developed using WCF.

    hi, I want to debug the service that has been developed using WCF. When i inovke a method exposed thru a service i need to debug from the client to the service. Both me client and service are on the same machine. Is it possible to debug Thanks in advance. Regards, Rajesh. Any Idea how to debug wcf service build via the webservice software factory. I can't seem to get it to step into the actual source of the service... ...Show All

  • Windows Forms tabpage control navigation is not refreshing the panels quick enough.

    I need to redesign my tabcontrol that contains tabpages to which have been added a user control. When I click on each tabpage, it takes a second to load the usercontrol and see it displayed. The usercontrol has two splitcontainers which are nested on either side of another splitcontainer. The resulting 4 areas contain panels which are the drawing containers that are added each time dynamically as per below. Is it possible to add the usercontrol to each tabpage on form load. Is there a way to "refresh" or show each tabpage when the user clicks on each subsequent tabcontrol rather than adding it each time   Select Case TabControlLeft.SelectedIndex             Case 0   ...Show All

  • Smart Device Development How to retrieve IMEI or UUID of a Pocket PC device using VB .NET (Windows Mobile 2003 or later)

    Dear gurus, I would appreciate if you couls share with me a piece of VB code that retrieves the IMEI or UUID of a Pocket PC device. Regards, E.T. Hi, Add a module to your project and name it as you like, then copy the following code into it: Imports System Imports System.Collections Imports System.ComponentModel Imports System.Diagnostics Imports System.Runtime.InteropServices Imports System.Text Module Module1 Declare Function KernelIoControl Lib "CoreDll.dll" ( ByVal dwIoControlCode As Int32, ByVal lpInBuf As IntPtr, ByVal nInBufSize As Int32, ByVal lpOutBuf() As Byte , ByVal nOutBufSize As Int32, ByRef lpBytesRetu ...Show All

  • Visual Basic Copy To Toolbox

    Hi, When copying code (Ctrl+C), the text entries go to the toolbox. The entries go under the tab that I last clicked. There is no apparent limit to the number of entries (I stopped counting after the first hundred). When I try to reset the toolbox, the IDE crashes. I have uninstalled and reinstalled. I even tried removing manually ( http://support.microsoft.com/default.aspx/kb/907965 ). I use Norton Ghost for backups. I restored from an image made before the original installation, reinstalled, and still having the same problems. I am using VS 2005 Pro with SP1 applied. Any suggestions ...Show All

  • Visual Studio Team System how to query work items using wild cards

    Can I query work items using wild card on any field e.g. title. Thanks in advance, MSGuy ...Show All

  • Visual C# custom attribute

    Hi is it possible to write a custom attribute that accepts an array of objects as constructor parameter For example, I would like to have an attribute like: public class AuthenticationAttribute : SoapExtensionAttribute { // UserRights is a class containing various data regarding the // "rights" a user has to call methods in the system. private UserRights[] rights; public AuthenticationAttribute(UserRights[] rights) { this.rights = rights; } // ... + other methods for this soap extension attribute ... } But while this in itself will compile, I can't work out how to apply this attribute to methods in other classes.... For example, on the following method: [WebMethod] [Authenticatio ...Show All

  • SharePoint Products and Technologies Sharepoint Blog

    I want to setup a secure Blog. This means that each user would have an online journal. only that reader and certain administrators could read this journal. 1.Is this somthing that should be done in sharepoint or should I just build a webapp to do this 2.If this is for sharepoint where can I go for some information on how to get started. 3.Note I am very very new to sharepoint so go easy on me if this is stupid..... Thanks We should have Lawrence pin a post for us that Defines the acronyms... sorry guys.. I've been sharepointing so long they aren't even acronyms anymore :-) MOSS = Microsoft Office SharePoint Server. The current incarnation of SPS. I really think MS got i right this time ...Show All

  • Software Development for Windows Vista calling stored procedure

    Hi , I am new to mysql stored procedure, i need to execute mysql procedure which is on remote machine and function in VC++ with arguments. I am using Visual studio 2005. Please help me how to do it. Why are you posting in the Windows (ex-Platform SDK) forum Try Data Access or MySql forum. First, choose the data access technology. ADO will be fine. Install lastest MDAC components on the client (search Google or microsoft.com for MDAC installation). Then, install MySql driver on the client. See if this will help: http://www.mysql.com/products/connector/ Search Google (codeproject.com contains a lot of useful stuff, connection strings etc): mysql ado c++ +site:codeproject.com This might be interesting: htt ...Show All

  • Visual Studio Team System Failed to create team project

    I have been experimenting with custom process templates on the release version of TFS. After modifying the existing MSF for CMMI, when I attempt to create a new project using that template, I see the following error... Error TF30170: The plugin Microsoft.ProjectCreationWizard.WorkItemTracking failed during task Queries from group WorkItemTracking. Explanation Plugin error text: “Error Creating Query Change Requests from C:\Documents and Settings\<deleted>\Local Settings\Temp\1\TPW_tmp15.tmp\WorkItem Tracking\Queries\ChangeRequests.wiq” User Action Contact your Team Foundation Server administrator. Any ideas It seems you create some new query and maybe they h ...Show All

  • Visual C++ The equivalent C++ MFC code for the VisualBasic function

    Which is the equivalent C++ MFC code of the following VisualBasic function Function SelectMany(sSetName As String) As MyApp.SelectionSet Dim filterTypes() As Integer Dim filterData() As Variant ReDim filterTypes(1 To 2) ReDim filterData(1 To 2) filterTypes(1) = 0: filterData(1) = "line,arc,circle,LWpolyline" filterTypes(2) = 62: filterData(2) = 256 Set SelectMany = thisdrawing.SelectionSets.Add(sSetName) Call SelectMany.SelectOnScreen(filterTypes, filterData) End Function Ioan The main problem in the code is these lines with declaration of VARIANT's variables. I do not know how to translate in C++/MFC.. Dim filterTypes() As Integer Dim filterData() As Variant ...Show All

  • Visual C# How to check if a file is writtable?

    I used : if ((File.GetAttributes(file) & FileAttributes.ReadOnly) != 0) gave me error, saying The given path's format is not supported. Hi System.IO. FileInfo fi = new System.IO. FileInfo ( @"C:\abc.txt" ); if (System.IO. FileAttributes .ReadOnly == fi.Attributes) { //The file is read only. } //OR if (fi.IsReadOnly) { //In 2005 The File is read only } ...Show All

  • .NET Development SQLBulkCopy and text files.

    Hi. Someone suggested that I use SQLBulkCopy to efficiently copy records from a tab-delimited text file to a database. It sounds easy enough, but I've run into a problem when I try to copy the data. I parse the soure text file and load the rows into a DataTable. Here's the code for the SQLBulkCopy : public void submitInsertsViaSQLBulkCopy() { ConnectionStringSettings settings; settings = System.Configuration.ConfigurationManager.ConnectionStrings["sqlConnectionString"]; string connectionString = settings.ConnectionString; SqlConnection dbConn = new SqlConnection(connectionString); SqlBulkCopy bc = new SqlBulkCopy(dbConn, SqlBulkCopyOptions.TableLock, null); bc.BatchSize = tbl.Rows.Count; dbConn.Op ...Show All

  • Visual Studio Tying domain classes to shape objects

    Hello! Please forgive me for such a beginner question, but we just started playing with DSL Tools a few days ago and are having some trouble getting shapes to appear in the VS toolbox. We've attempted the following steps: create a domain class ('FooElement'), create a Geometry Shape ('FooShape'), add an Embedding Relationship from ExampleModel to FooElement.  In the DSL Explorer:  add a ToolboxTab/Tool (Class=FooElement, Order=10), add a ShapeMap (Class=FooElement, Shape=FooShape). After performing these tasks, the item still won't show up in the VS toolbox when running the project. Help EDIT:  the error was that the templates hadn't been transformed.  However, now, when dragging an object onto the surface, it adds it ...Show All

©2008 Software Development Network