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

Software Development Network >> Robert Phan's Q&A profile

Robert Phan

Member List

jludmir
CWC1980
_wim
r cook
wilsonspagnol
Okan Tekeli
DrunkenSniper
abbarron
tansu
SerenityNever
Tarmo Tali
Niro
Kalcy
murali_k1
Harshal
Baskaranselva
Paulo Serra
Aneesh Aravind
isunshine
daisy1225
Only Title

Robert Phan's Q&A profile

  • .NET Development Can't pass TableAdapter as argument

    Can't pass TableAdapter as argument In VB6 it was easy to build my own datalayer.  In vb.net 2003 it was difficult, not nearly as time saving as in vb6.  I was hoping vb.net 2005 would be easier. In many forms I fill table adapters, hardly a big surprise.  I was hoping to create procedures in a class that I could call from each form.  Unfortunately, I can pass a dataset, but I can't pass a TableAdapter.  When I try I get the message "Type 'TableAdapter' is not defined" Ah, Shucks! Is there a workaround dennist See the thread TableAdapters BaseClass. While you can change the b ...Show All

  • Visual Studio Team System Can a Context variable be set from a Datasource?

    I want to run a user registration recorded webtest for each username stored in a database. I've:  - recorded such a test  - Added a datasource  - Added a context variable (sUsername)  - Set the Username page field to use the context variable But I cannot see how to set the context variable from the datasource The only thing that can be done in the context variable Properties window is set the value to static text. I tried using the same syntax that worked for setting the Username page field to the datasource value ... {{TestData1.Username.Username}} ... but that didn't work (it was treated as static text). If I can bind ...Show All

  • SQL Server Executing trigger

    If I have a trigger "instead of insert" on tableA When I insert a set of rows in tableA. How many times the trigger is called(executed) Once or for each row inserted Thanks Thanks Nielsb, It's really cool becaus I wasn't sure. good night ...Show All

  • Visual Studio Express Editions Q : MDI Forms

    hi, now i'm learning how to create MDI form that can contain other forms but i have 2 problems, the tutorial wasn't clear about them 1) when i add a menubar to the child form it doesn't appear in the child form but it appear in the parent form so i will have duplicated menus like 2 menues for file , the same for edit ... etc how can i stop that and make the menu appear in the child form 2) parent form may contain many Child forms opened, how can i get a list for all child forms that are open in the parent form to switch between all of them thx in Advance MDI menu merging is something that I'm yet to work out properly myself ...Show All

  • Windows Forms Close button problem...URGENT!

    Anyone know how I can conrol what happens when a user presses the close button on the for ( the x int the top right corner). My problem is that the form doesnt close when the button is pressed.  Please help!!!!!  Found that the code i tought fixed the problem earlier did'nt. Had to tweak it a litle more... protected override  ...Show All

  • Visual Basic Can I use C style callback routine from VB?

    I am new to .net though I used VB and VC a lot in visual studio 6. In my job I have to use VB, and there are some C style callback routine in the equipment API that I used, which can not be implemented in VB. Is there a solution about it in .net or C# or anything else Thanks a lot for any response. you can use Platform Invoke to call your equipment API from .net. here is a tutorial http://msdn.microsoft.com/library/default.asp url=/library/en-us/csref/html/vcwlkPlatformInvokeTutorial.asp ...Show All

  • .NET Development Networkstream & TCPClient - write does not throw IOException when server goes down.

    Hello all, I encountered a strange problem. I use a TCPClient to send messages to a TCP Server (by Network stream's Write function) when the server is connected it all goes well, but when the server closes the connection I get IOException only on my second write! - the first write method is called as nothing had happened. I tried to give my TCPClient true on NoDelay and also fixed the SendBufferSize of the TCPClient to be exactly as my message size (163 bytes). nothing helped. please advise! thanks ahead hi, what about reading from the server when the server close connection itsends ...Show All

  • .NET Development Using HttpWebRequest to HTTP POST using Credentials - Underlying connection closed

    I am hoping someone out there knows why this is happening: I am writing an application that is going to be making many requests to authenticated web pages - by authenticated, I mean using HTTP Auth (you know, that grey box that pops up asking you for a username and password). I have been using WebClient for this because I don't need much more functionality than simply reading particular pages or posting to a few of them.  However, I am willing (and have recoded my app) using HttpWebRequest, with the same problem. My problem is this: I can do GET requests just fine (DownloadData using WebClient or just reading the stream usin ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. C++ or C# that is the question

    Hello, I have done tons of C++ work and tons of C# work... unfortunately none in the arena of game programming... I would like to get started... but what compiler would you recommend This is a very open-ended question... First off, the tools, I'd highly recommend Visual Studio 2005. I can't really comment on the C# side of things, but I've long been a fan of the Visual C++ tools. You can get "Express Editions" of both for free from here . You say you want to get started in games programming... what is your eventual aim Do you want to make a career as a games developer make some mone ...Show All

  • Visual Basic Looping a select case argument

    Trying to loop a select case argument that will read the text properties of labels in a group box and then change the background colour of those labels. so far however i can only get the loop to read the first label and then change the colours of each label to that select case result. sample of current code. Any help appreciated! For Each lb as Label in GroupBox1.controls Select case Number case 1 to 9 lb.backcolor = "colour" case 10 to 20 lb.backcolor = "Next colour" etc etc Put a For loop inside each Case. Doing it the other way is less efficient. ...Show All

  • Visual Studio Tools for Office Large dataset bound to ListObject

    Hi everyone, I have a ListObject in Excel bound to a datatable which has >100K rows in it and I need to page through it. I am currently calling back to the DB everytime I need to get another page; but I really would rather page throught the dataset (this need to be a disconnected system). Any suggestions on how to do this are welcome. Thanks, Blair Hi Blair, You can read the entire data into a dataset at the beginning. Then, you can create a BindingSource that uses this dataset as it's data source. Set the Filter on the bindingsource so that the requisite page of records is filtered in. B ...Show All

  • Smart Device Development What event is fired when using a Pen to select a Control?

    Hi, and happy Easter all! I am creating a Forms application for a QTEK Smart Device and was wonder what event is triggered when I select a Control with a pen I can't seem to find a relevant event when searching through a controls event properties. Device: QTEK. CF: 1.1 Thanks Tryst Hi Andrew, I have tried the code you have given me, and when I run it I am getting an 'An Unhandled exception of type 'System.InvalidCastException' occured in the Windows.Forms.dll' I take it I can't do this method of casting an object of type EventArgs to a KeyEventArgs event... Tryst ...Show All

  • SQL Server cannot see the 2nd table(2 tables returned from stored procedure) in dataset in report designer

    Hi, I am using stored procedure(SP) to create the dataset in report designer. My SP is returning 2 tables/recordset and i am only able to see first table/recordset in the dataset in report designer. I have to place fields from second table onto my report. Is there anyway i could get the 2nd table in my dataset so that i could place the fields in my report. Please help Hi I am also facing the same problem. Could you help how to write a stored procedure to retrieve the second table from stored procedure. So that I will create second dataset as you said. Thanks & Regards Kumar ...Show All

  • Visual Studio Team System Policy Override Reports

    Hi All, I want to create a report for showing all the policy overrides comments. Unfortunately, I donot find the override comments data in TFSWarehouse database. Is there any way I can port this data to the TFSWarehouse database everytime the warehouse is updated with data. Or any other suggestions for creating such a report will be helpful. I donot want to create a report that reads from TfsVersionControl database. Thanks, Sarathy That policy override data is not in the warehouse. I've filed a suggestion in the TFS Work Item Tracking system to consider having this included, as I've seen it ...Show All

  • Visual C++ Help with how to read/write to COM port in VC++.NET

    I was wondering if someone could tell me why my code will not read from a COM port successfully. My output window says that no bytes have been read. I have attached my code below. Thanks! #include "stdafx.h" #include "windows.h" #using <mscorlib.dll> using namespace System; int _tmain() { HANDLE hSerial; BOOL w_ret; BOOL r_ret; hSerial = CreateFile("COM1",GENERIC_READ | GENERIC_WRITE,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); if(hSerial==INVALID_HANDLE_VALUE){ if(GetLastError()==ERROR_FILE_NOT_FOUND){ printf("COM port not found!\n\n"); } printf("Error opening COM port! ...Show All

©2008 Software Development Network