VikasAgr's Q&A profile
Windows Forms How do it
like if i Click on the Button [ Memberlist ] or [ Monsters ] and so it will go to the Information about Memberlist on the Same Form and if i click [ Monsters ] it will go to Monsters Information. Is there a Sample or a Tutorial how to do that or can you show me here That works with Microsoft Visual C++ 2005 Express Edition I looked all over and Cant find any info about this I like to make a Program just like that one but in English and in C++: http://www.filewire.com/download.php id=a5e677c31c6e0fb6b33e8d8 Sorry for bad English Hmm, strange question. Just as you put Button6 on your form, you can put a button on a tab page. Clic ...Show All
Visual C++ CreateCompatibleBitmap failing
On a test Windows XP machine with 5 monitors (Overall desktop bounding box is 3328x2048), I create a bitmap that will span the entire display. Normally this works fine. However, if several applications are open (in particular multiple instances of IE7 on certain web sites), the call to CreateCompatibleBitmap(hdc, 3328, 2048) fails and returns NULL. GetLastError in this case returns 0 (NoError). Is there a limit to the total amount of bitmap space that the system can allocate Is it normal for CreateCompatibleBitmap to fail with no error code Anyone have any ideas on how to work around this, or is there a system setting that can allow more memory to be dedicated to bitmaps I was able to get satisfa ...Show All
Visual Studio Express Editions Converting from Microsoft Access
Some time ago i created a database using access 2k3 and until now i have started to use VB Express i never thought of a stand alone package so my Question is: Is it possible to import all the forms and talbe etc from my access database into VB Express or do i have to start over with the forms and create a new database and possibly import the data into that. Any help in the subject will come in handy as i am new to all this. Thanks in advance. Mike Thanks for that ReneeC The Databasae is on a dedicated server just for the purpose of its self, the database is of around 15000 entries with only 5 remote users, so would that make a big difference or not The server its self is above average fo ...Show All
Visual C# I am interested in Game Programming plz suggest me which lang to choose C++ or C#
I am interested in Game Programming plz suggest me which lang to choose C++ or C#. actually Im good in both but wanted to know which is widely used or will be used. So that I go with that Seee Manage DirectX 9 Kick Start, it is a good book for game programming in C#, in the preface page i think Author tells why to use C# in game programming, by the way from Direct X 9 it has full support of game programming in Managed applications and difference is obvious in terms of complexity. I think done using C# and DirectX in 1 line may span to 8-10 lines of C++ code.... Best Regards, Rizwan ...Show All
Windows Forms Vista style windows in C#?
Hello! Is it possible to make Vista style windows in C# Like with a translucent border and titlebar Please give me some samples and pointers. Thx! Matt Yes it is possible to make such windows in C#.The main classes we can make the visual coloring using LinerGradientBrush class.Also the carving at the top edges can be enabled using Region and GraphicsPath classes. Please refer the link http://www.codeproject.com/Purgatory/Carved_Dialog.asp it may be useful to you ...Show All
Visual Studio Export crystal report to excel (data)
Hi all, I have a problem whenever I export the crystal report with a subreport to a excel (Data Only), the subreport data will display next row. I want the data to be display together (same row) with the main report data. Is there a way to do that Example: (Crystal Report View) - a4, b4, c4 is a subreport col1 col2 col3 col4 a1 a2 a3 a4 b1 b2 b3 b4 c1 c2 c3 c4 (Excel View) - When I export I will get this problem. col1 col2 col3 col4 a1 a2 a3 (Blank) a4 (blank row) b1 b2 b3 (Blank) b4 (blank row) c1 c2 c3 (Blank) c4 (blank row) Thanks in advance. Hi All & Both (zinkfloyd and John Burrows) I still don't have solution for this issue. I agree with John Burrows that this can be s ...Show All
Windows Forms Remote Desktop client embedded in TabControl
Hi, I'm writing a windows forms application and I need remote desktop within that application. I referenced MSTSCLib and used the RDP client control. The control is embedded in a TabControl. Everything works fine, except for one very annoying thing: when I switch tabs and return to the RDP client control tab, the RDP client no longer responds to any user interaction (mouse clicks, keyboard commands). I tried explicitly focussing the RDP control on the tab switch, but that does not help. I have a very simple demo app, which can be requested by mail (jochen__-at-__dedigate___dot___com). It contains a single form, with a tabcontrol which has 2 tab pages. The first tab page contains the RDP Client control axMsTscAx1. The writ ...Show All
Windows Forms App cannot find additional files even though they are there?
Hi I'm new to Clickonce and I'm having some problems with it. I have written an app that has 3 external files. 2 are pictures and the other in an xml file that has some settings in it. When I publish the application I can see in the Publish tab of the properties under the Application Files button that these files have "Publish Status" as "Include (Auto)" and "Download Group" as "(Required)". They are also all included in the VS project. I have gone into the install directory (Docs and settings\user\local Settings\Apps) and found where the .exe and the external files are being put, and they are all there. However when the User tries to start the application it errors on startup, as I try to read in th ...Show All
SQL Server TargetQueue get disabled automatically ?
I have a weird problem going on : my SB configuration involves 3 servers. Server A sends a message to Server B. there's a stored proc on Server B that is being activated (using Activation), does some processing and sends the message to server C. on C there's another SP that is activated and it's supposed to insert a record into a table. My problem is that on Server C, the record doesn't get inserted when activation is set to ON. when activation is off on C and I run the proc manually, everything works fine, but when activation is on, the record doesn't get inserted. after this happened I tried to fire the proc manually and I got the following error : Msg 9617, Level 16, State 1, Procedure spMSG_ReceiveMessagesOnSubscriber, Line ...Show All
SQL Server How to store large chunks for binary data into the DB?
From what I can see, the 'varbinary(max)' data type is not supported, and the 'image' data type is supposed to go away. Is there some other way to store large chunks (10MB to 100MB) of data into an SSEv DB If I have to use the 'image' data type to so this, does anyone have a code sample that would let me push an array() of numbers into an 'image' field, and unload an 'image' field into an array() TIA Pat That hardly makes sense to store 100M of binary data in the database even without 4GB database size limit. Consider storing file name instead. ...Show All
Windows Forms panel layout
Hi, I have a panel in my windows form application that has six buttons in a single row. I want to layout the buttons so that when the window is resized they fill out (shrink and grow) at the same rate. Is there a way I can do this Thanks, Wallace Sure. Add a TableLayoutPanel to your form. Make it have one row and 6 columns. Edit the columns so that they are all is set to the same % width and click ok - it will then recalculate the correct percentages for you. Then add your buttons to each cell, and set the buttons to Dock = Fill. Finally, anchor the table layout panel Left,Right (not top/bottom unless you want it to move vertically also). That should be it! This will cause the buttons to all resiz ...Show All
Visual Studio Tools for Office Excel ListObject issue
Hi, My problem is the following : I've added a ListObject to an Excel-sheet. It has no rows to start with. Let's say i'm pressing a button and a certain number of rows are added. So far so good, the cells are being filled correctly. Now when I press the button again, I'd like the ListObject to "refresh" i.e. all rows should be deleted, and new ones added. (The number of rows to be added is not a constant number) I've got following code to delete the rows : foreach (Excel.ListRow row in this.lstListObject.ListRows) row.Delete(); But it throws an exception when it tries to delete the last row that is left : "Exception from HRESULT: 0x800A03EC" What am i doing wrong Greets, Ben ...Show All
Windows Forms Deleting last row of DataGridView
Hi, folks. Something is driving me crazy here. I am currently using Visual Studio 2005 and have some trouble with DGV. I have a DGV binded to a bindingsource and a typed dataset. I’m using the RowValidating event to, for exemple, tell the user if he missed to fill some columns of that row before commiting it. It works greate. But, when i delete the last row of my grid, the row for new values automatically gets focus and in edit mode. That way, I can't click save and update my database because the RowVlidating event is fired and there are blank cells on this row, since I don't want to edit this row. I can't cancel editing of this row even if a press Escape, what works perfectly whe the row for new values is not the unique row in m ...Show All
Software Development for Windows Vista How to call webservices in a workflow in an asynchronous way
Hi, I am doing R&D on the features of Windows Workflow Foundation which we are going to apply for our project after release of WWF. we are using SOA Architecture. So I need to call services based on the rules. I have succeded in doing them practically using Sequential and State Machine Workflow. So, now I want to achieve Asynchronous way of calling webservices. I don't know whether this can be possible with WWF or not. If it is possible, can any body please help me in doing this. Thanks in advance. Hi matt, I am not clear on ur response. can u please explain the phrase "when the event is raised from the web service". In the previous case the webmethod is returning string value so that we are able to ge ...Show All
Visual Studio Team System Is it possible to make parent nodes in a treepath type field not selectable?
Hi We're using the default areapath field in the Bug work item. I don't want to allow users to save the work item until they select one of the items in the list (not the root of the list). I've tried making the root of the list a prohibited value but when I import the change it says prohibitedvalues is not supported for that field. Any other ideas on how I can achieve this Thanks, Deb Deb, we faced similar problem too and unfortunately we do not have a way to force users to prohibit choosing root. Actually it turned out it was okay in our case because some users do not know where to place an item and if choose wrong place then we never see that item, but if they place in root it is at least ...Show All
