Vonny232's Q&A profile
Visual C++ UI Unresponsiveness in CWnd derived control
Hello, I am currently working on a MFC project that has a control that is derived from the CWnd class. Inside of the class, there is code to dynamically create editboxes and other standard windows controls from within the CWnd class. My question is, upon drawing the control on the screen, I can all of the subcontrols (controls within the CWnd derived control class), however when I click inside say an edit box, I do not see a blinking caret, and when I enter data into the text box it fails to update. What would be the cause of such an issue in MFC Sincerely, James Simpson Straightway Technologies Inc. There are many potential causes. I don't really understand what the problem is, except & ...Show All
SQL Server I did So..
dear sir, i am facing problem while making perspectives in sql server2005(Analysis Services) through C#.perspectives are made well but cant update within a Cube...i mean cant be added to a cube... i dont know what is the problem.so if someone can help me in this regard i will be really thankful to u. Thanks. First question comes to mind after reading about your problem. After creating perspective object did you do something like cube.Update( UpdateOptions .ExpandFull) Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual Studio see-reference to generic method from addiotional content htm file
Hello, using the Sandcaste Help File Builder, I have a bunch of "additional content" htm files where I sometimes use <see ..> tags to reference the generated documentation. How do I correctly reference a method with a generic type parameter from such additional files I tried both <see cref="MyClass.MyMethod{T}(byte[],bool)" /> and <see cref="MyClass.MyMethod<T>(byte[],bool)" /> but neither works. The former version is the syntax that works within the class library docs, but does not seem to work coming from additional content. Thanks Karlo The cref value can be a full or partial identifier for an item in any documente ...Show All
Visual C++ How do you set the name of a thread in C++?
This is something that I've been able to do in linux development, but I have not figureed it out in Visual C++. I've noticed that the thread list contains names, however they are always the same and I cannot seem to find the way to name them. This is not an MFC application. Currently, I'm using _beginthreadex to create the thread. See the following article: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsdebug/html/vxtsksettingthreadname.asp ...Show All
Visual Studio Express Editions SQL data binding to controls question
Hi, I am a "noob", taking an intro to VB course and trying something that is, I'm sure, well beyond my skills! But... it's fun to stretch yourself isn't it! : ) I am creating a program for a friend and I to track picks in a weekly NFL pool between the two of us. By the time I finish it, I'm quite confident the season will be over! (LOL) Here is the gist: The main page is a form where the user selects which week of the season to make picks for. It has a drop down list bound to a WEEKS table to show the distinct week numbers of the season. That works fine, thanks to many previous posts that I found and used to get that working and I can see and display the weeks. The question I have now is, how do you assign data from th ...Show All
Visual Studio Express Editions copy and paste listbox items
i am creating a program that runs a game and then lists the 'results' in a listbox. i want the end user to be able to copy and paste the items in the listbox to another program, say, word. i have changed the select to multi, so i can select all the rows, but can't do anything with them. can anyone help me out. thanks in advance. btw, i'm using vb 2005 express edition. well to copy the contents selected to the clipboard, get the items selected, append it into a string and save it into the clipboard. Example: Dim theBuilder as new System.Text.StringBuilder() for each currentItem as string in theListBox.SelectedItems theBuilder.Append(currentItem) theBuilder.Append(Environment.NewLine) ne ...Show All
.NET Development Web Service - view xml?
Hi, I'd like to be able to view the raw xml that my web service reference is sending during a method call. Is there a way to do this, or should I just use a packet sniffer Thanks, Mike Unfortunately nothing build in the product for this, but there are number of external tools available, you can download number of then from gotdotnet: TcpTrace, WebServiceStudio,.. or you can just use netmon, or write a soap extension. Thanks, Elena Kharitidi ...Show All
Silverlight (formerly WPF/E) Drag element on Grid
Can we user Grid for dragging the elements I have seen some existing examples of dragging but all of are with Canvas, in fact I need example with Grid. Cheers WPF/E does not currently support a grid control however we are considering a grid control for a future release. Joe ...Show All
Visual Studio Express Editions Creating Icons
I have been trying to create an icon and saving it with paint as "icon.ico" but it isnt accepting it other icons will be accepted does anyone know why this is happening Polarbear541 oh that isnt working either do you know any software that creates icons when it doesnt accept it, it displays "argument 'picture' must be a picture that can be used as an Icon." it just goes back to the default icon ...Show All
Visual Studio Express Editions ATL/Browser Helper Objects
I want to create a simple addon for Internet Explorer and after a bit if research I read on msdn that the best way to do it was by creating it as a Browser Helper Object. The article explained that the best way to create this was by using an ATL template in VC++. I installed and reinstalled VC++ Express several times and somehow managed to get it working(!) (It corrupted my registry, I had to fix it in DOS, countless other problems). There is no mention of ATL in the New Project wizard so I read up again and have read numerous conflicting articles about how VC++ Express doesn't support ATL (or MFC) and yet people have used it to create ATL projects. I'm new to all this but the object I want to create is so simple I thought it would be a ...Show All
SQL Server Check DB existence before running a report
Hi there, I use the following SQL statement in my .NET apps to check whether the database to use exists on the db server: if exists ( select * from master . sys.databases where name = 'contentdb' ) select 1 AS dbexists else select 0 AS dbexists If the database exists, this query will return 1, else it will return 0 and my app will display a friendly user error, saying that database maintenance is preventing the user to access the application at thus moment (or something like that). Is this (or something like this) possible before running a ssrs report, so I can display a friendly error message Many thanx! ...Show All
Visual Studio 5 Days with CR XI Rel. 2 - or .. the horror never ends ...
Hi Folks ! i want to share my experience with Crystal Reports XI Rel.2. The Task was: Create two Reports (very similar) in a .NET 2.0 Winforms application. The reports had to be exported to pdf. Now... As licenced user of Crystal Report 10 Developer i was disappointed, that i couldn't use it in .net 2.0. even for the simple report. So i decided to use the embedded CR in VS.2005. so..I created the report, made a copy for the similar report and everything looked good. Until i tried to export to pdf. It simple fails. After 1 day i realized, that it had huge problems with some fonts. Using arial or times new roman it worked well. But i had to use the font of the customer. Solution: i found a optical similar font, and that worked. Next Pro ...Show All
.NET Development SupportAutoEvents': no suitable method found to override error
I have brought a VS 2003 project to vs 2005 and made some changes, I keep running into a error on my usercontrols Error 18 'ASP.admin_usercontrols_navigation_ascx.SupportAutoEvents': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tcatoday\b6bf9972\5211f187\App_Web_r5woc1lm.4.cs 150 What have I done to these files to cause this error and how can I fix it. Sorry to sound stupid, but what do you mean by remove the namespace I am having the same problem. Thanks in advance. ...Show All
Visual C# How get Graphics object a Panel
Hi all, I am finding the way to draw an image on a panel. I have tried out the method that puts the drawing task inside overried onPaint() method and call invalidate(). However, my application need to do custom drawing depending on very different cases. Hence, forcing all drawing command in one method onPaint() is not flexible. I want to get the Graphics object of a panel ( as a member variable of a class) and then I can draw on it anywhere I want. I tried to get g=Graphics.FromHdc(myPanel.Handle) but there was an error saying myPanel.Handle value is out of range. I guess this is because panel's handle had not created. Would anyone please give me some example and hint on this issue Thank a lot! Regards, Stefen Huynh ...Show All
Windows Forms help with combobox
hi all. my application is in c# winform .net2005. i have a very strange issue with the standard combobox. on my form i have a combobox. i set it's datasource,displaymember,valuemember. and then i wrote: cb.selectedvalue=1; (some value that exists in the datasource) BUT- sometimes the values is entered correctly and i can see it in the combobox, and sometimes the selectedvalue is set to null !!! why Hi, Normally, it should work properly... but lets analyze your problem, 1. Check that in those *sometimes* cases, the DataSource has the proper values. Because some times if your data base operation fails or if records doesnt exists in your return results then ComboBox will have such problem 2. Where you a ...Show All
