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

Software Development Network >> Stuart Preston's Q&A profile

Stuart Preston

Member List

NealRM
Viper32
laghu
Shiqin Xing
Rocky in CA
David So MSFT
yonatanh
shinyhappy
Aji Jose
Patrick Shirley
Imran Koradia
Dimitri Meeuws
Nate
HungSolo
hirahih
Bernybon
Benin
kmorrill
John Hoge
Francis Shum
Only Title

Stuart Preston's Q&A profile

  • Windows Forms Dynamic Combo box problem

    Hi, I am trying to get a ComboBox(Drop Down List) to populate according to what is selected in a previous ComboBox.  Here is the code I am using to do this but for some reason it is not working. Any ideas  This worked on some ASP.NET stuff I did a while back, is it different on Windows Forms   Any help you could give would be  ...Show All

  • Visual C# Get Random Row From Table

    Hello. All other questions that was before i solve. Thank you all for ideas. Taday i have other problem :)   i have Table "PLAYERS" i want receive only one row from it but it must be randomly choosed AND obey special createrias (Field1 equel to 1 , Field2 more than 76 something like this) before i used dataset and it was easy DataRow [] NotPlaying = dataSet11.Tables["PLAYERS"].Select(Creteria ); if (NotPlaying.GetLength(0) != 0) { Random d = new Random(); int number = d.Next(0,NotPlaying.GetLength(0)); NotPlaying[number]; // this was randomly choosed row in a set of valid rows   }   BUT now i do ...Show All

  • Visual Studio Express Editions Can Anyone Relate To This???

    Hi There http://www.geocities.com/tablizer/oopbad.htm Cheers Bronco Billy "Beer and Fast Women are Ok... No Cigarettes or Hard Liquor Allowed" Hi, we live in a free world where erveryone can express his opnion. I know I like OOP. You should try both worlds and see whats best for you to use. ...Show All

  • Smart Device Development Setting up the Correct ATL Include and Lib paths after eVC4.0 project port to VS2005

    Hi I ported an application that compiled and linked fine in eVC4.0 to VS 2005. When I compile the project in VS 2005 I get the following linker error: LNK2019: unresolved external symbol VarBstrCat referenced in function "public: long __cdecl ATL::CComBSTR::AppendBSTR(wchar_t *)" ( AppendBSTR@CComBSTR@ATL@@QAAJPA_W@Z) In looking into this I see that the include file used for ATL is the main Win32 one and not the SmartPhone 2003 SDK one. I know I can include this in the Tools->Options->Directories stuff but if I do this this will have an overall effect on all project (non Smart Device ones included). If there an ea ...Show All

  • Visual C++ Error 2001 with delete and new

    Hello EveryBody ,in this code segment generate these Errors: LinkedList error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" ( 3@$$FYAXPAX@Z ) LinkedList error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" ( 2@$$FYAPAXI@Z ) LinkedList error LNK2001: unresolved external symbol "void __cdecl __CxxCallUnwindDtor(void (__thiscall*)(void *),void *)" ( __CxxCallUnwindDtor@@$$J0YAXP6EXPAX@Z0@Z ) class Detailes ; class a {   gcroot<String *>bookname ;  a *link ;  Detailes * detailes ; public:  a ( String * ,String * ,String*) ;   ...Show All

  • Windows Forms c# windows forms Network Based Deployment

    I have shared my application on network all users access that application. now problem is this when i want to make changes on some windows form and want to update that particular file. Message comes that " The file xyz.exe cannot be copied to the run directory. The process cannot access the file because it is being used by another process". Please guide me how to resolve this problem. Regards Awais ...Show All

  • Windows Forms clickonce manifest error

    hi, i deployed an application using clickonce and when i try to execute it i get an error saying "Unable to continue. The application is improperly formatted. PLease contact the application publisher.".  On this messagebox there is a details button. When i click the details button it opens up a error log file. In the log file the error is describe ...Show All

  • Visual Studio Problems with SetDataSource

    hello, i have created some reports with crystal. Form_Load of my Form : [code] // my Class loads a DataSet AntragReparaturs antrag1 = new AntragReparaturs(); DataSet set1 = antrag1.Report_RepAnnahme_Kunde_GetData( this .antragsID4Edit); // Instance of my report Report_RepAnnahme_Kunde rep1 = new Report_RepAnnahme_Kunde(); // SetDataSource on DataSet rep1.SetDataSource(set1.Tables[ 0 ]); crystalReportViewer1.ReportSource = rep1; [/code] this works fine on my development-machine, but on other computers SetDataSource failed the error message is [code] System.MissingMethodException ...Show All

  • Visual Basic How to detect if app is in debug mode

    I know I saw this property somewhere . I want to detect if the app is being run in debug mode (or in the IDE). Any ideas. If System.Diagnostics.Debugger.IsAttached() Then ......... ...Show All

  • Visual Basic PASSING PARAMETERS BETWEEN CLASSES

    CAN YOU PASS PARAMETERS BETWEEN CLASSES IN VISUAL BASIC EXPRESS 2005 I HAV EN'T HAD ANY LUCK TRYING TO USE PUBLIC AND SHARED STATEMENTS. WHAT AM I DOING WRONG This is code for 1st form in VB express Public Class Form1     Public ANUMBER As Integer = 0   ' declare number as public       Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click         ANUMBER = TextBox1.Text ' get number from keyboard         MsgBox(ANUMBER)       ...Show All

  • SQL Server VS2005 Syntax Highlighting for SQL code?

    We are currently using Visual Studio 2003 (7.1.3088) and have installed VS 2005  (8.0.50727.24).  In VS2003 when we open any SQL code (usually .sql extension) there is syntax highlighting on all the code.  In VS2005 there is no syntax highlighting that I can find, even if I open a file using "open with".  After searching for a solution I tried editing the registry but it appears that 2005 is different than 2003.  Does anyone know of any way to get the syntax highlighting back in VS2005 when editing sql files   ...Show All

  • Visual C# Copy Local Fails

    I have a large solution (16 c# dll projects, 1 c# exe project) where the dll projects are project references  of the exe project.  I have set copy local true for all the projects. The problem is on alternating rebuild-all builds one or two of the 16 dll's are not copied into the exe's bin/debug directory.  On the good build, all references are there and on the next build, some of the dll's are missing. Any suggestions SB Hmm.. we have 70 dll projects and 1 exe. Yes, we have sometimes such problems like you desribed it above, but it happens very rarely. Try to close VS, delete all .pdb fil ...Show All

  • Smart Device Development How to re-assign desktop menu item(Soft key button)?

    I want to implement setting the desktop menu item programmelly, as the TMAIL.EXE does. When a message comes, the right soft key button becomes "Message". HWND hDesktop=::FindWindow(_T("DesktopExplorerWindow"),_T("")); HWND hDesktopMenu=SHFindMenuBar(hDesktop); I can get the menu window handle by the code above. But I cannot get the menu handle (HMENU). HMENU hMenu=(HMENU)SendMessage(hDesktopMenu, SHCMBM_GETMENU, 0, 0); This code doesn't work for hDesktopMenu, even though does work for menus of normal applications. I find another way to reassign the button by adding some registery keys. [HKEY_C ...Show All

  • Visual Studio Team System Error message for December CTP - Error 28925.TFServerStatusValidator: UnexpectedError

    Getting this message at the very end of install: Error 28925.TFServerStatusValidator: UnexpectedError Hit cancel when I got the error and got the following data from the log files: [12/06/05,16:58:15] Microsoft Visual Studio 2005 Team Foundation Server - ENU: ***ERRORLOG EVENT*** : WARNING:Warning 32000. The Commandline '"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Bin\Stsadm.exe" ...' returned non-zero value: -1. [12/06/05,17:02:09] vs70uimgr: Entering DisplayMessage() method. [12/06/05,17:02:09] vs70uimgr: DisplayMessage_START:Error 28925.TFServerStatusValidator: UnexpectedError [12/06/05,17:05:11] vs70uimgr: Di ...Show All

  • Visual Studio Express Editions how to generate 5 sets of 7numbers?

      I just cant get going with this little trick. I need to create 5 sets, each contains 7 non repeating random numbers appreciate your help   Hi, System.Random class will help http://msdn2.microsoft.com/en-us/library/system.random(VS.80).aspx . Best regards, ...Show All

©2008 Software Development Network