ryan101's Q&A profile
Visual FoxPro Change tooltips when Hovering over a grid cell.
I am not sure if this is possible: I need to implement something like the new memo field content preview (When you hover over a memo field of a grid, it will show its content in a tooltip style). I need to show some additional info about a customer when the user is hovering over the account # in the grid. I have tried to manipulate the tooltip of the textbox, or the tooltip of the column at run time and it didn't work for me. Is this possible I'd rather not use a click or doubleclick to open a form, but rather hover over a cell in a grid. Thanks. It's possible but tooltiptext has a limit. If you want a VFP6-7 days implementation which is not perfect then I'll post it. ...Show All
Visual C# Character into bytes
Hi, I need help with turning a characters into ASCII bytes. Here is the code that I have worked on so far my problem is that I can't get to covert. using System; using System.Collections.Generic; using System.Text; namespace KyawPaineW4A1 { public class Crypto { public string getInput() { string getInput; Console .Write( "Please enter a single Character >" ); getInput = Console .ReadLine(); return getInput; } public char convertData( string input) { char convertData; char letter = char .Parse( Console .ReadLine()); convertData = letter; return convertData; } public void displayMessage( char letter) { ...Show All
Visual C# Cannot access a disposed object?
Hi, all In my program, there are 2 forms -- Form1 and Form2 On Form1, there is a button "Start", when I click on it, Form2 will appear and start plotting, and the text on the button will be changed to "Stop"... When I click on "Stop", Form2 will stop plotting, and the text on button will be "Start" again. However, when I close "Form2" and click on "Start" again, the following error will be shown: Cannot access a disposed object(object name: "Form2") So I can not open a form again if I closed it... Is there any way to solve this I hope I can start "Form2" again by clicking "Start"... Now, I just know to disable the "Cont ...Show All
Commerce Server Discounts : Need a working example
I have tried for the three days to solve this problem: Lista all products in a catalog with actual regular price and discounted price based on anonymous user. I have tried two examples, one on GotDotNet and one in this forum. We are using virtual catalogs. If no t solved I will have to use the cart and add/remove one item to recalculate price and compare with listprice (stupid a..). The GotDotNet solution never returns any value in discountContentSelectionContext.GetSelector().AllContentItems But the product pipeline works great fetching product values The Forum soulution returns my discounts but no DiscountItems after ApplyProductFilter executed. I would like some person at MS or You produce an example howto produce a working sa ...Show All
Visual Basic TOOLSTRIPBUTTON
Hello to all, sorry but i cant speack much english, and i will write some words with sense. Someone know how use toolstripbutton in time execution. if any have one example i will apreciate very much, thankz a lot. cya Hi. Whilst I appreciate that you don't speak a lot of English, you will have to try and describe your question/problem a bit more. "use toolstripbutton in time execution" doesn't really mean very much... ...Show All
Visual Studio 2008 (Pre-release) State Pattern Implementation
I am implementing GOF State Pattern as entities. In order to do it I need to change the entity type at runtime. Is there a way to do it For example I have an entity called UserState and it has two children: RegisteredUser and UnregisteredUser. I want to change the type from the UnregisteredUser to RegisteredUser at run time. Of course I can delete the UnregisteredUser and create a new RegisteredUser with the same primary key. But other entities are referring to the UnregisteredUser therefore it will violate the Referential Integrity. How can this be done in the Entity Framework If I understand correctly you want to have a Class UserState which referenc ...Show All
Visual Studio Team System change table relationships in a CTP project?
Is there a way to change table relationships within a CTP project dakerson wrote: Is there a way to change table relationships within a CTP project Change them to what Can you be more specific about what you want to achieve -Jamie ...Show All
Visual Studio add in user preferences
Hi, I'm working on an add in to VS and I'd like to be able to store user preferences. Could someone point me to the way to go I've thought of using a App.Config but I don't know if that's the right way to do this. Thanks for your help. App.Config makes no sense here. You can use either: - A registry location at: HKEY_CURRENT_USER\Software\YourCompany\YourProduct\YourVersion - A disk location at C:\Documents and Settings\<user>\Application Data\YourCompany\YourProduct\YourVersion. Ensure that you are using the Win32 API to get the name of the C:\Documents and Settings\<user>\Application Data special folder since it is localized in other languages and in Windows Vista it doesn't even have ...Show All
Visual Studio Team System TFS Webservice unavailable
Last week i built a TFS VM running win2k3 etc from a vhd created by a guy named Darren. I think it's a standard demo image. When joining to Redmond i renamed it uniquely. The original name was tfsrtm. Logged in as the admin i added my Redmond account. I also renamed the TFS website uniquely, the same as the machine, in IIS. The machine can be pinged but the TFS webservice status page yields "Service Unavailable" in IE. Of course then neither the server be added to the server list via Team Explorer (TF32001 on host TE & TF32005 on vm TE). That's what i need to get started! So here's what i've tried: Working on just the vm, I tried flushing the dns cache, gpupdate, deleting the userprofile tf cache and restarting visual stud ...Show All
Visual Basic Is it possible to more than one set of watched variables at a time
I noticed that the window for my watched variables is called "Watch 1". Is there a way to create mulitple windows an add different variables into each group From menu chose Debug -> Windows -> Watch -> Watch2. Then you can use it like Watch1 window. You can add watch expression via drag'n'drop or right click. You can have up to 4 Watch windows. ...Show All
Visual C++ use templated base class declared in 1 C++/CLI assembly in another C++/CLI assembly?
Hi, In C++/CLI, is it possible to take a template base class declared and defined in one assembly and use it as a base class in another assembly If so, how IOW: assemblyA: template < typename T > public ref class Wrapper : PtrWrapper< T > { protected: Wrapper( T* pObj ) : PtrWrapper<T>( pObj ) { // do something } ~Wrapper( void ) {} }; assemblyB: public ref class Batch : public CoreAPI::Wrapper< cBatch > { }; where T is an UNmanaged type (and cBatch is also). Both assemblies are DLLs, and both are CPP/CLI, if that matters. Wrapper is being successfully used as a base for many classes in AssemblyA. I can't get this to work. If I just have a reference in B to A, ...Show All
Visual C++ The com component problem when upgrading from vc6 to vc2005?
When I upgrading a vc6.0 project into vc2005, there is the following error:" Error 31 error C2039: 'BorderEffect' : is not a member of '_Chart' d: etrumform.cpp 1034 ". The code is as follows: _ChartPtr pChart; pChart->BorderEffect = BorderEffect_None; I check the definition of _ChartPtr as follows: typedef _com_ptr_t<_chart>_ChartPtr; I think that it is a com component here, can you tell me how should I solve this problem I appreciate your help. COM programming is the same under both VC6 and VS2005--forward compatibility is very important. I think you're looking for a high level solution to a problem that is probably in the actual definition of _Chart itself. Where did you get ...Show All
SQL Server Users and Roles script
In 2005, is there a way to automate this I'd like to be able to do this automatically periodically: 1) Script out the development users and their roles in my development database 2) Backup the production database and restore the it to the development database 3) Re-synch the existing users (sp_change_users_login), drop any obsolete users (sp_dropuser), and add any development users with roles back on Does anyone have a script that can help me achieve this Refer to this http://weblogs.sqlteam.com/billg/archive/2005/11/22/8414.aspx for more information, as you can use SMO in SQL 2005. ...Show All
SharePoint Products and Technologies Is Content Query Web Part really available in WSS 3.0 ???
I am going out of my mind (some may say, not a long trip) trying to figure this out. I have spent the best part of the last couple of days researching if the CQWP is or is not availble in WSS 3.0. All over the net I see articles mentioning that it is part of MOSS & WSS . However when I try to Add A Web Part to a site I do not see that web part in the list of those available. The nearest wp I see in the list is the Content Editor Web Part - but I realise that is not the one I'm looking for. Is there something I need to do to make it available or is it just not there in WSS (I have been assured by some bloggers that it is!). Thanks in advance! Its only available if you have the &qu ...Show All
Visual C# Visual Studio runs like a dog with more than 30 projects
Hi, Not exactly related to VS SDK, but don't know where else to post, looking for thoughts from people with a deep understanding of the VS IDE. Over the past few years of developing with VS, each time I add a new c# project, VS seems to get a little slower to do things, to the point that it sometimes takes 5 mins to just load a form in designer mode in the IDE when I have over 100 C# projects in my system. It only takes me a couple of months of full time development to get to 100 projects (99 projects compile to individual DLLs that contain 3 or 4 Winforms typically, one project contains the main exe) and then the whole thing runs like a dog. One of the projects is also a used by all other projects as having the base classes fo ...Show All
