GunaChinna's Q&A profile
Visual Basic How would you create an executable without using a form?
I am not new to programming, but am about minutes old with VS2005. I love VBScript and want to move forward.... The basics are a complete mystery, NameSpace, etc.... What would the code be to popup a message box (Again, just an exe, no forms) Next, what would be the code to run a file (i.e. \\Server\share\folder\file.vbs) I have tried various "quick starts" for VS2005, but am not making headway fast enough. One of these days ...Show All
.NET Development How to get an IP address?
Hi all, Would you like to tell me how to get an IP address of client, who invokes a WebServices method I'd like a short sample of code (in C#). Thanks. From the Webservice side, try this [WebMethod] public string GetClientAddress() { string UserAddress = Context.Request.UserHostAddress; // string hname = Context.Request.UserHostName; return UserAddress; } ...Show All
Visual Studio Team System Unexpected error when adding Web Part to TFS Project site
We are receiving the following error message when we attempt to add any of the Web Parts supplied with Team Foundation Server to our projects home page: An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily disable Web Parts or remove personal settings. For more information, contact your site administrator. Our enviroment is a clean install of the following: ...Show All
Microsoft ISV Community Center Forums additem issue with populating a combobox
Hello, I have been working at this for days and am no better off. I could really use some help. I need to populate a combobox with data from a column in an SQL table. I have put together the code below but am having an error at this line: invBegNum.additem rs.Fields.Item("RMDNUMWK").Value Error message: "Object doesn't support this property or method" I'm really a newb but am trying hard to get this. When I write this line of code to popul ...Show All
Smart Device Development Blank IO Exception
Hi. I'm trying to write to a serial, COM, port on the mobile device. using .NET 2.0 here and WM2005. After months of trying to find out, I found out a couple of ways of doing so. Yesterday I tried the serialport class, unfortunatly when it writes to the serial port, it gives me a blank IOException - no idea why. The COM port is 3 and is enabled in the system settings by default. Next step was to go low level stuff - so I imported ...Show All
Visual Studio Tools for Office Sorting list object with protection on
I have a list object, some of the data(cells) in the list is locked so that the user can't edit it. The spreadsheet is protected with the following options: Globals.Sheet1.Protect(missing, true, true, true, true, true, true, true, false, false, false, false, false, true, true, false); //set cell selection Globals.Sheet1.EnableSelection = Excel.XlEnableSelection.xlUnlockedCells; i can use the autofilter on the list to filter the rows, but trying ...Show All
SQL Server Where is the Northwind SQL scripts for SQL server 2005
I am looking for the northwind install script in my SQL server 2005 directory and cannot find it. The introduction to VB 2005 uses it for an example and I would like to walk thru it. Does anyone have the sql If so could you send it to me. I am going to see if I can get it off a 2000 install. Thanks. Hello, Northwind does not ship with SQL Server 2005. It is available from the Microsoft download site: http: ...Show All
SQL Server Table Variables in Stored Procedure
I am using a table variable inside a stored procedure that I am trying to execute from an OLE Datasource task in IS. I know there was a problem doing this in DTS, which would result in an Invalid Pointer error. I am not getting that error, but I am getting an error that says "[OLE DB Source [55]] Error: A rowset based on the SQL command was not returned by the OLE DB provider." The stored procedure runs fine on it's o ...Show All
SQL Server Publications... Im a beginner
Hi people I m just beginning with SQL Server 2005 Express Edition and I need some help. I want to have a small database in a server (I've already created) and it will be used to synchronize it with PDAs (Pocket PC 2002) through MS SQL Server CE 2.0. I have "SQL Server 2005 Express Edition" and "SQL Server Management Studio Express", and I don’t know how to create a publication of my database (I need a merge publication). I thi ...Show All
Visual C++ What is the syntax for declaring an event as an argument of a function?
How do declare FireEvent(...) so I can use it in foo() With previous beta versions, I can just do this FireEvent(EventHandler^ e), but with beta2 compiler, I get C3918. Thanks, hdp. // class that defines events ref class EventSource { public : event EventHandler^ OnEvent1; event EventHandler^ OnEvent2; void FireEvent(...) { &n ...Show All
Visual C# using Streams
How to copy files from one directory to another using c# streams using System.IO namespace private void button2_Click(object sender, EventArgs e) { DirectoryInfo from = new DirectoryInfo(@"C:\Source"); DirectoryInfo too = new DirectoryInfo((@"C:\Destination"); bool Overwrite = true; Copy(from, too, null, null, Overwrite); } private void Copy(DirectoryI ...Show All
Smart Device Development CF Threads
Since Compact Framework doesnt support Abort, IsAlive, and Join for System.Threading, how can I get around this I want to run threads one after the other, not all at the same time, and also want to be able to hit cancel and close the form while in the middle of the thread. Thank you Chino See this: http://www.danielmoth.com/Blog/2004/10/invoke-cf-and-full-fx.html Cheers Daniel ...Show All
.NET Development how to divide a string
im not sure im in the suitable forum for my question... i have a long string (lets say x) and a short string (y) ,now i need to find if y appears in x (dont have to appear in x sequential ). so first i need to divide x to sub-strings but without missing a matching , how can i do that thanks You are going to have to explain what you are after a little clearer, perhaps give us some information as to what you ...Show All
Windows Forms Draw Rectangle.?!
iam new in GDI+ i draw a rectangle in my form how i can select this rectangle at runtime and i can move it and resize it at runtime thanx Noooow wait a second, two guys with two answers. lol You CAN, but like one develo ...Show All
.NET Development IEquatable, IComparable, operators and Object overrides
Framework Design Guidelines provides example implementations of IEquatable, IComparable, suggested operators and Object overrides as roughly: public struct MyValue : IComparable<MyValue>, IEquatable<MyValue> { int theValue; public int CompareTo ( MyValue other ) { return theValue - other.theValue; } public bool Equals ( MyValue other ) { return CompareTo(other) == 0; } public override bool Equals ( object obj ...Show All
