Bhaskar Thamma's Q&A profile
Smart Device Development Precompiling forms on a desktop client to display on a Pocket PC device
Hi All. Happy New Year. I am currently writing some software that generates forms that are to be displayed on a Pocket PC device. At the moment, a 'description file' of the form is generated by my desktop component that is uploaded to and interpreted by the PDA. Is it possible to cut some processing from the PDA by using the System.CodeDom and related classes to generate a compliled code file on the desktop component, so the PDA can j ...Show All
Windows Forms Create a Bitmap out of Printer Graphics Object?
My goal is to create a PDF file out of my drawing code. So I am trying to create a Bitmap out of the Printer Graphics Object which is not working. My code prints fine to the printer, but I cannot convert the printer graphics obj ...Show All
Visual Studio Express Editions Custom Components in the Forms Designer?
In Visual Studio 2005 C++ Express Edition I extended the ListView class through inheritance with some methods of my own to create a specific class I need repeatedly in a small project of mine. Now the new ListView-based class works fine as it's intended once I compile my project, but I can't find a way to add it to the toolbox or to get the forms designer to work with it. I really just added a few methods that make updating the specific list's c ...Show All
Windows Forms How do you refresh data bound to a DataGridView
This should be easy... but I don't know how to do it. I have created a DataSet that is bound to a DataGridView so that the DataGridView displays the data in my DataSet. If my DataGridView is called dgvStudents, the following code DOES NOT do the job: dgvStudents.Refresh(); I can see the grid itself flash and refresh(), but the data behind the grid is not being refreshed, so new items in the database (added by another pro ...Show All
Visual C++ FileLoadException VC2005
Hi I try to run my project (which run ok at VS 2003) on VS 2005 pro edition. The project include native c++, MC++, and C# projects with MFC GUI and C# GUI The project is build ok, when I try to run it, I get FileLoadException before it get to my main function. The additional error is : Could not load file or assembly "MyprojectName" or one of its dependencies. HRESULT: 0xE0434F4D The file MyprojectName.dll exist, and all of the dependencies ...Show All
Smart Device Development How to implement multiple row selection in datagrid?
Hi, Im trying to implement a multiple selection control, but as the data source is a Datatable im unable to find any suitable control. The datatable contains product codes and product names, some of which will be selected and added to another datatable, datagrid in .net cf does not support SHIFT+select or CTRL+select all it supports is multiple selection if you drag the stylus across the row headers, that to only once. the list view is jus ...Show All
SQL Server Report from - Report to
Hi, I have a report setup on reporting services which has several subscriptions attached. The report is run every business day, each hour (8am till 7pm), but the only problem I currently have, is with the report from and report to fields. Is there a proper way to set these up for the automatic distribution, so that the subscription that runs at 8am, will report data from the day before 7pm till 8am thanks! Lionell ...Show All
.NET Development Where is my dll?
I wrote a web service with VS2005RTM, and after published it, I cannot find the dll from the bin folder, Where is it Anybody can do me a favor Hello Saffron. There's an easy trick for tracking where your files live. Launch your service in debug mode, then go under Debug | Windows and choose Modules . Visual Studio will show you all the DLLs loaded in the running project; and it will not only tell you if one DLL has symbol associated, bu ...Show All
Smart Device Development MSDiscoCodeGenerator failed
i converted a vs2003 .Net 1.1 Smart Device application onto vs2005 .Net 2.0 im now getting a problem where it will not see the webservices. if i try to (right click) update the webservice i get the following error The Custom tool 'MSDiscoCodeGenerator' failed. Exception of type 'Microsoft.CompactFramework.Design.Data.InternalException' the webservices are in .net 1.1 but i wouldnt have thought this would matter i have an identical s ...Show All
Software Development for Windows Vista Workflow Lifecylcle Events
I use a Windows Service and have attached EventHandlers to the Workflow Lifecylce Events(Created, Started, Aborted, Persisted, Loaded, ....). My question: By the time such a event (e.g. WorkflowStarted) is fired, my EventHandler executes some code to write into a log. The only information about the WorkflowInstance I could find in the WorkflowEventArgs is the InstanceId. I would like to get more information about the workflow: What type, .... ...Show All
Visual Studio Team System DoNotMarkEnumsWithFlags
Hi, FxCop recommends that I don't decorate my enum with the flags attribute, even though the enumeration contains bit fields. This rule appears to have a regex that looks for hex values. This regex should be updated for enum declarations like the following: [Flags] public enum ValidationTypes : int { Any = int .MaxValue , Data = 1 << 0 , Model = 1 << 1 } ...Show All
Windows Forms Very strange ComboBox databinding problem
Hi, this problem really drives me nuts. I have a custom ComboBox, which derives from the normal ComboBox control. I'm setting the DataSource of the ComboBox in my code to a DataTable and also set DisplayMember and ValueMember. So, the binding in general works fine, but here's the odd part: Depending on what is selected I color the background of the ComboBox differently. To achieve this effect when the DataSource changed i overwrite the OnDataS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectPlay
I'm working on a messenger program, and someone suggested using DirectPlay. I've looked into it, and from what I can find, it looks like it could be very useful. Where can I find good documentation on how to use DirectPlay on both the client and server side of my application DirectPlay is deprecated and therefore not advisable to use for new applications. The reccomendation is to write your own stuff using t ...Show All
Visual Studio 2008 (Pre-release) Viewport's MouseLeftButtonDown-Event not firing
I tried to handle the MouseLeftButtonDown Event of a viewport but the code never reaches the event-handler method: Here the Xaml part: <Viewport3D Name="myViewport" MouseLeftButtonDown="viewport_MouseDown" MouseMove="viewport_MouseMove"></Viewport3D> This is where I attach the event handler: myViewport.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler( this .viewport_MouseDown); An ...Show All
Visual C++ Control Bracket Formatting
I'm sure this has been asked numerous times, but it is a hard thing to search for. Anyways, I am using Visual C++ 2005 Express Edition and it writes code like this: if () { statement; } I want it to write code like this: if () { statement; } How do I do this Thanks a bunch. According to my knowledge, I don't believe there is a current ...Show All
