phanikumarkvr's Q&A profile
Visual C++ Urgent !! Update the DataGridView contents on Form1 in a thread
Hi guys, I am using Visual C++ in Visual Studio 2005 (.NET 2.0). I have created a Form application. The Form is called Form1 and on it is a DataGridView with say 11 columns and 5 rows. Then when the user clicks a button on Form1, I will go off into a thread using BackgroundWorker to do some calculations and I want to update the content of the DataGridView on Form1 "from" the thread. But I get this System.InvalidOperationException: Corsss-thread operation not valid: Control 'dataGridView1' accessed from a thread other than the thread it was created on. What is the best and correct way to do this please help. Thank you very much Cheers Davo sorry I c ...Show All
Windows Forms How can I call a form's paint method?
Hi all! I need to redraw my panel, but how can I call the paint method directly 'cause I only made changes on a bitmap, so that paint event doesnt happen.. So, my problem is, that the paint method needs the 2 arguments ( object sender, PaintEventArgs e ), but what is needed to take over Thx! By the way the same question at the other methods, where the 2nd argument's type is just EventArgs.. Using refresh() causes a small flicker on the screen. Is there a way to achieve a refresh or paint update without this flicker ...Show All
Windows Live Developer Forums Http Authentication, Custom blogs, Atom (APP), etc...
Are there any plans for supporting APP for custom blogging sites So far I see support for the Metaweblog and Movable Type APIs for custom sites, which are both based on Xml-Rpc. But Xml-Rpc doesnt do Http Authentication which prevents us from integrating a blogging service within our existing windows auth secured web application. ...Show All
Visual Studio 2008 (Pre-release) how can i kill all connections of users to my sql server database ?
hi i have a small question here : is there a way to kill all connection of users to my sql server database in order to restore it i've tried a stored procedure using the proc ( kill ) : but this proc has not succeeded to kill the connection of my sqlConnection object , what should i do and can the SMO help me please answer regards. Hi David, To kill all the connected database users follow the below steps. Create a Store procdure with the following steps. 1) Get the processes attached to that database: SELECT spid FROM master..sysprocesses WHERE dbid = DB_ID( @DatabaseName ) and AND spid != @@SPID Note : @@SPID is your connected in ...Show All
Visual Studio Tools for Office How do i Hide fields so that they don't take up space on my form in infopath ??????????
I am saravanan, i am new to infopath, i got ur mail id from Google group. actually in my case i am using 2 repeating sections under one section. if i hide one of the repeating section from that( using Conditional formatting) the space we desinged for that repeating section is still shows in the out put form, that means that it is hiding the section and inner things. Can't i use that space Or i need to set some other propery to utilizz that space Sample here ========== Section ______________________ | | |R1 ____________ | | | | | | | | | | | | | | | | | | |______________| | | | |R2 ...Show All
Visual Studio Express Editions Drawing Graphics
I have a question regarding drawing graphics on a form. I have pasted my code below. I thought the code would draw a filled in rectangle somewhere on the form after Button1 is ressed. But nothing shows. Any hints would be greatly appreciated. Private Sub Button1_Click() Dim gr As Graphics gr = Me.CreateGraphics gr.FillRectangle(Brushes.Blue, 500, 500, 500, 500) End Sub Dear Sir I know this is not my thread, however, all the items you posted I managed in my beginers capacity to get them to work. My overall goal is to make a scrolling line graph across the screen with 3 or 4 variables. Thank you for the headstart. I would love to be able to create something like rstrend from rockwell ...Show All
Visual Studio 2008 (Pre-release) databinding with a nullable value
Hi, I'm trying to bind a property to a combo box wich in the initial state has a nullable value. When I do so, the databinding doesn't work anymore, if I select a value in the combo box it doesn't refresh the property. At first I thought it was my code, but if in the initial state of the property the value is not null, it works fine. Is there a property for the combo box that I forgot The property I'm trying to bind to the combo box is a property from a class I have done. I bind the data to the SelectedValue property in the combo box. ...Show All
SQL Server Reporting Services 2005 and Business Logic
I'm working on a app with complex reporting requirement and would like to centralize the business logic for app and reporting. We are not planning to use SP for reporting. Having said that, i would ideally like the reports call the business layer (business.dll) assembly which in turn will call the data access layer (data.dll) assembly to run the required queries and get the results via business assembly as a custom business entity or data set. I'm not sure if this possible with Reporting Services 2005. I have looked at the custom data processing extensions but i dont think it will provide me the required business-data separation unless i'm missing something. I was wondering if anyone has done this before and if yes, could you please pro ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is it better to create a Cue object for each sound or to just Get the cue from the SoundBank each time?
For part one of my question, I've been working on improving how I'm handling sounds in my game projects and I was wondering which is the preferred method. Is it better to create a cue object for each sound like this Cue mJump = mSoundBank.GetCue("Jump"); and then playing them later by just saying mJump.Play(); Or is it a better practice that unless you need to Pause and Resume a sound that you just Get and play the cue from the Sound bank all the time like this mSoundBank.GetCue("Jump").Play(); For part two of my question, I've been playing with designing my sound management classes using the two different methods and I've been noticing a lot of issues when I try to re-play a sound in a store cue object over and o ...Show All
Visual Studio 2008 (Pre-release) Emulating glass reflection - gradient or png?
I have an application and like to run a glass reflection through the background of it (but can't use aero directly because some machines don't support it). My options are to create a gradient or to try and capture the gradient from aero in png form (I am having trouble doing that). Should I use a finely-crafted gradient, or persist at the PNG - and if so does anyone have any ideas (or examples) on how I should do either of these Thanks in advance! Hi Mrmckeb, It seems to me that using the functionality within WPF is better than using a png. There is a walkthrough of how to do this on a WPF/E site available here: http://blogs.msdn.com/wpfedevcon/archive/2007/01/05/Create-a-Reflection-with-WPF_2F0 ...Show All
Visual Studio Sandcastle and IDL Files
http://blogs.msdn.com/sandcastle/archive/2006/08/13/697859.aspx#comments States the following: "We are currently looking at the naming convention and will probably rename MRefBuilder to Mreflector for Sandcastle RTW . We also expect the Sandcastle reflection data format to be targeted not only by MReflector , but also by unmanaged reflection tools (for example, a UReflector tool that parses IDL or header files) and SReflector (for generating schema documentation). In order to make it easier for other to target the reflection data format, we plan to supply an XML schema file that defines the format." Published Sunday, August 13, 2006 7:31 PM by aram My question is what is the status of a UReflector tool th ...Show All
Visual Basic How to Extract Text from Text File 1 Line at a Time
I'm making a program that will need to open a simple text file, start at line 1, extract line 1 and save it as a string, execute a block of code with that string, and then move onto the next line and do the same thing. I've looked at other topics, but I need something that doesn't just throw all of the data into a list box; it needs to temporarily save the line to a string until the next time when the string is rewritten. To make things simple, perhaps anyone who knows how to make a program that has a textbox and a button on the form can help. When the program starts, it extracts the first line in a text file on the hard drive, displays it in the textbox, and then waits for the user to press the button, at which point it starts the p ...Show All
Visual Studio Install of Visual Studio 2005
I have the CD's to install Visual Studio 2005 and there is no issue installing the software (it installs and operates correctly) - however I work in a College environment and require to install the software on a large number of PC's (+40). I am currently installing the software by placing the CD's in the drive and going through the setup, this is very time consuming as it takes approx 40mins per PC. Is there a more efficient way of carrying out the installation of the software - there are 5 discs to install (2 setup discs and 3 MSDN library discs). Any help or useful links would be appreciated. not sure. Make sure the directory is writable. Perhaps take a look at the event log to see if there ...Show All
SQL Server where can I find it ?
Hello, I'm trying to install business scorecard manager, but I need Analysis Services for SQL Server 2000. I can't find it... Someone can give me a link I could not found on microsoft site, only service packs. Hi, Try this link: http://office.microsoft.com/en-us/performancepoint/FX101680481033.aspx All this is now under the new Performance Point Server, and good for you, it has backward compatibility ! so it will work with Analysis server 2000 also. Regards ...Show All
Windows Forms Mixed assemblies and the designer in VS2005
Hello, I hope this is the right place to ask this - since i think it is related to Visual Studio 2005, C++ and .NET. I am working on a control library prototype. I use mainly C++/CLI for the development since I have to use some of the non-.NET libraries we have in-house. I have two separate solutions: one is the library project the other is a test bed application. I keep them separate on purpose because I want to model a scenario for testing the controls i have created. Here's what I’ve done so far I created a fancy control based on System::Windows::Forms::UserControl called TestControl. It was nothing but a yellow panel. It was in a namespace called TestLibrary::TestControls. In the test bed solution I referenced the output dl ...Show All
