Markmar1's Q&A profile
Windows Forms Using Win32 API to get mouse click
Hi, I'm developing a small "colour picker" app in VB.Net to get the colour at a particular pixel anywhere on the screen (ie: not in the form). I understand I have to call the Win32 API to do this, perhaps trapping the WM_LBUTTONDOWN event but I'm really confused as to how I am meant to do this from a VB.Net program. I ...Show All
Visual Studio Problem with Conditional Import inside VS
Hello I have a .targets file that supports multiple platforms, and has 3 elements like this: <Import Condition=" '$(Platform)' == '...' " Project="..."> When I build using msbuild.exe and specify /p:Platform=... it works ok for all platforms. When inside VS, it always imports the first one, regardless what Platform I choose. I also have a dummy Platform called "BuildAllPlatforms" that invokes the msbuild task for all platforms, and that works ok in VS. If instead of the import, I literally replace the import, and add the condition to every target, propertygroup and itemgroup, it all works ok. Is this a bug in VS I'm using RC1. Regards, ...Show All
.NET Development >NET PaypalIpn
Hi i am trying to develop a page that use's paypal's IPN my code is the following: Loads of variables declared as strings Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try 'Loads of variables picking params using request.params strToSend = Request.Form.ToString() 'Create the string to post back to PayPal system to validate &nb ...Show All
Visual Basic [2005] Active Directory with LDAP retrieving user object properties (TS Path)
I'm trying to obtain the Terminal Services Profile Path for a user using VB.Net and the System.DirectoryServices.DirectorySearcher. I am able to get the user object's first name, last name, city, state, zip, etc. However, there is one property that eludes me. I cannot manage to find a way to get the terminalservicesprofilepath property. This is how I did it in VB6 and it worked perfect: visual basic code: I also want to get the User info from Active Directory, I found your code that may help me but which component should I select or what kind of References should I use. I am using Visual Basic 6.0 (SP6) now. I would be very glad if y ...Show All
Visual Studio Catch On Properties Change Event
Hi Everybody, I am trying to catch the act of changing the value of a property but i didnt find the method. This property also changes the source of a link. So could be the event raised by changing the value, the event raised by connecting the source of a link to another shape, without using the mouse, Or the event raised by adding a link to a shape, without using the mouse. Does anyone know how to do it Luiz, It is possible to respond on a property change by using some custom code. You can create a "ChangeRule" that will provide you with a hook to implement your code. Have a look at the "customization guid" (Ex ...Show All
.NET Development DataSet Validation...
I am attempting to add validations to wizard generated DataSet via the Designer. When I double click on the column that I desire to validate, I get an error: Failed to add validation event handler because of the following error: Not implemented. How do I implement a DataColumnChanging event without modifying the wizard generated code ...Show All
Visual Studio Express Editions What do the applications run on?
What operating systems do the applications I create work on (Ofcourse, when they have the .NET Framework 2.0 installed) Your apps will run on every Windows x86 system back to Windows 98. And the new 64bit ones, too. They will also(sson) run under Mono on its supported platforms (see http://www.mono-project.com/Supported_Platforms), given that your code uses supported and properly ported APIs. And if you write your applications carefully and compatible to the Compact Framework they will run on Windows Mobile and PPC2003 portable devices, too. ...Show All
Smart Device Development Context Menu
Hi everyone, hope you're doing fine. is it possible to add some entries to Windows Mobile 2003 context menu can we add icons next to the entries i have added keys in the registry like it is done on windows xp but it didnt work (maybe the key names are different) :(. any suggestions I understand - the reason I asked you to post to the other forums is because the answer to this almost surely involves some P/Invoke or some other low-level thing. The folks in the other forums would know how to do this in C/C++ and it would be really easy to extend that answer to C#. ...Show All
SQL Server Joining two fields in a query
I am trying to join two fields in a query in SQL 2000. For example. Update myTable SET field_1 = @field_1_value , field_2 = @field_2_value , field_3 = @field_1_value + ' x ' + field_2_value Is this even possible. I want the user to input values for fields 1 and 2, then in the background combine the two and insert that value in field 3. Thanks in advance, Scotty_C Yes CryptoKnight , That works very well, thank you! Thanks, Scotty_C ...Show All
Visual Studio Team System Issue Printing CMMI Task - Summary field
Using Beta 3. I am able to print the CMMI task, but the summary field does not wrap to the next line on the printed page when the summary field is filled to the maximum length allowed. Just checked other fields and they exhibit the same behavior. ...Show All
Windows Search Technologies Address bar - locked
my address bar will to type in the full name of a web site, but once complete it will not pull up the site, it stays on the main msn page. Like typing in www.miamidolphins.com - but while typing it will drop down and offer a list of sites, if i pick one of those I can go straight to the sight or choose from my favourites. but to actually type a new site name in the address bar and click go - it goes no where. how do I solve this i do have google and msn tool bars open help maggie ebersold Hi Maggie, Your issue doesn't appear to involve Windows Desktop Search - does it Thanks, Bill ...Show All
.NET Development Please help
I HAVE BETA2 . I STARTED A PROJECT USING BETA 1 AND THEN CONTINUED THE PROJECT IN BETA2. I NOW WANT TO USE JUST BETA2 HOW CAN I DO THIS I DID SOME CHANGES . MAYBE THERE IS ANY EASY WAY OF CONVERTING IT THRU WIZARD PLEASE TELL ME HOW TO DO THIS. KINDLY RESPOND AS SOON AS POSSIBLE. Hi, The official location where they need to have put up this info is the Gotdotnet site which ca ...Show All
SQL Server DTC Transaction Abort error
We are using MSDTC to handle our transactions and some clients seem to be getting these errors more and more when we went to framework 2.0. Any ideas what could be causing this Before in framework 1.1 we would ask our clients to re-register their computer into the domain and/or rename their computer and this worked but it seems like in framework 2.0 it doesn't do the trick. Also, the wrong dns setup causes this too but after trying to fix both things it still doesn't work. I believe this error means either the server has finished the transaction and can't find the client to return the result or the active directory account/computer ac ...Show All
Windows Forms how to bind 2 columns to same lookup table with combobox?
Following seems NOT to work but maybe i found the solution (see below) this.p1ComboBox.DataSource = personView; this.p1ComboBox.DisplayMember = "lastname"; this.p1ComboBox.ValueMember = "pid"; this.p1ComboBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", bindingSource, "person1", true)); thi ...Show All
Windows Forms Grid and BindingSource object change
I was working thru an excellant example by Robert Green of Microsoft entitled Walkthrough: Smart Client Data in Visual Basic 2005. This was for Visual Studio 2005 beta 1. Using beta 2 there seems to be a significant change. When I worked thru this example the DataConnector object has been replaced with a BindingSource object. Why is this and how do I implement the one to many form using this new object You are correct in that this has changed and we are working on updating the sample. Rather than use the "Add related..." smart tag, you can now do this more naturally ...Show All
