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

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

DBasantani

Member List

Anshul Tandon
vaishali.mspp
luoo
fprintf
CScs
Daenris
Vítor Ferreira
steve_flavel
mazen44
Dahl Berg
ryoma
Karen Corby - MSFT
Frédéric Degraeve
hkraljevic
Kyle Wakefield
Mister_Vee
James Manning - MSFT
massiveoni
MSatya
cvjr
Only Title

DBasantani's Q&A profile

  • Visual C# Switch Statements Issue

    I'm sure i managed to do this in java once (a very long time ago) but i have forgotten...i have the following switch statment.  Ultimately i want to continual loop routing to the relevant case statement, until i'm done, i would like to do it this way because i have many options and choices and  a while loop will not suffice.  How do i achieve what i want switch (state) { case:1 //test something, if true i want to jump to case 3 otherwise jump to 2 case 2: //some calculation here //go back to case 1. case 3: //some calculation here break; } How about this - ...Show All

  • Windows Forms A simple print job

    I am definitely a newbie and have created my first application and I am stuck on printing the main form. Printing in VB.net seems to be complicated. Any basic steps such as where to put the code would be greatly appreciated thanks here is some c# code which works for me, I don't know basic, but perhaps this might give you hints&n ...Show All

  • SQL Server Reattaching old database

    I have just installed SQLExpress version 9.0.1399. I was using an earlier version of the server before and backed up a copy of my mdf files for safety's sake. However when I now try and attach the old databases I get an error that the database files from the old non-release version (590) is not compatible. Probably my own fault - the information was probably clearly on display deep in a file somewhere in the documentation (cough). However I would kind of like to get at the data in these files. Is there any way of getting hold of an earlier version of SQLExpress which will handle these files Or can they be opened in any other way ...Show All

  • Visual C++ Error "The filename or extension is too long" not displayed on Japanese OS

    Hello, I would appreciate your response on the following: I am using the following format of CreateDirectory() to create a new directory by passing the path(ie, path+filename), the second parameter is NULL, BOOL CreateDirectory( LPCTSTR lpPathName , LPSECURITY_ATTRIBUTES lpSecurityAttributes ); This method returns an error and displays error message "The filename or extension is too long" (error 206) as expected when the path exceeds 248 chars on English OS, however on Japanese OS machine, it does not display the error message. On English OS, when I copy and paste the pathname which exceeds 248 c ...Show All

  • Visual Studio Tools for Office Word Template crash

    I have a Word template project that can add custom controls to the document (something like WordDynamicControls example). I am able to open my template and save as a doc file. But it is not possible to save doc file after that because Word crashes. Could someone help me I do not have a workaround for the issue, and I unfortunately could not reproduce the crash (although I did see a hang in Word's code). You may contact Microsoft PSS for further assistance. If at all possible, you may want to avoid using dynamic controls in template, as we'we seen various issues w.r.t. ActiveX controls i ...Show All

  • Visual Studio Express Editions Line breaks

    When I create a label in a form, the next continues and goes out of the form. How do i create line breaks Isn't it /n or /s or something like that What doesn't work Environment.Newline Label1.Text = "This is the First Line" & System.Environment.NewLine & "This is the Second." Works just fine. ...Show All

  • Visual Basic Percent Processor Time - Processor Utilisation

    Hi all, I am trying to get the total CPU usage on the local machine. Sounds easy huh Here is the trick;   I don't want to use WMI or the Performance Counters (% processor time).   Please don't ask why, long story. Now I have slapped this code into VS and it works, but it uses a lot of processor time. Imports System.Diagnostics Imports System.windows.forms Imports System.Runtime.InteropServices.ComTypes Module Module1 Private WithEvents mTimer As New Timers.Timer Dim t1 As TimeSpan Dim t2 As TimeSpan Sub Main() mtimer.Interval = 1000 mtimer.Start() Application.Run() End Sub Priv ...Show All

  • Visual C# DirectX Redistribute Error

    I write a program using C# and DirectX SDK( aprl 2005). Trying to make setup files using V.S.2003 . Some error(Application has generated an exception that could not be handled) occured when using animation is in my program. How to distribute a program which contains animation, AllocateHierarchy, Frame to other people's computer Ok, Should be 9.08.0299.000 that is the Aug 2005 Release. The version you  listed above is about 2 releases behind. Mykre www.ircomm.net Managed DirectX and Game Programming Resources ...Show All

  • Visual C++ Is there a tool to visually map out classes in a project?

    I'm a novice C++ developer for an engineering firm. I was tasked to maintain and continue developing a hardware interfacing system. It is purely object oriented and consists of more than a hundred classes derived from dlls, resulting in quite a mess. So, it would be help to give me an overview of the interdependencies and structure of the system if there's any software or tool capable of visually mapping out the system Hi, if you're using VS 2003 I think that Microsoft Visio integrates with it and allows that functionality. VS 2005 has a nice reverse engineering function feature that converts the code to cla ...Show All

  • Microsoft ISV Community Center Forums How Can I create an UDF I can use in a cell?

    How can I insert a managed function in a cell For instance I have a created a function Public Function test( ByVal myRange As Excel.Range) As String 'Some code..... test = "testing" End Function If I put in a cell of the wordsheet the formula =test(a1:a2) I get an error. Is there a way to create a UDF as is possible in VBA Daan I've moved your question to the VBA forum since there are more chances to get it answered in that particular from. Thanks ...Show All

  • Visual Basic System.Data.OleDb.OleDbPropertyStatus Error

    Does anybody know how to resolve this error. Unable to cast object of type 'System.Data.OleDb.OleDbPropertyStatus' to type 'System.String' I am trying to create a table Adapter using the wizard(in VS 2005 Beta2) and the database is MySQL, connection is OLEDb connection for ODBC. It gives this error and fails to generate the Insert and Update Statement. Select statement comes out fine. thanks. ...Show All

  • Windows Forms C# Array List help

    I'm having a little trouble with an array list. First, it is declared globally... ArrayList myAL = new ArrayList(); I can put one single string into the list such as.... // do the calculations sPrice = r1.doRio(i, sAddress, sBedrooms, sBathrooms, sSize, sGarage);  // add to array list myAL.Add(sPrice); // for testing output this.lblResults.Text=myAL[0].ToString(); I can input and get any value in ...Show All

  • Windows Forms xml files are not deployed to directory where the application is running

    When I publish my application with ClickOnce xml files containing custom configuration are not deployed to the directory where the application is running from. Is this the correct behaviour What is the recomended way to organize custom configuration with ClickOnce publishing Teymur, The pdf file must be included in the project. (It's okay if it a linked file.) The BuildAction property of the pdf should be set to Content. That should be all you need to see the pdf file in the list of Application files. Regards, Elizabeth Maher VB Team ...Show All

  • Windows Forms Image zoom

    I want to let users draw a rectangle (or square, I don't know yet) around a part of an image to zoom in on it, similar to selecting multiple files in Windows Explorer or multiple controls in Windows Forms Designer. Once I have the coordinates of the rectangle I am fine; I just need to know how to implement the UI!   Thanks. Keep your image in a bitmap. When the mouse is on buttondown, get to coordinate and set a flag. When the mouse move, if the flag is set, get the coordinate of the cursor and create a new bitmap. Copy your main image in this bitmap with a rectangle using your 2 coordinate (u ...Show All

  • Visual C++ Error while compiling (C2664)

    Hi, I have this piece of code which I am trying to compile in VS 2005. ///////////////////////////////////////////////////////// TCHAR * strGuid = NULL; UUID myUUID1; UuidCreate( &myUUID1); UuidToString( &myUUID1, &strGuid ); ////////////////////////////////////////////////////////////// This compiles OK in VS 6.00 but it gives an error in VS 2005 (The project setiings has _UNICODE & UNICODE defined). Any help is welcome :-) error C2664: 'UuidToStringW' : cannot convert parameter 2 from 'TCHAR **' to 'unsigned short **' Types pointed to are unrelated; conversion requires reinterpret_cast, C-sty ...Show All

©2008 Software Development Network