vijay sai's Q&A profile
Windows Forms Scrolling a custom control
Hi, I have created a custom control that is derived from Button and is capable of displaying rich text. I did this by overriding OnPaint and drawing the rtf through a hidden RichTextBox and some system calls. This works great when a control is simply placed inside a form. But when I put it inside a FlowLayoutPanel, things don't work as expected. When scrolling the panel, the controls near the top or bottom of the panel are not draw correctly. The text is at the wrong place or isn't drawn at all. The buttons in the middle of panel are drawn correctly. Oddly, all the control borders and backgrounds are fine... I use base.OnPaint inside my own OnPaint method. So I guess that the problem lies somewhere with the coordinates supplied by the Pain ...Show All
SQL Server Accessing a DSN through a Sql job
I am trying to execute an SSIS package (which accesses a dbf file through an odbc connection) through a Sql job, but the package log reports an error of "Disk or netowrk error". When I execute the package in the IDE, the package executes fine. When I run the manifest on the DB server, I can execute the package with no errors. But, when I create the job, and try to execute the job, it fails. I thought at first that the user didn't have privileges to the directory that the file existed in, but that isn't the case. Can anyone shed some light on how to accomplish what I am trying to accomplish It seems like this would be a common use of SSIS, but I cannot seem to get it to work. Thanks in advance for any assistance you can prov ...Show All
Visual Basic Hiperlink to a button
How can I create a hyperlink to a button in a form how exactly do you mean "hyperlink to a button" Are you able to explain a bit further so we can better assist you Are you asking on how to make a hyperlink that when clicked on will launch a link to say, a website ...Show All
Visual Studio 2008 (Pre-release) Custom Control - Generic.baml file not generated
Hello. I'm having an issue with my custom control if I move it to an external library. My custom control works fine if it is in the same assembly as the application but when I move it out to an external library my control does not appear. I noticed that within the app the generic.baml file was created but in the external library I do not see the generic.baml file. My build action for the file is set to Page. Any ideas/suggestions would be greatly appreciated. Thanks! Note, I have done the following steps below: /// Step 1b) Using this custom control in a XAML file that exists in a different project. /// Add this XmlNamespace attribute to the root element of the markup file where it is /// to be used: /// /// xmlns: ...Show All
Smart Device Development Error occuring while querying multiple table data from database to dataset
Hi dataAdapter = new SqlCeDataAdapter ( new SqlCeCommand ("select * from sample;select * from Test", connection) DataSet dataSet = new DataSet(); dataAdapter.Fill(dataSet); error Occured: Message = "There was an error parsing the query. [ Token line number = 1,Token line offset = 22,Token in error = select ]" Note: Same code working with sql client, I set the table mapping in both the cases. anyone, any suggestions please Hi the following code is published on MSDN website DataSet dataset = new DataSet(); dataset.Tables.Add("aaa"); dataset.Tables.Add("AAA"); adapter.Fill(dataset, "aaa"); // Fills "aaa", ...Show All
.NET Development .NET Basics
There are 2 things I would like to get cleared whose answers I could not find anywhere else: 1) Making different applications to communicate in a seamless way is one of the most important advantages on .NET. However, even COM makes this possible. But COM requires a lot of routine plumbing that .NET does not. But Windows (including the new Vista) still rely on COM heavily. Does all this mean that .NET is completely foreign to COM. I dont mean to say, that they cannot communicate. What I am asking is that the code that goes into the CLR, the Base Class Library etc. etc. itself uses COM internally or not 2) The second thing is that .NET applications ae JIT compiled at run-time. This provides them the advantage of being compiled specifically ...Show All
Windows Forms How to export data from GridView to plain text file?
Hi, I need to export data from GridView to plain text file, but I have no idea about this. Does anybody know how to do this Many Thanks. I tried to use this code and I could not make it work. Where do I put it I am new to .net. I and using VB not c# can you rewiter this code in VB Many thanks for your help. ...Show All
Visual Studio Team System MS Project versions?
Does MS Project have some sort of versioning mechanism An .mpp was created by pulling work items for a query and then saved to a desktop. after modifying and saving the changes, upon reopening the start date and first item in the project plan have incorrect dates. Once the document was sent to me and everything connected to TFS, the dates were what they should have been. I'm just curious how I can access the same .mpp and see different dates than a coworker for the same work items. We are both running MS Office Project Pro with SP2 and are both connecting to the same TFS site. Hi, Right now, the MPP integration losing the information when you export the work items from TFS since the start ...Show All
Visual Studio Team System Team Test Load Agent
Hello! Are there examples or walktroughs for the Team Test Load Agent I would like to learn about it and I can't find examples how to use it. Regards CSharpNewbie22 Hello, This link might get help you to get started, let us know if you have any questions: http://msdn2.microsoft.com/en-us/library/ms182634(VS.80).aspx Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Visual C++ Vector Based Game
I was looking to write a vector based game. Mainly its to learn not to entertain. i want to code it in c++ and was wondering if someone could point me to a few resources; i have had some trouble finding any code examples. MIND magazine has had some game programming articles but I don't know anything about them except that the first article was MIND Column: Fun and Games . You should look for the subsequent articles in that magazine. I am not a game programmer myself but I have bookmarked some sites when I encounter them searching for other things. A good site for game programming I think is GameDev.net . Other possibilities are: Amit’s Game Programming Information Game Creation Resources fl ...Show All
Smart Device Development How to sync/update local database with Database server database using c# Application
Hi I have a need to work on pocket pc application. Scenario: In general user will take database backup from database server to local system. User perform some changes to his local database based on his requirement. Again user connects to database server and click on update, local database should update to server database by informing each record status to the user. ex: record 1 updated / call closed do you want to update Here local database is going to be Pocket pc database and server database is on SQLDatabase. Can any one suggest best way to implement this feature in Windows Pocket pc, c#. I would appreciate your reply. Thanks, 1) Thank you for reply. In my case device sync back to serv ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 360 Boat game with source
Hello I was playing about again the last 4 days and come up with a little boat game for the 360. The source code is very untidy but there might be something of use in there for some people. It was written for use on the 360, it might work ok for the PC. You can have 1 to 4 players and it uses some ai for the others. There's only 1 track at the moment - I may get around to fixing it all up into a proper game if there's enough interest or if an artist wants to help out. It plays a different sound effect when you cross the line and beat your own best score. My best lap is 8.07 (no down to a 7.96) seconds. Best to use a 360 pad but here's some keys if you feel the need. Q and E change the number of players ...Show All
Smart Device Development Assembly reference
I have the statement "using Microsoft.WindowsCE.Forms;" to take care of the fact that I am calling MessageWindow. I get the error message "The type or namespace name 'WindowsCE' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) ". I cannot find the assembly reference to add. What do I do now I am using .NET version 2.0. hi, right click over your project name in solution explorer/select add reference , and try to find the dll that Genvieve mentioned hope this helps ...Show All
Visual Basic Register dlls
How to register vb.net dll in windows system. And how to register that .Dll in another system. By default a .NET dll does not need to be registered with the OS like previous DLL's and regsvr...You can however install a .NET dll into the Global Assembly Cache so that it is accesible system wide: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cptools/html/cpgrfglobalassemblycacheutilitygacutilexe.asp ...Show All
Windows Forms Callback Application Needs To Have Top Most Dialog
I am working with FalconView and when I get a callback and try to place a dialog on the screen it sometimes appears behind the FalconView window. I have tried to set TopMost to true and even call user32.dll SetWindowPos with -1 for the position of the window for top most. Also I have tried to show and then immediately hide the window before I call ShowDialog. All three methods works on my computer (WinXP) but not on another person’s (WinXP we should have the same version.) I need a way to get it so my dialog is ALWAYS shown on top of the FalconView window, and it must be modal dialog, however I can make a Show call work as a Modal by adding a wait loop. Does any one know how to do this I am working with C# and .Net 1.1 but could ch ...Show All
