sureshv's Q&A profile
Windows Forms Display multiple fields in a DataGridView cell
Hi All! How do I display multiple fields (1 line per field) in a DataGridView cell... i need to display it like below: Cell1 | Cell2 ------------------------------------------- ID | Desc Name | Other Field Address | etc. ------------------------------------------- ID | Desc Name | Other Field Address | etc. -------------------------------------------- Any help will be very much appreciated. Thanks! follow up question... i need to format each line so that the first line sho ...Show All
SQL Server SQL server 2005 POOR performance on a good dev machine
Hi there, I was wondering why my installation of SQL server 2005 on my Del inspiron notebook is so slow when using the Management Studio. I get the message that sql server is waiting for a process to finish quite often and it just seem to be bloody slow in general- like when i populate a table by hand I have a dual core intel 2.6gHZ Dell Inspiron with 1gigs of RAM and a 7200rpm drive. It should be more than sufficient. Regards Mike I am having exactly the same issue on my dual core AMD. It runs faster on my 2.8 celeron laptop on MSDE 2000. Something is wrong with SQL Express and dual core. I wish MS would get on this problem ...Show All
Visual Basic Threading in VB.NET is complex--any alternatives?
[Background and rant first; question below.] In VB5, I wrote a simulation model with 2-D animation on the form. I could start, pause, continue, and stop the simulation. While the simulation subroutine was running, the form controls still processed user's clicks, and the simulation could query the controls' state and pause or stop as requested. It was all in one thread; I didn't even know what a "thread" was. Now, I'm writing in VB.NET another simulation with 2-D animation. I want a "control center" form with start, pause, continue, and stop buttons, a small progress bar form, and an animation form. These have to communicate using shared data and event firing. I am spending a ridiculous amount of time learning a ...Show All
Visual Studio Express Editions VC++ 2005 Question
Hi, I am trying to use the code like the one described below...... namespace MyPhone { public class ref phone { ....... private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { callFunc(); } public: void callFunc() { tryThis(NULL, proc, NULL); //proc is another function it has to call - Error } public: proc(void* p1, void* p2, void* p3) { .... } .... }; } The above code gives me this error: error C3867: 'MyPhone:hone:roc': function call missing argument list; use '&MyPhone:hone::EventProc' to create a pointer to member can anyone please help me resolve this error. I tried creating delegates as per msdn, but I guess, I am losing some syntax. I am not that great with VC++ .Net, can you please tel ...Show All
SQL Server Can I store extension dependencies outside of reportserver\bin?
I wrote a data processing extension for reporting services. My data processing assembly references several assemblies which we have until now copied into the reportserver\bin folder. But, we'd rather keep these referenced assemblies in a central location so that there aren't multiple copies scattered throughout the computer. So to see if this was possible, first I copied one of the referenced assemblies into a subfolder of bin\ and tried the following in rsreportserver.config and web.config: - Using the <probing> element to specify the sub-folder - Using the assemblyIdentity and codeBase elements to specify the absolute folder - Using the assemblyIdentity and codeBase elements to specify a URL (I made the folder a virtual directory ...Show All
Software Development for Windows Vista Unresponsive main window during RenderFile
Hello all, I am trying to develop a simple windows media player application. I am able to display the video onto a window that i created. I am unable to control the window (to minimize, maximize, close or move) when a file is playing. However I am able to do the same after the file has stopped playing. Could anybody point to where i am missing anything. Please refer the code below. Thanks and reagrds, Bala #include <dshow.h> #define WM_FGNOTIFY WM_USER+1 char szWinNamw[] = "My Window"; MSG msg; HWND hMainWindow; IGraphBuilder * pGraph = NULL; IMediaControl * pControl = NULL; IMediaEvent * pEvent = NULL; IVideoWindow * pVidWin = NULL; LRESULT CALLBACK WindowFunc(HWND, UINT, WPARAM, LPARAM); DWORD WINAP ...Show All
Windows Forms Tabbing not working in MFC + .NET app
Ok, I've got an MFC/.NET hybrid app. The main form and functionality is MFC. There was an add on form I created that was done in a .NET form (it had the functionality I needed). The .NET form is not modal and you can switch between the two at will. Tabbing between controls works perfectly in the MFC form and all its dialogs. However, on the .NET form, tab does nothing. You cannot tab between any of the controls on the .NET form. I have set the TabOrder and TabStop on all the controls but it still does not work. I've done some searches but couldn't find the answer. Any ideas Thanks for your help. PS, I hope this is the right forum for my question! Y ...Show All
Visual C++ mfc70.dll not found :(
Gday when I used one of my programs it said I need MFC70.dll cause it was missing so I need a download link to download it. Thanks Ayman Shoukry - MSFT wrote: Then please contact the owner of such application. I don't believe you can just download the dll by itself. The application in my case is FSEdit from the MS Flight Simulator 2004 SDK. That would make Microsoft the owner. Who at Microsoft should I contact ...Show All
Visual C# linkedConfiguration information not shown in ConfigurationManager
Hi, I'm having difficulty in getting the linked configuration to work correctly. I have the following element in my app.config file but it fails to show the information from the general configuration in configuration manager when the program has run. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <linkedConfiguration href="file://c:\MyFolder\MyGenereal.config"/> </assemblyBinding> I know that the url is correct as i can ctrl - left click it and VS doesn't show any exceptions when i debug the app using F5. Any ideas Thanks in advance JK It really doesn't work :( I tried this: main.cs: public class Tester { public st ...Show All
Visual Studio help on hook up html help .chm with win app
Hello, I have build a windows app in vs2003, and also created a chm using html help workshop 1.4. I think I am down to my last task which is to hook them up to each other, but I definetely could use your help for my help system. Other than next link, I did not find much help on msdn, or help comes with the workshop SDK. http: / / support. microsoft. com/ kb/ q183434/ I have a menu item mnuHelp, when it is clicked, I want to launch my .chm. The code sample from above link is "buggy". I will post what errors I've run into if any of you tell me that's best and right path I need to keep beating through. Thanks! Please ignore. I don't know how I ended up with above example. I found out an easy ...Show All
Software Development for Windows Vista drag one file in command (cmd32.exe)
Hi, I'm instaled windows vista beta 2 ultimate version(build 5384) yesterday. When i test .net application version 2.0, the application throw one exception. I try drag ".exe" file to command(cmd32.exe) to see the error but vista doesn't accept this. What's happen This doesn't work more This is very important to microsoft developer platform . Luiz Gonzaga Mendonca Sadly, this functionality was a victim of Vista's stricter security policies. Csrss is a high-privilege process and you can't drag/drop to a process with higher security. ...Show All
Visual C# System.IO.Log Namespace problem
Why don' I have the system.io.log.dll assembly ! I need the System.IO.Log but I can't get it. I can't even find the file on the disk or add it as a new reference to the whole project. Thank You! Same thread here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1054787&SiteID=1&mode=1 ...Show All
Visual Studio 2008 (Pre-release) How to turn of WS-Policy?
Hi Community, I created WCF service with X509 certificate using BasicHttpBinding. The reason Basic is to get Basic Profile 1.0 and BSP 1.1 I am using IBM Integrated development environement http://www-306.ibm.com/software/integration/wid/ to generate the proxies. The tool does not support WS-Policy and will not allow to generate proxy. The IBM platform supports X509 security. I want to test this out. One of my option was to somehow turn off the strict policy and try that way. Please send any comments/suggestions. Thanks in advance, - Pankaj. Pankaj, You could try manually deleting the policy assertions and its references from generated WSDL, and check whether it is working. ...Show All
Windows Forms Synchronizing datagridview/listbox and textboxes
Hi, I'm just getting started with C# and Windows Forms and as a learning process i want to create a simple application that will display certain fields from a table in a DataGridView and the remaining fields in textboxes below the DataGridView. What i'm having a problem with is synchronizing the DataGridView and textboxes so that when i click on a row in the DataGridView the textboxes get updated. I'm just not sure where to get started with achieving this. I've read in the MSDN library about "Ensuring Multiple Controls Bound to the Same Data Source Remain Synchronized " and some information about the CurrencyManager class, change notification and stuff related to that but either i'm not understanding the examples or they are stop ...Show All
Visual Studio Express Editions Inline assembly in VS C# Express ?
Hello. I could use some help right about now. I'm writing a command-line Application for loading a bmp image, processing it, then controlling a CNC (Computer numerical controlled) mill, based on the info in the bmp image. Now, the problem is that I need a bitwise access to the data. and I can't find a "BIT" level type, and neither operators at that level. What I currently do is : I read a byte, (Or several) from the bmp file. (After loading the bmp header into an object of my own creation). I then load these bytes into an array. However I find it kind of hard to manipulate this array in a correct fashion to display and edit what I want. Current array is of type int[][]. What I would like is a "Bit[][] array". That would ...Show All
