Jialiang Ge - MSFT's Q&A profile
Visual Studio Express Editions TextBox (multiple line) & Databinding
In an attempt to do a project recently, I've bumped into a problem with textbox and databinding. I have a multiple line textbox and wish to display the address of a company. However the full address of the company is stored in multiple columns inside my database. When implemented, I can only display the street address onto my textbox. I'm currently databinding the textbox to the address field in my customer table. Is there a way to display more ...Show All
Windows Forms Hosting ClickOne deployment on non-.NET 2.0 server
Hi, I have a ClickOnce app that I wanted to deploy on a .NET 1.1 server. I set up the MIME type in IIS for .application files to be application/x-ms-application, but it still serves up XML when I browse to it and try to run. I tested hosting it on a .NET 2 server and it does launch the .application file. What other things do I need to do to the server to make it properly serve up the ClickOnce app Thanks! ...Show All
Windows Forms Installer Message "can not find file D:\Program Files\ZTE\deployement.InstallState"
I've created a customer action. Code & CustomerActionData: /TARGETDIR=["TARGETDIR"]/SCPKEY=UpdateServiceUrl/SCPVAL=["SCPVAL"]/MAINKEY=RemotingServiceUrl/MAINVAL=["MAINVAL"] using System; using System.Collections; using System.ComponentModel; using System.Configuration.Install; using System.Xml; using System.IO; namespace IISUtil { /// <summary> /// Installer1 的摘要 明。 /// </summary> [RunInstaller(tru ...Show All
Visual C++ Resizing arrays on the free stack
I was wondering wether there is a way to resize arrays on the free stack, whithout having to create a new array of the desired ,size, copying all the values and deleting the old one. I specifically want to delte the first few elements of the array and keep the others. I also want to add elements before the array . For example, if I add 2 elements, I want to be able to access the current [0] as [2], and the 2 new elements as [0] and[1]. Thanks in ...Show All
.NET Development Programming WMI in C#
I have seem many articles which teach programming WMI in C++ and COM. Can I do it in C# I understand that there are many unmanaged component in current versions of Windows. Does it means I can only program WMI in windows Longhorn Thanks Hi, You can use WMI with the .NET Framework. The System.Management namespace provides a set of managed-code classes through which .NET Framework applications can access and manipulate management ...Show All
Visual Studio Team System Restricting access to Visual Studio Project directories for different team members
Please will someone confirm that for a given Team Project all contributors have equal rights for all the Visual Studio Solutions and Visual Studio Projects + files held in Team Foundation Source Control. It is not possible, for example, to restrict one group of contributors to one VS Solution and another group of contributors to another. If you wanted to do something like that then you would have to create a separate Team Project for each g ...Show All
Visual C++ Console::WriteLine
hi, im new to C++ .NET so for Console::WriteLine(S"The number is {0,1:c} {1}", B, "TT") ; what {0,1:c} and {1} means and my program start like, #include "stdafx.h" using namespace System; int _tmain() { char B ; Console::WriteLine((String ^)"Hello world"); B = getch() ; Console::WriteLine(S"The number is {0} {1}", B, "TT") ; getch() ; return 0; } on second WriteLine output, ...Show All
.NET Development Best practice while writing C# functions
Hi, Anyone has any idea about how to free up memory in C# functions. Does the GC collects memory after a function has executed How about setting variables to null after we are finished with them, or the GC will automatically set them to null Does setting variables to null in finally causes an overhead void TestFunc() { XmlDocument xdDoc = new XmlDocument(); try { // use xdDoc } catch { // handle cat ...Show All
Visual Studio 2008 (Pre-release) RenderingHint? and 3D
I remember (I think...) that with this/next CTP release that we would get actual real anti-aliasing for 3D objects, but I can't remember any of the details, so if any have a link or a good handle on it, it would be appreciated. I think your stripping the end users of a long running MS tradition to BSOD on the first run attempt (RIP NT) I know myself and most others have been subjected to it,...right after a 2 hou ...Show All
Visual C# Tcp Chat
hello , i have a problem. im developing a client / server tcp chat. the problem is that it works perfectly when i run de server and the client in loalhost, i can work with several insances of the client if the server is local,.,, the problem is that when i tr to work on lan or internet... (lan with same workspace) it dont work... i do the next on server static void Main(string[] args) { Program pr = new Program(); IPAddress loca ...Show All
SQL Server Flat Files Containing Dates
Hi everyone. I'm trying to use a Flat File Connector to read in a fixed field width file that contains some date columns. The problem is that the date column is in a CCYYMMDD format (with no delimiters) so that todays date, as an example, would be 20050711. When it attempts to import the file it fails due to a "Data Conversion Failed" error. I can't find any way to specify the format of the column in the FFC dialog so my only option appears ...Show All
Windows Forms cycling through, and removing, listbox items dynamically
Is there a way to dynamically cycle through a listbox to erase the current elements I won't know how many elements are in the listbox either. This is what I tried so far, but doesn't seem to work: For Each index As Integer In myListbox.Items ...Show All
Smart Device Development Failed to open VPC Network driver
Hi, I have just installed VS 2005 Beta 2. When deploying to the emulator, it launches the emulator but then comes up with: "Failed to open VPC Network driver. The driver might not be installed". Thanks. I am posting this here, because it is one of the first pages that Google turned up on this topic, and since I struggled a bit with this, I would like to help other people with the answer. I am using Visual Stu ...Show All
Visual Studio Express Editions Saving text files
Hello, I am new to programming and I am wondering how to save to a file. I am trying to create a type of text editor, I can create the new text, save it as a new file, open it up and edit it, but I can't for the life of me find the code I need to save back to the file I just opened. If I need to post more info please let me know. Thank you in advanced for any help. System.IO. File .WriteAllText() ...Show All
Windows Forms convert object[] to ArrayList? (C#)
Is there way to convert object[] coll to ArrayList Maybe somebody knows <i>> as far as I know the array doesn't implment System.Collections.ICollection ... </i> Yes, it does. So you can just use: object[] o = ... ArrayList a = new&nb ...Show All
