Chanks's Q&A profile
Smart Device Development grids
hi, I want to make an app based on the DataGrid object for my PDA. My question is can I port the resources easly to a windows app I saw in the toolbox the DataGridView but not a simple DataGrid. Thnx Guy It's easy to add some objects to the toolbox. So i added the DataGrid in there now because it isn't by default. (i'm new in this thing :-) thnx for reading anyway. ...Show All
SQL Server interactive sort in group
hi, i created a report using table with added group header and footer. i set a few columns at the table header for interactive sort. however, the sort doesn't work for thhe field that i place in the group header. Is interactive sort supported in group header Thanks. Yes, interactive sort is supported in group header. When you click on the sort in the group header, it just doesn't do anything Can you attach your rdl so that I can see why it's not working for you - Fang ...Show All
Visual C++ datagridview refresh problem
Was hoping someone could help with a refresh problem. I'm running a function to update the colours for the rows on the DataGridView in a tabbed pane based on some value from the dataSource of the DataGridView. However the DataGridView will not refresh the first time round. If I move to another tabbed pane and come back then the DataGridView is properly refreshed. What I think the problem might be is that the dataGridView has a few eventhandlers when a user changes the values. So what I did was to call the EndEdit before I refreshed, which didn't work. I've even refreshed the parent of the DataGridView which didn't work as we ...Show All
Visual Studio SourceSafe setup fails, exits in an unusual way
I'm trying to install Visual SourceSafe 2005 but the setup fails with: Runtime error! Program: D:\Setup.exe The application has requested the runtime to terminate in an unusual way. Please contact the application's support team for more information. There's a message in the event log that says: Faulting application setup.exe, version 8.0.50727.42, faulting module setup.exe version 8.0.50727.42, fault address 0x000170ad. Any ideas Thanks, John Vottero I have this problem in Visual Studio .Net 2005 final Setup. I have Windows XP sp2. help please. ...Show All
Visual C# Logger in multi-threaded application
Hi, I have a multithreaded application, in which most my classes inherit from a base class. This base class contains a Log()-method, that is supposed to append text to a text box created in the main thread. I know that this is a problem since I can/should only access the textbox in the same thread as where it was created. What I would like, is a thread-safe way to implement the Log()-method in the base class, so that disregarding which child-class and which possible thread I am in, I can call base .Log("Warning, something might be wrong", Type .Warning); and the message gets printed to a textbox instantiated at the ...Show All
Visual Studio Express Editions SQL server2005 express table is not updated with vb project
Hello Hi am new to this and from Belgium so sorry for my languish I gave build an simple VB 2005 express program with 1 form and a few textboxes bound tot data in a SQL sever 2005 express database. The database just has 1 table Customers with en customerID as primary key, Name and Last name. When I run my project everything works just fine. I can insert en add new customers en even delete them. After I push the save button on my form my program even tells how many rows ware affected by the update. Now after I close the program and reopen it nothing has changed in the table, no rows added or deleted the table has not being ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LoaderLock was Detected?
I'm alittle stumped here... I'm trying to play an MP3 file with directx in vb 2005 express, it worked fine in vs 2003, but seems to not want to work in this version of VB :/ Heres what it says... DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. heres where the error occures: Dim tempAudio As Audio tempAudio = New Audio(fileOpen.FileName) That code is being executed when you click ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using Arrays in Pixel Shaders
I have the following pixel shader and global variables in an effect file float values[512]; float values2[512]; int total; float4 psMain(VS_IO input) : COLOR { float4 result; for (int i = 0; i < 256; i++) { values2 = i; } return result; } Values is passed to the shader by using the SetFloatArray function. I am attempting to set each component of values2 to i within the lo ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All
.NET Development ThreadPool and Webclient.UploadValues
I have an app that listens on a multicast socket for some data then wraps that data in some XML and POSTs it to a web server for storage (the response from the web server contains no useful info so I ignore it). Early on I noticed that using Webclient.UploadValues was taking a fair amount of time and I was missing some of the multicast data coming in. I then tried using a ThreadPool to spawn off a separate thread that created it's own Webclient and and performs the POST for each multicast data item. Is there anything wrong with using ThreadPool with a Webclient this way I mean letting the ThreadPool spawn off as many Webclients as necess ...Show All
Windows Forms Disable refresh of Control in EditMode upon ItemChanged
I have a complex business object i'm binding to in my DataGridView (through IBindingListView) which is constantly changing its elapsed time every second. When i try to edit this Elapsed property through the grid, whatever i type into this textbox gets erased with the updated value in the object. What is the best way to disable refreshes on the Textbox once its in edit mode I think the problem is occuring because of the ListChanged from the BindingList getting raised, hence refreshing my datasource forcing a refresh when i'm editing. The only solution i can think of now is to bind my DataGridView ...Show All
Visual C++ VS2005 C++ project: linkage errors under MultiThreaded-DLL runtime lib', but compiles fine under Multithreaded-DEBUG dll ?!?
Hi, I am in the process of moving our development to VS2005 from VS2003. One of our C++ projects now runs properly in debug mode, and in release mode when using the multithreaded-debug-dll runtime libs, but does is fails during linkage when in release more and using the multithreaded-(release)-dll [which it is supposed to]. - The project combines managed and unmanaged code. - The error repeats itself both in the original managed C++ syntax, and now in the new C++/CLI syntax. - Other C++ projects I have moved to VS2005 do not have this issue. The linkage error is below in italic. Any ideas ! Thanks, 5spot MSVCMRT.lib(mstartup.obj) : error ...Show All
Visual C++ CDialog::DoModal asserting in CWnd::DestroyWindow
To Brian and Martin, who were involved in helping me out with this , please don't shout at me... This thread does follow on from that post - and I'm now investigating refactoring a static library which contains a few MFC classes into a shared DLL - using __declspec(dllexport) to export functions and classes that will be needed across all facets of the solution that need the shared functionality. I've looked all over the place for an answer to this question - and found loads of other people using MFC 6, 7 and 8 with similar problems. I'm not going to be naive enough to suggest that MFC has a bug - I'm well prepared for this being a s ...Show All
.NET Development DataSet and DataSet Designer
Hi, i am a beginner :( i created a dataset using the DataSet designer in VS2005 and connected to my tables. using this data set i can call methods to add row... it does not provide any exception but i do not see added row in my database. what could be wrong. i am presuming that the dataSet created using the Designer automatically connects to the database.. or i am wrong. here is exactly what i did: UserDataSet ds = new UserDataSet (); ds.User.AddUserRow("xxx", "yyy", "zzz", "rrr"); is there anything more that is hould do best regards, rnv The DataSet is disconnect ...Show All
Windows Forms Custom control containing child custom controls
Hi Everyone, I have a question about the correct way to create a custom control that contains a dynamically controlled number of child controls. Basically i'm trying to implement a basic vector drawing control similar to that found in photoshop/xara/inkscape etc. I have a parent "vector" control that containes a number of "point" controls and "line" controls (where the lines connect the points). I figured this was the best way to do it so I could handle events on each part of the vector itself easily. The problem I have is with the OnPaint(PaintEvenArgs e) overrides. I seem to be able to add my child controls ok ...Show All
