Critcho's Q&A profile
Visual Studio Express Editions CListCtrl - Disable click on the null text below an icon/image.
Hello, Can you tell me if there is any way by which i allow selection to happen only on the icon. I have created a custom list control derived from CListCtrl. I have no text, only images closely packed. I have set the text as null. For every icon/bitmap below each item, when I click in some 10 pixel range below the icon/bitmap. It gets clicked. I want to disable this click ... any clues please help jupitor hi Martin, I dont get the event for my CListCtrl at all !! :( Can you send me the sample you have created jupitor_rule@yahoo.com Jupitor .... ...Show All
Visual C++ Compiler version information table
I can't find anything on Microsoft's website but what I am looking for is some sort of Rosetta stone showing which version of the compiler is being used mapped to the MS name for the compiler. For example: Compiler Version ==> MS Name 14.00.40310.41 ==> Is the MS Visual 2005 C++ compiler. 13.10.3077 ==> MS Visual 2003 C++ When typing in "CL" at a command prompt, I get the version onf the optimizer. I don't get "MS Visual C++ 2005" or even "C++ version 8.0 compiler" Does anyone know where such a table is Thanks. D:\temp>CL Microsoft (R) C/C++ Optimizing Compiler Version 14.00. ...Show All
Visual Studio Team System Strange behavior from IDE while running tests
I am following the "How to record and run a Web Test" walkthrough. If I go to the Test View panel and select "Run Selection" on my coded web test, everything goes as expected. However, if I hit F5, as is my habit, it starts by running a manual test (and I tell it to pass this test) and I stop debugging at some point. But then the IDE seems to get stuck in a state between debugging and not-debugging. I cannot edit files without getting a warning dialog about being in debug mode, but the Debug menu shows that I am not debugging. If I try to run just my coded web test (which will normally run fine), it throws an exception. I have to close the I ...Show All
Windows Forms Dynamically Resizing a Control
Please help guys, I have some NumericUpDown controls that are being populated from values read from database at runtime. I want to be able to resize the NumericUpDown controls dynamically at runtim to accomodate the lenght of the decimal values that are retrieved from the database..is there anyway I can do this... that did it!! I add a default value for the border and spinner size...U've been really helpfull...I thank you from the bottom of my heart...God Bless ...Show All
.NET Development Virtual PC On XP x64
Hi everyone, Does anyone know if it is at all possible to get Virtual PC 2004 running on XP x64 Edition. Ta. McGrunter Hi, It is not possible to run Virtual PC 2004 on a x64 machine with a 64-bit OS running on it. This option will be supported on Virtual Server 2005 once SP1 is released for Virtual Server 2005. Read More here: http://www.microsoft.com/windowsserversystem/virtualserver/evaluation/sp1beta.mspx Regards, Vikram ...Show All
Visual Studio Tools for Office Print information of control
I have a statistical application in which I have a Grid and MS Chart, now I need to print the information that they contain. How I can print the content of the controls , Where I can unload a code of example Thanks Klarita, I'm sorry you are at a bit of a bump in the road with your solution. The Grid and MsChart controls are not part of our VSTO toolset as such. You will get a fast answer by consulting a more appropriate forum or newsgroup as well as other resources. This forum is mainly for issues that directly pertain to the Visual Studio Tools for Office tools per se. Here are links to resources that will help you. excel ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Preventing memory leaks
Hello, I am trying to make my project clean and so I am looking for memory leaks reported by DirectX debug driver. The problem has two parts: 1) if I set a "Break on AllocId" in DX configuration with Id obtained from previous program run where DX reported memory leak, project is stopped on absolutely unrelated piece of code - is it possible that it takes some time for DX to stop it when it catches a problem how can i find the exact location could this be because of I am running it multithreaded 2) I discovered that even such calls as SetStreamSource, SetIndices, etc. throw a memory leak if they are not "unloaded" by th ...Show All
Windows Forms Is there a built in Most Recently Used (MRU) class?
I want to implement a MRU list for recent files in my Windows Forms application, and I want the data to be stored in the user.settings file. This seems like a very common task, so I'm wondering if there is something like this built into the framework. Or available somewhere else. Any thoughts Thanks! Erick This CRecentFileList leads to Add Command Handlers for MRU Menu Items in MFC Application Looks like it can not be used in windows forms. Any clue or help I do not know whether I can use it or not Thanks in advance, ...Show All
Visual Studio Express Editions DataAdapter Update Error :Syntax error in INSERT INTO statement
I am trying to add a record to an Access DB Table, everytime I try to update the DataAdapter with the updated DataSet I receive the Error: Syntax error in INSERT INTO statement. Here is the code: Dim da As OleDb.OleDbDataAdapter Dim ds As New DataSet Dim con As New OleDb.OleDbConnection Dim sSQL As String con.ConnectionString = "PROVIDER=Microsoft.jet.OLEDB.4.0;Data Source=Alarms.mdb" con.Open() sSQL = "SELECT Message FROM [AlarmsList]" da = New OleDb.OleDbDataAdapter(sSQL, con) da.Fill( ds, "AlarmList" ) Dim dsNR As DataRow Dim cb ...Show All
Visual C# Return from recursive method !
Hi. I have a project that have a recursive method. this method is a search method in a tree. I want to return from depth n in tree.In other words,when mothod is called n time and find asolution in depth of n, runing method is stopped and return to main method and first call in stack. plz help. Thanks. Not sure how you are implementing the tree. Just in case if this is a Windows Form application, and if you are using TreeNode objects, then it has a Level property which tells you how deep the node is in the tree. ...Show All
Windows Forms Need help populating a DropDownList in and EditItemTemplate
I have a dropdownlist that I have in an EditItemTemplate that I need to populate with a list of files in a directory on my web server. Currently, this is how I'm retrieving the file names: DirectoryInfo dir = new DirectoryInfo(@"e:\web\xxx\htdocs" + strPath); FileInfo[] bmpfiles = dir.GetFiles("*.*"); foreach ( FileInfo f in bmpfiles) { ddl.Items.Add(f.Name); lblMessage.Text += "Name is: " + f.Name + "<br>"; } From my web form I am calling this class, passing in a path (directory name), the DropDownList I want to add the items to, and then a Label to see the ...Show All
.NET Development White space below a nested table
I'm sure this has been asked an answered, however, I am finding difficult to remove the white space that appears below a nested table. In otherwords, I would like the table to fill the entire cell (<td>) however, it seems to leave a line, below the nested table in the cell. Is there a tag or setting that will illiminate this behavior <table cellpadding="0"> <tr> <td style="background-color: #00FF00;"> <table width="100%" height="100%" cellspacing="0" border="0"> <tr> <td style="background-color: #FF0000;"> aaaaa ...Show All
Windows Forms Form Resize incorrectly
I have a problem with Form Resize: Make a Form (autoscalemode DPI), place one button in the lower right part of the form(Autosize false - Anchoring None). When I then resize the form, either in design or run mode, the button does not keep its location. Not even if you consider it is the top left corner that should be in the same relative position. The button disapears out of the right corner when the form is made smaller. It looks as if the resizing is only doing half of the resizing it should do. I have now written a Form_Resize event which works, but I don't understand why the resizing in VB.NET does not work correctly. Anybody knows the t ...Show All
.NET Development ListBox magically disappears
If I have a listbox that is databound to a sql database and the width/height is either set to a static value or no value then it displays correctly. Now, if I set the width/height to 100% it disappears both during design time and run time. I just want to set the listbox so that it fills a table cell. Thanks for looking dave I'm guessing this is a webform application since you are setting the value to 100%. Is that correct Try creating a stylesheet with a style class of 100%, then setting the CssClass of the document to the stylesheet class you just created. It may work a little better for you. ...Show All
Visual Basic disable windows keypreview
Hello, is there any way to disable to keypreview function of Windows XP in Visual Basic2005 Express thnx What do you mean with keypreview There is a keypreview property on the form. Is this what you mean If it is globally for all windows you need to look at installing a keyboard hook. http://blogs.msdn.com/toub/archive/2006/05/03/589423.aspx ...Show All
