gaofeng's Q&A profile
Windows Forms remoting/web services book
Hi , i am looking for a good book on remoting/web services. I am a beginner on those topics and want to buy a book. I saw this book on amazon and want to know if anyone has read it and what they think abt it, and if anyone has any other recommendations http://www.amazon.com/exec/obidos/ASIN/0735619336/qid%3D1065419981/sr%3D2-1/ref%3Dsr%5F2%5F1/102-/002-9217392-1863217 Thanks. ...Show All
Visual Basic Playing sounds in asp.net
Hi I want to know, how to paly a sound file in asp.net, I am doing project related to that pls help me The problem is, it's trivial to play a sound on the server, but to do so on the client requires downloading the file, and playing it. What do you want to do exactly Are you trying to embed an mp3 or midi in your page as a background, or something else entirely (i.e. something event driven ) ...Show All
.NET Development SQL Statement - how to use 'equals'
I am trying to get a SQL command to my Access DB that matches the user input (textbox) to an exact field in the DB. myExecuteQuery = " Select * From tblMeetingMinutes WHERE " & _ "(TrackingNumber = '%" & txtLookup.Text & "%'))" I don't think this is the code to do 'equals' - any help would be apreciated, it's been years since I've done SQL statements. hi, Its very simple .. just remove the "%" signs from the query. it will give u the exact match. Cheers, Nasha nam_shah at hotmail.com ...Show All
.NET Development DateTimePicker in DataGridView
I am using the whidbey Beta version. I have a DataGridView object in a form. One of the columns is of type date. I want to have a DateTimePicker in that column. There is a link to do this on msdn2 http://msdn2.microsoft.com/library/7tas5c80%28en-us,vs.80%29.aspx But I am afraid, the link does not contain any information. Any help would be appreciated. ...Show All
Visual Studio Array Help Docs Wrong
The c# help docs say you can declare an array with an initial value like this: int[] myIntArray2 = new int = {1, 2, 3, 4, 5, 6}; However this will not compile, you have to use the following method int[] i = new int[2] {1, 2}; I tried to report this through the help docs comment, but could not get it to work. That example is definitely incorrect. Single dimension arrays are initialized using either one of these two forms: int[] a = {0, 2, 4, 6, 8}; int[] a = new int[] {0, 2, 4, 6, 8}; But I cannot find the statement you mention in our ...Show All
Visual Basic Access or SQL Which one is better
Hi I'm wondering, which one would be better, i'm creating 2 medical programs, that are going to be running on a local machine, I Use visual Basic 2005 express and don't know if I should develop with access or SQL 2005 express. Which one is better and faster Any suggestions or comments will come in handy. PS. Future versions might have network connections, like for a secretary or interoffice connections. So should i work on access or SQL express SQLE is *better* in that it does more. The real question is, which is the appropriate tool fo hte job. If you expect to run the database on a seperate ma ...Show All
Visual Studio Creating "ASP.NET WebSite" project using Automation - bug?
I'm trying to create a new "ASP.NET Web Site" project (like the user would do using the File->New WebSite menu item) and running into problems. I've used these functions to create Class Libraries and Windows applications before, so I'm pretty familiar with them. however I'm unable to find the right Template name for a Web Site project. I'm using EndDTE80.GetProjectTemplate(TemplateName,Langauge) to get the template path and then using EnvDTE80.Solution80.AddFromTemplate() to create the new project. As i've said before, I've done this a lot using "WindowsApplication.zip" for the template name or "ClassLibrary.zip" and it works great. These ...Show All
Visual Studio Express Editions How can I make ....?
Well, The main is that I want to make the program alert me what key was press when that key is pressed. How can I make that Or If there is a good tutorial for starting programming in C# Thanks If you mean a key press across the entire system, then you need to write a system wide hook. Not sure if you can do this in C#, you can in C++. If you mean within your app, when your window has the focus, if you create a WinForms app, and then in the designer look at the properties window, there's a lightning flash icon you can click, then you get a list of events you can be notified of in your program. The KeyPress event is called when ...Show All
Visual C# How get inner class info by Reflection
public abstract class ClassBase { public abstract class InnerClassBase { } public void CheckInfo() { Type currentType = this.GetType(); //How to get method info of this inner Class } } public class TestClass:ClassBase { public new class InnerClassBase { public void Test() { } } } //Testing code TestClass test = new TestClass(); test.CheckInfo(); I'm not sure I understand the problem. You can't get a MethodInfo for a class. I'm also not sure what the purpose of the two InnerClassBase classes are. Classes aren't polymorphic so what's your reason for declaring a new InnerClassBase in TestClass ...Show All
.NET Development Oracle query Select count(*) from <tableName> is not working in VB6
Hello friendSelect count(*) from <tableName> if you execute this query in oracle(SQL Plus) it will execute successfully.but if creating the recordset into vb6 and trying to execute it will give error. Please help me. Thanks in advance. Below is the code:Dim con as new conectionDim rs as new recordsetDim reccount As IntegerFor j = 2 To 402reccount = 0i = Worksheets("sheet1").Cells(j, 1).Valuestr = "select count(*) from " & Trim(i) & ""Set rs = con.Execute(str)' If Err.Description = "table or view does not exist" Then' Worksheets("sheet1" ...Show All
.NET Development Only one connection for a port
I have created a TcpListener (e.g. port 4440) object and called Start method. This sample code is running. I have verified Listener status using netstat -a command (MS DOS Command). Port (e.g. 4440) is listening. I am using telnet as client. I have connected to same port (e.g. 4440) using telent. Telent is also connected. Now i can see two entries in netstat command output for that particular port. One is listening and another is established. Here i want to have a single connection for a port. Kindly suggest me how to do that. Thanks & Regards, kalai I assume you want a single client ...Show All
Smart Device Development Pocket PC connection!
Dear MSDN support, When i am deploying the emulator and running the following URL in the emulator to check if i have access to a publication i got an error telling me that i could not connect because i have no connection, but i have just setup a proxy setting on the emulator because i only connect to the internet through a gateway! http://my_computer_name or the ip_address/publication_name i.e. the same as the database/sscesa20.dll Posting this thread in the Emulator forum at - http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=76&SiteID=1 ...Show All
Visual Studio Express Editions Publish tab for Project displayed with errors in Visual Studio C# Express
Hello, I Just downloaded Visual Studio C# Express Beta 2. I wanted to use ClickOnce deployment, but ... I have problems with publish tab in Windows application project properties. It shows: "The error occurred trying to load the page. The publish components are not available. You need to reinstall Visual Studio to publish your application." I tried reinstalling but that didn't helped. Also the error is displayed when i try to right click the same project and select publish from there: "The publish components are not available. You need to reinstall Visual Studio to publish your application." How to solve this problem or this fe ...Show All
Windows Forms DataGridViewImageColumn new row image
I have a DataGridView - the first column is an unbound DataGridViewImageColumn. The purpose of the image is to allow the user to click the Image - go to "lookup" form - select data - come back - and it programatically fills out (most of) the new row - based on what was selected in the "lookup" form. I s there a way to replace the 'null image' (box with an 'x') with my image for "lookup" (binoculars in this case) in the row being added Personally I would use a button column, but yes you can replace the null image two ways. 1) you can handle the Defa ...Show All
.NET Development How to usd regular expression to match a function in the .cs file?
I want to find the function named "myFunction()" in my cs file, then show the source code of it: public void myFunction() { ... ... } I wrote a regex : ^\s*([a-zA-Z]+\s+)+Fun\(.*\)\s+\{.*(\{[^\{\}]*\})*\} but it can't work. could you give me a sample Thanks Ah, very interesting. I was not aware of the <DEPTH> construct. Then, I suppose, it may be possible. I do not have such a Regex specification on hand, though. I imagine most C# text parsers (e.g. compilers) do not use regular expressions to piece out function definitions. Note also th ...Show All
