MLG_CSE's Q&A profile
Windows Forms Is it just me :o(
Hi, I have been trying to find an answer, even a hint, but despite posting the following question on various forums i haven't even had a single reply for nearly two weeks :o(. "Why do treeview tooltips flash if the main form has its transparencykey set " Could a couple of people please try this (its a 67 second job) just so i know it isn't just my PC :o) You can replicate this behaviour really easily by (c# VS2003) 1) creating a new c# windows application 2) set Form1.TransparencyKey to the same as Form1.BackColor 3) Add a treeview to the form 4) Add a node to TreeView1 whose text is too long to display (i used 'whyisthishappeningwhyisthishappeningwhyisthishappeningwhywhywhy') 5) run the application and hover your ...Show All
Visual Basic vb6 to vb2005 problems
i have just converted my vb6 game to vb 2005, however i have a few problems - how do you read and write to text files in vb2005 . it worked fine in my game in vb6. but i'm guessing its different for 2005 (it threw up various errors when using the conversion wizzard) Similary i controlled the game using keyboard keys (left,right,space and escape) i cannot get this to work, nor can i find information on how to do do it - all the results from searches i do on google are confusing! Also i noticed that the game runs slower on vb 2005 than it does on vb6...is this becuase my code was done on vb6 and i converted it i shall post the code i had for my controls and text documents later on...if you need to see them. thanks in advance for any ...Show All
Windows Forms DataBinding CHECKEDListBox, how to make system autocheck items in the chkList as it populates items in it???
I m using VS2003, VB.net My question is, as we proide datasource property in the binding object for chkListBox, then assigns DisplayMember, ValueMember to bind the ChkList & it automatically pops the list [without writing any more code] I m talking about this lstInActive.DataBindings.Add( New Binding("DataSource", objFcPartySetup.DSPartySetup, "PartyInActiveRoles")) lstInActive.DisplayMember = "NameField" lstInActive.ValueMember = "IdField" but the chkList gets populated with no item checked, HOW WE TELL THE BINDING OBJECT TO CHECK THESE ITEMS WITH RESPECT TO SUCH DATABASE FIELD & KEEP UNCHECK SUCH ITEMS apart from writing a for loop & checking our ...Show All
Smart Device Development eMbedded Visual C++ support?
Hi, I am new to embedded world, I need to port an active-X control developed in ATL to Win CE. After going through few newsgroups, I am able to figure out that I need to install eVC 4.0 to achive this task. On my computer these are the software already installed. Visual studio 2003 Professional edition edition, Visual studio 2005 Team edition for developer, Windows CE 5.0 Emulator Windows Embedded CE 6.0 (Evaluation version). But now when I try to installed, it start looking for Windows CE platform Manager ( I am not sure whether this is the same platform builder, which is integrated with VS 2005, using Win CE 6.0 installer) and it get failed. It returns an error message " Set up encounter problem ...Show All
Visual C++ Errors 0x80004005 and 0X80070002
Errors 0x80004005 (-2147467259) Description:Unspecified error Code : CComPtr<IShellLink> spLink; hr = spLink.CoCreateInstance(CLSID_ShellLink); if (FAILED(hr)) { MessageBox(0,L"Unable to create shell link",L"Rup",0); return Error(L"Unable to create shell link", IID_IIndexShortcut, hr); } CComPtr<IPersistFile> spLinkPersistFile; hr = spLink.QueryInterface(&spLinkPersistFile); if (FAILED(hr)) { MessageBox(0,L"Shell link does not implement IPersistFile",L"Rup",0); return Error(L"Shell link does not implement IPersistFile", IID_IIndexShortcut, hr); } // and load it hr = spLinkPersistFile->Load( ...Show All
SQL Server Inserting images into 'MS Visual Web Developer'
Hi, Can anyone help me on; how to insert an image into 'MS Visual Web Developer' I would be v. helpful for your help From Dec(15) Create an images folder under your "website" folder and put your images in that folder. Drag drop this folder on to upper right window (solution explorer). Open images folder there and dragdrop the image you want onto design area. Alternatively you can add <img> tag manually or drop an image control from toolbox and set imageURL. ...Show All
Software Development for Windows Vista WF Designer - How to display Activity Full Name
Hi Dear, I would like to take a print screen of my WF Design to document my work but when the activity name is long then the WF Designer cuts the end of the name and replace it with dots (e.g., receiveCustomerOrder is displayed as receiveCustomer...). It would be nice if the WF designer allows adjusting the size of the Activity shapes (just like controls in a WinForm) but unfortunatly it does not. The shape size is fixed. Could you please advice on how to get the WF designer to display the Activity Full Name How can we resize the Activity shape (I hope that I wouldn't need custom activities for such simple feature) Thanks Karim Agreed tom. By why not make it an option Can't see why not g ...Show All
Visual Studio Team System Getting line Context
Hi, I would like to know how can i get all the lines in my code in a list. I'm using the "DoNotHardcodeLocaleSpecificStrings" rule to find all the strings in my code, but it is not good for me. I need to find specific strings and that i can do if i had a way to get all the lines. Is it possible is there any OpCode for that 10X. Idan. I'm not sure I understand. Do you want to get all hardcoded strings within a method For example: public void Foo() { string value = "Hello"; string value1 = "World!"; } In the above, do you want to get a list of strings containing 'Hello' and 'World!' ...Show All
Visual Basic Problem with looping
I've been working on some programming homework and my sentinel controlled loop won't terminate when I type in the sentinel value. My sentinel value works if I delete the gallons used prompt in the loop, but when I don't, it doesn't work. If anyone could help it would be great. Here is my code so far: Module MPG Sub Main() Dim milesDriven As Double Dim gallons As Double Dim totalMi As Integer Dim totalGal As Integer Dim miCount As Integer Dim galCount As Integer Dim mpg As Double Dim combinedMpg As Double Console.Write ( "Enter the miles driven or -1.0 to quit: " ) milesDriven = Console.ReadLine() Console.Write ( "Ente ...Show All
Visual Studio Team System Event subscription filter - limited to System fields only?
I'm trying to subscribe to a WorkItemChanged event with a filter expression that uses custom fields -- without success. I've been using Naren's handy tool from: http://blogs.msdn.com/narend/archive/2006/07/26/679440.aspx rather than bissubscribe.exe directly. "System" fields (title, area...) work fine, but no email arrives when I use other fields, including both "Microsoft.VSTS" fields and my own custom fields. Do only System fields work Must I write a web-service extension to check other fields Thanks, Liel Biran I looked into the eventing code and here are the fields that are always passed in event xml: Id AreaPath Title State Reason Rev A ...Show All
Visual Basic DataTable
What is the .Net Professional way of saving , Editing, Deleting in DataGridView. Mirza Ashraf, You post the same question in different threads. However, I recommand you to pay more attention to the save change when you for DataGridView control. Because sometimes, when you change data shown in this control, the database will not change. So I recommand you to read the following article on Auto Saving DataGridView Rows to a SQL Server Database: http://www.codeproject.com/cs/database/DataGridView2Db.asp ...Show All
Visual Studio Express Editions Command line build using VCBuild
Hi. I have a few questions/comments about command line build with Visual C++ 2005 Express Edition. 1. I have noticed that there is no 'devenv' in the Express edition (I got used to it in the VS .NET 2003 version). The IDE executable is 'vcexpress', but it seems it has no command line build capabilities. I assume command line builds are to be done using 'vcbuild'. Am I right 2. Running 'vcexpress / ' brings me a confused explanation which is a mix up of 'vcexpress' and 'devenv' which does not exist in the Express edition. This is clearly a defected help message. 3. If I want to use 'vcbuild' for building Win32 applications (after installing the Platform SDK), I also have to change the PATH/INCLUDE/LIB directories in the %VS80COMN ...Show All
Visual Studio Debugging Error Message of VS2005
--------------------------- Microsoft Visual Studio --------------------------- The following module was built either with optimizations enabled or without debug information: C:\Documents and Settings\ Peter Peter \Local Settings\Application Data\assembly\dl3\GK36Y4X8.1TR\K1JO6NOP.P99\bc8980d3\f0e49e63_711dc601\MyResources.dll To debug this module, change its project build configuration to Debug mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option. --------------------------- OK --------------------------- I didn't do anything but this error message come out from VS2005, I followed the "suggested" solution and of course, it doesn't work. Who know the reason of ...Show All
Software Development for Windows Vista Elevation manifest ignored
I have a created a simple test application for Vista in C# using VS 2005 and I have embedded a manifest file (using mt.exe as a post build command) but it appears to be ignored by Vista. When I run the application (which is copied to the desktop) it runs as the current user and doesn't prompt for elevation or anything. Does anyone have any ideas why this might be the case The following is my manifest xml: < xml version="1.0" encoding="utf-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="Privelidged" type="win32"/ ...Show All
Windows Forms Setting field when adding new item using BindingNavigator
Hi, I have a binding navigator on my form. On the form there are fields that are bound to a datatable. The table requires a field to be set (not DbNull). That field isn't visible to the end user. I am able to set this field hitting save in the binding navigator. However I want to set it when hitting New Item. This button is bound to the AddNewItem property of the navigator. Setting the field in the bindingnavigator AddNewItem event and setting it in the Add New Item button click event does not set the field. How can this be done Thanks. BindingNavigator.AddNewItem seems to be useless, as example Exceptions can not be catched. Solution: 1. Set BindingNavigator.AddNewItem = None (D ...Show All
