DWinTX's Q&A profile
.NET Development Column Color change and DataGrid scrollbar
Hi, 1. I am working with a datagrid and i want one of the columns background color to be red. How to achieve it. For eg; if i am having 15 columns, i want the 6th coloumn BGcolor to be in red at the time of form load event. 2. I want to access the datagrid's built in scrollbar. actually the scenario is i am having 15 columns in the datagrid. The horizontal scroll bar should start from the 5 the column rather than from the first. so that the first 5 columns remains static and the balance columns scrolls. it will b high helpful if provided with sample coding. tu. ajay, If you have further questio ...Show All
Visual C++ add DLL with lib-File to Projekt
Hi, first, sorry but I donst speek wery well English ! I've add a DLL to my Projekt, but in the "tree_import.h"-File have I Errors: tree_import.h: error C2011: 'CNode' : 'class' type redefinition File: tree_import class __declspec ( dllimport ) CNode { ........... }; __declspec ( dllimport ) void treeLayout(CNode* root, int dir, int x, int y, int dist1, int dist2, int & width, int & height); I've import the lib-File in the Projekt, and That File Work on another Projekt. I try now to import that DLL on my Projekt Thanks for help Take a look at http://msdn.microsoft.com/library/default.asp url=/library/en- ...Show All
Visual Studio How can you provide input to AddProjectDependencyAction without a wizard?
I would like to use the AddProjectDependencyAction but I do not want to gather the project input information from the user through a wizard. I am able to derive the project names as strings in the recipe but the Action wants EnvDTE.Project types as input. I attempted to use the ProjectConverter but have been unsuccessful. Is it possible to convert a string argument into a EnvDTE.Project Argument and then pass that to the AddProjectDependencyAction You can pass the hardcoded string using a value provider, and use the ProjectConverter class. This class converts a "virtual" path to ...Show All
Visual Studio SourceSafe plug-in in Beta2?
Any of my projects that previously were connected to SourceSafe now generate an exception that the plug-in is unavailable. Sure enough, there are no source control plug-ins installed. Is this something that must be independently installed to access Source Safe Strange that this all worked just fine in Beta1. I have successfully installed Visual Studio Team Suite Beta 2. I still get that error. I am not using Team Project yet so I don't really care about that. Let me know, please! thanks, Darcy ...Show All
Windows Forms Custom Control Icon
Hi!! I have make an custom Control that inherits from textbox and adds it severar validation functions and maskedit. Now I want to add a icon to this control to showit in the IDE ToolBox and add it to forms in design graphical mode. How can I add a "toolbox Icon" to my control crazy, i wonder why they picked that&nbs ...Show All
.NET Development Why there is a huge jump in the time used?
Hi, I've a quetion which has bugged me for several months. I wrote a .NET Web service which is hosted by IIS 5.1 on a Windows XP SP2 machine. This Web service just get the content of the specified txt file and send the content back to the client. The processing time on the server side was logged. The file sizes and results are listed below (in millisecond): FileSize: 1K 2K 4K 8K 16K 32K 64K 128K 256K Ti ...Show All
Visual Basic Help using for...next
Using Microsoft Visual Basic 2005 Express Edition I am trying to make a for..next statement that clears the text of several text boxes. All the text boxes are called: Textbox1 right up to Textbox9 So i thought using a for..next statement, each time it loops through two strings are combined, one containing textbox and the other the loop number e.g. 1, 2, 3. But i had two problems, one i could not combine a string and an integer, and the other is putting the string as an object, (so Solution.string+integer.text). Here is my code that I was trying to use: ------------------------------------------------------- Sub workout1() Dim tex ...Show All
Visual Basic button to browse folders
This question may be too hard to answer in one post but if you have links to tutorials that would be great. I want to make a program that converts pcx images to bmp images. I want to make a button that opens the explore box so the user can browse their folders for the pcx file, then one that saves the image they loaded as a bmp image. This is probably real complicated but do you know where i can start i got the open file dialog to work and opened a pcx image.so far all has went well.now i need some info on the graphic file conversion.what components handle it ...Show All
.NET Development csc process running for executing .NET Applications
I have a .NET Windows Application and when I run it by double clicking on the .exe I notice the process csc running for a bried second or two. Does anyone have an idea as to why this is happening. I am not using System.Xml.Serialization.XmlSerializer directly but I am using the Enterprise Library. So does this mean if I use something like the Enterprise Library I will have this problem ...Show All
Visual Basic detecting click event in a graphics region
I wonder how we can detect a click event in a region. Pls advise! thanks so much! You sure can! Dim path As New System.Drawing.Drawing2D.GraphicsPath Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load path.AddEllipse(60, 60, 100, 100) path.AddRectangle( New Rectangle(10, 10, 50, 50)) End Sub Private Sub Form1_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me .Paint ...Show All
Visual Studio Team System Systems Designer does not update web.config
AD successfully updates the Impersonate setting in web.config, whereas Systems Designer does not. Am I missing something I can override the Impersonate setting, whereas I set the password and UserName as not-overridable. Any assistance would be greatly appreciated. Hello Jean-Pierre, If I'm understanding you correctly then this is not limited to the setting that you mention. For example, if I set authentication mode to "Forms" in Application Designer the config file for the implemented app will show that setting as "Forms", even if I include that app in a System and override the setting to "Windows" in System Designer ...Show All
.NET Development Remoting and events
I'm completely disappointed of .NET Remoting. I'm developing an application which requires messages to be sent from a server computer to clients connected to it. Apparently (correct me if I'm wrong) there are two ways to do that: TCPChannels and direct tcp communication .NET Remoting Since I find TCPChannels to be very low level procedure, I want to use .NET Remoting. However I've lost the whole day searching for code on how to implement events over remoting. I haven't found very few incomplete examples for .NET 1.1 and VS2003 and none for .NET Framework 2 and VS2005. I finally came to this forum to find out that .NET Remoting's future ...Show All
Software Development for Windows Vista Ressource compiler in 64-bit!
I'm using VC++ and all our project are x86/x64 hybrid project, it's working fine but for one little thing. I have some problem with the rc file, in 64-bit there's NO define to detect if we are in 64-bit or 32-bit. I try to automaticly set the architecture in the file version properties, so I only need to set it in one rc file that all project already include. I tried all the following macro and NONE of them are defined for rc.exe : _WIN64, _AMD64_, WIN64, _M_AMD64, _M_X64 All those macro are working in my cpp file but not in the rc file. I can manually do a /D "_WIN64" for the rc command line in 64-bit but I d ...Show All
Visual Studio 2008 (Pre-release) "yield enumerate"...
(Slightly off-topic, but it at least deals with enumerations.) Lately, I've found myself using the following pattern: public IEnumerable<T> Foo(IEnumerable<T> values, IEnumerable<T> moreValues) { foreach (T t in values) { yield return t; } foreach (T t in moreValues) { yield return t; } // more yielding } For example, if I want to maintain the sanctity of values, but catenate another set of values (checksums, e ...Show All
Software Development for Windows Vista Custom Activity Approach
I am working on a custom activity that will provide the following functionality: 1) Allow user to enter a usercontrolurl as a property 2) Allow user to enter a resource/roll as a property 3) Execute invoke method and pass the above parameters 4) Execute event sink to wait for the user to complete the page I have finished 1-3, I am stuck on 4. How could I make my eventsink trigger based on a identifer that was sent to the host in step 3, instead of a predefined event that was defined in the interface service at design time Thanks in advance. Mardo I am also attempting to do this. However when i add one or more handle ext ...Show All
