papermater's Q&A profile
Visual Studio Express Editions Link keys to control buttons
How do I link a key button to a control say button that does the same action For example after select a record from a grid instead of pressing the button, pressing the delete key on the keyboard will do the same job..thanks Regards Alu Hi. You must redirect the buttons KeyDown event to the buttons click event handler. Too bad that Button class doesen't have similar properties as MenuStrip, you can set the shortcut keys using ShortCutKeys property. Here's how you do it inside a form: private void button1_KeyDown(object sender, KeyEventArgs e) { //Here check if the right k ...Show All
Visual Studio Dynamic size/location
I think I know the answer, but is it possible to have the size and location of a report item to be dynamic, i.e. use an expression If not where do I enter this as a feature request This only works if you want all of the items to be at the same location. I know how to do that. What I want is for different items to be at different locations & sizes like this: [===================] [========================] [======================================================] [=====================] Does anyone have a URL to request this as an enhancement ...Show All
Windows Forms Listview with "cursor" for sub items
Hi, I have a ListView (details view) with "FullRowSelect" set to "true". The user should be able to step through some of the sub items of the selected item with the "left" and "right" keys. With "FullRowSelect" all sub items are highlighted. How can I show the user, where the "cursor" is Can I draw a rectangle around a sub item If yes, how And what about just drawing a rectangle around a sub item Graphics g = this .CreateGraphics(); g.DrawRectangle( new Pen ( Color .Black), item.SubItems[3].Bounds); I tried that, but nothing was shown. ...Show All
Visual Studio 2008 (Pre-release) What is it in VB
I am struggling to figure out which dependency properties that can be used in .BeginAnimation in VB There seems to be a real difference between C# and VB in this respect. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1152919&SiteID=1 Not sure why VB is different and there does not seem to be any list of .BeginAnimation dependacy properties I can use. The documentation is extremely C# biased and of near no help. :-( Like why does C# use Image.LeftProperty (most logical I would say) and VB uses Canvas.LeftProperty. What does the canvas have to do with it and why does the documentation not mention anything about the C# Image.LeftProperty. According to the documentation Image does NOT have a LeftProperty property. ...Show All
Smart Device Development How to have access to contacts saved on SIM card.
Hello Everyone, I am trying to get all contacts that are present on my Windows MObile phone and ON SIM Card. By writing following simple code, I got all the contacts from my Windows Mobile Phone native address book. ContactCollection contactCollection = null; Contact contact = null; OutlookSession outlookSession = null; outlookSession = new OutlookSession(); contactCollection = outlookSession.Contacts.Items; But this contactCollection does not include contacts that are stored on SIM Card. If anybody knows how to access contacts stored on SIM card or any work around the please reply ASAP. Thanks and regard RaJ Hi RaJ You'll have to use the native SIM Manager API (docs see here ) And the MSDn Arti ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How long before we see non-game apps for the 360?
How long do you think it'll be before we see web browsers and RSS readers being written for the 360 Or will the lack of network support kill all of that I'm just as excited about the possibility of writing/sharing/running tool and helper apps on the 360 as I am about games. Derek Woo wrote: As soon as XBox Live support becomes available. I can just imagine a way better download manager. Rather than just 6 downloads to queue up, an unlimited amount to queue. Possibly even multi-part, that is if Microsoft allows it. Some other cool tools/utilities that would be nice Internet Radio client (I know there are ways to get it playing on the 360, but integrated support is always better.) iTunes int ...Show All
Visual Studio Cannot download Visual Studio 2005 90-Day Trial
Hi, I cannot download Visual Studio 2005 90-Day Trial. When I try to download it, it only downloads an empty file. I tried this on two computers; one running XP Home and one running XP Pro. I cannot decide if I should buy Visual Studio or not because I don't even know what it's like... I don't want to install the Express editions and I followed all the instructions. Did you try it At first it says it is 2 GB but after I click save, it only downloads an empty file. ...Show All
.NET Development passing a dataset through a webservice
Hi, I'm a really a newby in .NET webservices technologies. I've just started in. I want to pass a typed dataset from my client app to the webserver application. To start, I created a webmethod and passed a dataset parameter to it. For instance: <WebMethod> Public Function PassDataSet(ByVal orderDataSet As OrderDataSet) As Integer _orderDataSet = orderDataSet Return 0 End Function _orderDataSet is an attribute of the webservice class. The problem I have is that my _orderDataSet is not stored as persistent, so It becomes empty when I try to call it from an other method. I don't have any idea about how to perform that. I heard about XML serialization, but I don't know how to apply it in this simple practical case. Excuse m ...Show All
Visual Studio Printing problem for custom page
Hi fr. I have a problem with printing using Crystal reports. The problem is i want to print some data on custome page of 5" X 5" using a dot matrix printer and the printer should stop printing there itself it should not roll down to end of the page. Any idea how to do this.. Thanks Puneet Minda ...Show All
Software Development for Windows Vista Editable Composites?
Hiya I want to create a custom activity that replaces the parallel branch activity for my non-developer users. This activity inherits from SequenceActivity and contains a code activity, a parallel branch and a further code activity. The problem I have is that the children of my custom activity are read only so users (and I) can't drag activities onto the child parallel branches. How do I get around this I have done some further testing and it is just composite activities that are the problem. If I create a new custom activity that inherits from SequenceActivity and write no code, when i drag it onto the workflow it is editable. As soon as I put anything into the new custom activity it's locked. Anyone got any thoughts on whe ...Show All
Windows Forms Datagrid Calendar
I'm trying to create a Calendar Similar to the Calendar control that ASP.net has. Basicly a Calendar that I can place text and Link buttons for the user to interact with. so what I'm thinking of doing is using a datagridview and binding it to an array. I'll do some code that determines what cell each day goes in. Now what I don't know how to do (or if its even possible) is place linkbuttons in the cells that point to a schedule form. I was wondering if it was possible to Nest Datagridviews or if it was possible to insert several Controls(Buttons,Labels,Textboxes) into a cell. I may be going about this the wrong way, so I'm open to sugestions Thanks In advance!!!! Use this MonthCa ...Show All
Visual Studio Team System Team Build, ASPNet_Compiler.exe, & ashx files
Hi All, I have a few ashx files in my web project and within Team Build's aspnet_compiler step to compile the web project it doesn't compile ashx files. Why is that How can I get these files to compile. I can get the files to compile with the IDE, but not in my team build. thanks, mike My guess would be that you are using the -u option for aspnet_compiler.exe, which specifies that your precompiled site should be "updatable". (Team Build just invokes MSBuild on your solutions - MSBuild internally uses the AspNetCompiler task to invoke aspnet_compiler.exe with options specified by your solution) With this option specified, it seems that .ashx pages keep their code inl ...Show All
Visual Studio Team System Checkout error after changing machines
VSTS has been working fine for months but recently my company swapped my computer for a bigger, faster box and now I cannot check out anything. Details: Visual Studio 2005 (VS8), Windows Framework v2.0.50727. The team project in question has only one developer (me) and I am the administrator. Scenario: when I right-click on a file in Solution Explorer, the Check Out box pops up as expected, offering the choices of lock type. When I press the Check Out button, the check-out progress bar appears very briefly, then gives way to a dialog titled "Checkout error or user cancellation". The text of the dialog is the full path of the file, plus "File was not checked out". Additional evidence: if I run "tf.exe configure $/&l ...Show All
SQL Server SET options have incorrect settings: 'QUOTED IDENTIFIER'
Hi, I've run into following problem. I've got about 20 stored procedures to be updated in an excisting system. Executing them on my database works fine but when I then run these I get the following error on two of them. UPDATE failed because the following SET options have incorrect settings: 'QUOTED IDENTIFIER'. Verify that SET options are correct for use with indexed views. Now, if I just open these two in SQL Server 2005 (modify) and execute them again (without changing anything) the error disapear. Why does this happen in the first place The QUOTED IDENTIFIER is nothing I set manually in my Stored Procedures. SQL Server autogenerate these SET QUOTED IDENTIFIER to ON or OFF. Could it be in which order I run them /J ...Show All
.NET Development EOF not set with StreamWriter
Hello, When I execute the following code the EOF marker is not being set correctly. I've tried flush and that doesn't seem to work. StreamWriter FPFileOut; FileStream FavoritesFS; FavoritesFS = new FileStream ( "FavoritePrograms.txt" , FileMode .OpenOrCreate, FileAccess .Write); FavoriteProgramsRecord FPRecord = new FavoriteProgramsRecord (); FPFileOut = new StreamWriter (FavoritesFS); for ( int i = 0; i < FavoritesArray.Count; i++) FPFileOut.WriteLine(FavoritesArray ); FPFileOut.Close(); FavoritesFS.Close(); } Originally my file contains ABC Heroes Jericho After I programmatically remove Heroes from the FavoritesArray (using FavoritesArray.Remove) lea ...Show All
