Wendell G's Q&A profile
Smart Device Development Exchange data trough USB
Hello, I want to exchange data between pocket pc and desktop pc via USB. This works ok but now I want to integrate it into a windows service. When i try to connect to the ppc in the Windows Service I get the message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) I found a lot of things on google but nothing changed ... Fille wrote: There's a timer which tries to connect via USB to a pocketpc (using active sync). The code is correct because it works in a windows application. right, but you said you went from an app to a service, right when you install the service, is the correct user, and pwd, used in the "Log On" tab of the service Either a logged-in u ...Show All
SQL Server SUM returns incorrect value in SQL Server Mobile Query ... Bug??
Hi all, I am a newcomer to Microsoft Database Technology and have appeared to come across an issue with the SUM function in SQL Server Mobile Edition. I am running Visual Studio 2005 and have created 2 tables: Orders and OrderLines which are set up in master detail fashion. The SQL Statement I create in the Query Builder is as follows: SELECT Orders.OrderNo, Orders.OrderDate, Orders.Priority, Orders.Address, SUM(OrderLines.Quantity * OrderLines.QualityReference) AS Total FROM Orders, OrderLines WHERE Orders.OrderNo = OrderLines.OrderNo GROUP BY Orders.OrderNo, Orders.OrderDate, Orders.Priority, Orders.Address Now, the SUM ...Show All
SQL Server How to find out wether a row has been replicated?
Dear ppl, In Merge Replication SQL Server2005, what is the easiest way of finding out wether a row on the publisher database has ever been replicated to subscribers Regards Nabeel- The procedure below should get you started on being able to tell if a row has been sent to a subscriber, all you need to do is provide the rowguid and publication name. use <PUB_DB_NAME> go create procedure ASubHasIt ( @pubname sysname , @row uniqueidentifier ) as declare @tablenick int declare @maxsentgen int select @maxsentgen = max ( sentgen ), @tablenick = max ( nickname ) from ( sysmergesubscriptions sms join sysmergepublications smp on sms . p ...Show All
SharePoint Products and Technologies Sharepoint Blog
I want to setup a secure Blog. This means that each user would have an online journal. only that reader and certain administrators could read this journal. 1.Is this somthing that should be done in sharepoint or should I just build a webapp to do this 2.If this is for sharepoint where can I go for some information on how to get started. 3.Note I am very very new to sharepoint so go easy on me if this is stupid..... Thanks what about using BlogParts do I need them I found BlogParts here http://www.molberg.dk/blogs/steen/default.aspx ...Show All
Windows Forms Slow painting, flickering on complex forms
Okay, I've tried double buffering (Control.SetStyles et al). I've played around with Win32 APIs such as SET_REDRAW and LockWindowUpdate, but I cannot get rid of the apallingly slow painting that is Windows Forms. Try this: Create a form with about 50 labels on it. Make the BackColor of the form the usual windows grey - and leave the labels as is. Run the app. Alt-Tab back and forth from another app (preferable one with a white background - such as MS WORD). On my (average spec) PC there is a noticeable flickering and you can actually see each label paint its background first white, and then grey. What am I doing wrong - or is Windows Forms just reaaaaal sllloooowww when painting forms with any complexity Help ...Show All
Visual Studio Team System How to segregate multiple TeamBuild projects?
We are currently at a certain version (1.2) and have multiple solutions, all which need to be built separately. So I have a separate TeamBuild for each. But once we move to next version I will have to recreate the TeamBuild project files for each of these solutions. The TeamBuilds node in Team Explorer will be extremely cluttered with all these projects. Is there any way to create a folder beneath the 'Team Builds' node in Team Explorer so I can group my builds by version Also, how do I delete an existing TeamBuild project TIA! Hi DQM - Just to get more context into your scenario: 1. Why do you need to build each of the solutions separately Can we build these together but drop the binaries in separate folders 2. Would you c ...Show All
.NET Development Seperating Data stuff from C++ apps
Hi, This is probably for most of you a very basic question. My goal is to define in a seperate instance from application all infos related to DataSets and DataAdapters that are needed when connecting to a specific database. Why First, I would like to be able to have in a single instance everything needed when hooking to a SQL Server Express database and in an other everything needed when hooking to a SQL Server CE database. Then, from application, I would like to be able following a few basic configuration steps to choose from one or the other, or even both in specific cases. Second, I want to be able to seperate Database related stuff from application so that I ca ...Show All
Visual Studio Express Editions Splash Screen reappear's...
i have made a form for splash screen and one more form before which that splash screen appears...... when i run the project splash screen appears for 3 secs then the other form comes but again when i click some button or do something in that form for opening other form the splash screen appears for 3 secs how can i restrict it to appear only once...... Hi m_umair_85, I have just made my own splash screen, all I did was drag and drop a timer onto my splash screen set the time to 3000 (3 seconds) , I then double clicked the timer (timer1 by default) to get the code behind then entered this code between the braces: Form2 frm = new Form2(); timer1.Stop(); frm.ShowDialog(); this.Hide(); Ensure that you set Form2 (th ...Show All
Internet Explorer Development IE7 RC1 Installation error
Hello, I had previously installed IE7 to try (I think it was Beta 1, but am not sure). I recently tried IE7 RC1, but something was freezing my computer. I unistalled it, properly, I think, everything has been working fine. I wanted to reinstall to try it for longer than an hour. Upon attempting to reinstall I get an error message where the whole screen changes to a DOS appearance but gigger an with a blue shade to it rather than black. The message say something like: If this is the first time you have seen this message, reboot and try again. If not, there may be a driver error, if there is a driver listed in the stop message, disable it the try to install, or update the driver and try again. It also talks of rebooting in safe mode ...Show All
Software Development for Windows Vista Workflow properties when debugging
Hi, I am debugging a workflow winform application in Visual Studio, and was expecting to be able to monitor the values of workflow properties as I step through. This does not seem to be the case though. Does anyone know if this is by design or not Thanks and regards, /Valur the locals window (Ctrl-D, L) would show properties of the actuvuty that is currently on the top of the call stack. the properties window (press F4) should show properties of the activity selected on the design surface. ...Show All
.NET Development Count Submatches in a Regex
I want to know how you can count the number of submatches in a regular expression. I can't find a guranteed way of doing this normally in VB Script the number of submatches would be kept in: Regex.Submatches.Count and the regex values would be kept in: Regex.Submatches(0) but how would you do the same thing in the .NET Regex class I found 2 things that might be it but none of them worked well for me: "Groups" and "Captures" I don't know which one holds submatches though. By submatch I am reffering to a string kept between brackets For example if my regex was "Name: (\w) - Age: (\d)" then I would have 2 submatches one would be my name matched by \w and the other one would be my age matched by \d. Any idea how I can do this Thanks in advanc ...Show All
Visual Studio 2008 (Pre-release) "no parameterless constructor" error in wcf
Hi all: When I used wcf ,I wanted that the class which implemented the contract had a parameter constructor.But as I did this, I got a error. Can anyone tell me how to realize what i want. WCF requires a parameterless constructor to dynamically instantiate a service contract implementation. However, you do have some options: 1) You can pass in a self instantiated service contract (singleton) instance to the service host. 2) You can add a default constructor to your implementation and call a seperate init method to initialize the instance. Dave ...Show All
Windows Forms Datetimepicker
Hi I have placed datetimepicker and another control in the form. While pressing the tab focus is working intially. But when i select a date from datepicker then focus is not working. Any soln for making the datepicker focusable i.e while moving the tab it gets focussed. Hi I appreciate better reply...which address the issue. Calendar is still in pop position and user clicks tab and focus moves to next column in datagrid. Please provide good work around or is it a bug. ...Show All
Visual Studio Building multiple solution
Hello, I am new to msbuild and I have to automate a project. Here is the structure c:\mydir component1 Solution1 Solution1.sln ProjectA ProjectA.proj ProjectB ProjectB.proj component2 Solution2 Project C Solution3 ProjectD .... I would like to have a .proj file for each component and then a master .proj file that just call this sub .proj files. However, i need to know if a solution fail and need to do some action like send mail ,. Is this possible with msbuild . Also, I would need to copy the output for the indiviidual project to a common location . some sample code or some hints would be very helpful Thanks in advance ...Show All
SharePoint Products and Technologies Multi Contact Selectors
I need to add more than one contact selector to an infopath form. How do I configure these contact selector. It doesnt accept fields with the same names. I tried using different names, but the form didn't load in the sharepoint site. Thanks, Just found the solution! Once you add the contact selector to the form, and then having it configured with the required fields. You refrence the Person group to other contact selector in the form. ...Show All
