Peterssitje's Q&A profile
.NET Development Web service constructor
I defined a class (MyWebService) that inherits System.Web.Services.WebService class. I would like to pass a username and password when initialize the web service so the user that try to access the web service can be authenticated against the database. However, when I try to use the web service in the client project, it seems I can only use the default non-parameters constructor. Is it impossible to to initialize a web service using the non-default constructor Cheers Like any classes, you can create your own construcors for the web service proxy class, for example, if you want pass the service ...Show All
Visual Studio Installing VS2005 Professional
I seem to remember hearing that VS2005 can coexist peacefully with VS2003 on the same computer. Is this true Also, I have SQL Server 2000 developer edition and I don't want it to be replaced with the stripped down version of SQL Server 2005 that comes with VS2005. Is there a custom installation of VS2005 that would allow me to skip the installation of SQL Server Thanks, Dave Yes VS2005 can coexist with VS2003 without any problems. VS2005 does come with SQL Server Express Edition which can also coexist with SQL Server 2000, however, there is a custom install that allows you to deselect it so that i ...Show All
.NET Development Retrieve the value from two cells from a row in a dataGridView, C#2005Expr
Anyone who know how to retrieve the value from two cells when you click a row in a dataGridView so you can insert the values in two variables Observe! It doesn't seem to work in the way it did in earlier versions of VS.NET - I've tried but it didn't work (but from earlier experiences I know that's not a garanti tough). I know how to retrieve the value from the cell you click in, but since I have two key attributes in the table that's visualized in the dataGridView I also need to retrieve both values to be able to delete or update a row/tuple. Anyone who knows when Microsoft is going to hand out this kind of information Regards, //Nic ...Show All
Visual Studio MsBuild SourceSafe integration
Hi, Can anyone point me towards how MSBuild can be used to get the latest version(s) of project(s) from VisualSourceSafe and perform an automated build process. We are trying to setup a automated build system for our various projects being worked on by multiple developers. So, we just want to take baby steps right now until we identify a process that works for us. -Vish The open source msbuildtasks have VSS support. I haven't used them yet, but they look pretty useful: http://msbuildtasks.tigris.org/ ...Show All
Visual C# Help : Using comboBox and KeyPress event in form
Hi I have newer C#. I am finding way solve 2 problem. 1. I load data (name and id) from database. i cann’t find way add 2 column to comboBox. 2. KeyPress in form very foolish. It only active in frist press , in next press it do not have any thing. Please help me !!! Thanks ...Show All
Visual Studio Formatting Group Footer
I've got a master-detail report that is grouped by a person. The group header contains some person information, followed by a couple of sub-reports with some detail, and then finished up with a group footer with some more information about the person. I would like to format the footer so that the information falls to the bottom of the page. The problem is the detail portion for a person varies, so the report has to be smart enough to expand and contract the footer enough so that final detail always shows up in the same location on the page. I've been trying various things but nothing seems to really work and I'm starting to think th ...Show All
Smart Device Development Control Windows Media Player in Pocket PC and Smartphone
Hi, I build a windows app in which I can play, stop, pause ... videos by controlling Windows Media Player. In VS 2005, I just add the wmp ocx in the toolbar, then drag-drop wmp in my form and the interop is created (it's magic), so I can code wmp: axWindowsMediaPlayer1.URL="myUrl"; axWindowsMediaPlayer1.ctlControls.Play(); I want to know if it's possible to do the same with the pocket PC form or the Smartphone form. I know in .net cf 2.0 Interop services have been added to be able to control Pocket Media Player or pocket IE. Thanks in advance for helping me to control those apps in a Pocket PC or a Smartphone. ...Show All
Visual Studio Express Editions Uses of VC++
What does it mean on the download/install page where it says: "You can use Visual C++ Express to build powerful .NET Framework applications immediately after installation. In order to use Visual C++ Express to build Win32 applications, you'll need to take just a few more steps." And is there a button to compile and run your C source code without messing around in a cmd window Hi! It's advertisement :) Visual Studio have "Run and Debug" button by default on toolbar (F5) and Ctrl+F5 used to "Run without Debug". It will compile source if necessary. ...Show All
Visual Basic hyperlinking in windows form?
hi i have upgraded from visual basic 6.0 to 2005 and although i didnt really know all the ins and outs of the old one i wanted the new one because it has more features and you can generally make things easier (for me it is anyways) one problem i cant find out is how to make a hyperlink on a LinkLabel.. can anyone please help me figure this one out thanks Just add a LinkLabel to your form and double-click it to create a LinkClicked event handler. You then enter the code that you want executed when the user clicks the link. ...Show All
Windows Forms Drawing at design time.
Ok what I want is to be able to click in a custom control and place grab handles into the control on click. I want to be able to move those grab handles around and have a black line going in a loop though all the grab handles. I want to be able to hit the black line and create another grab handle and use that grab han ...Show All
Visual Studio Express Editions renameing Visual basic 2005 express projects
Could some one please explain to me how to rename a project in visual basic 2005 express, after it has been saved . I can create and save the original project but after closing it and then reopening it and making changes I can't save it with a new name. What I would like to do is create a project called boilerplate that I can have most of the controls ,textboxes and whatevers that I will use most of the time on the boilerplate form then open it and save it with a new name so that I don't have to start all over again. As it is now I have to start all over from the beginning every time I want to make a change and rena ...Show All
Visual Basic Copy and paste
Ok. i have been trying to figure out how to copy and paste text in my VB programs. And it just does not want to work (copy and cut don't). any one have a sample or somthing I want to find the hilighted text and deal with it accordingly when i copy or cut. Sure you can. In my exmaple, the sub it fired from the Keyboard _keyDown event. In the event args, there's ByVal Sender as object. Sender will be the actuall button. For example... public sub main() addhandler Textbox1.Keydown, Addressof Blah end sub Public sub Blah(ByVal sender as Object, ByVal e as EventArg ...Show All
Visual Studio Express Editions Cannot get cd to autorun
I am using VB Express to create an application and am pulling my hair out trying to get the cd to autorun. Using Project->Properties->Publish and then Options... I have checked "For CD installations, automatically start Setup when CD is inserted" In the publish folder, it creates an Autorun.inf file that contains: [autorun] open = setup.exe icon = setup.exe,0 Then, using Iomega Hot Burn Pro I add all of the files in the publish folder to a cd and burn the cd. When I insert it into any one of multiple different PCs nothing happens. I have verified that all of the test PCs have autorun enabled by insertin ...Show All
Windows Forms Passing a Value from a Windows form to a Web form
I have 2 Solutions. The first is a Windows app that is used for data input and the second solution is a Web app that I use for printing. I want to be able to pass the id of the windows form to the web form. I would think you would have to pass it in the URL, but not sure how to do this. Any help on ...Show All
Visual Basic Amazing super serious bug..
Using 2005 RTM In our file based Webb application, we add a new page. Then we add this simple code. Dim bTest as Boolean = True If Not bTest Then Debug.WriteLine("bTest is false") End If And Guess what, the debug line is printed. If I do a breakpoint on the If line, and add a watch for bTest its TRUE, still it goes into the if statement. Rebuilding the solution dont help. I cant replicate it on any other project at the moment, but it happens in our main development project. Any tips are welcome!! This bug seems hard to repro. But, we at MS are committed to find and fix it. We need more info on the bug. Does this repr ...Show All
