Peter paterson's Q&A profile
Smart Device Development PDA reboot to re-run application?!!
Hi guys, I've encountered a little problem. I've developed a program in C# to be run on a PDA. I got it successfully setup and installed on the PDA, but when i run the program it runs once. At that point if i close the program it doesn't run again until i do a reboot (soft reset) of the PDA. Any ideas on how i can get around this problem Thank you Thank you, That was very helpful, the problem was that i was hiding one of the forms which did not close when the program terminated and that was the startup form , making it impossible to restart the program. Thanks again. ...Show All
Smart Device Development voume control/device manage won't start. snap in failled to initiate???
hi, i've recently noticed that i can't open up my device managers or volume control etc. and whenever i try to open device manager i hear an error sound and a message comes on the screen that says that the "snap in faileld to initiate." i tried to use another tutorial from support to fix it but when i did the code that i put in "REGSVR32 ProcCon.dll" was not recofgnized or something. it said that procCon.dll was not found. What should I do thank you. I am sorry but i don't understand your question. Can you please explain a little more Are you obtaining this on device emulator -Thanks, Mohit ...Show All
Windows Forms Serial Number Generation Avoiding Duplicates
hi i have a datagrid, and i have binded it to a dataset, i have a column called srno and its autogenerated, it works fine, the problem is when i enter the data for the first time in a row the srno is 1, after entering the data i navigate to the second row, at that time srno is 2, before entering the data in the 2nd row do some alterations in the first row, after finishing alterations in the 1st row i return back to the 2nd row, and suprisingly the srno is now 3, need help thanks Prasenna hi ken, no friend invain, i think there might be some other issue to be resolved, couldn even fetch a loophole to be corrected in the app Regards, Prasenna ...Show All
.NET Development svcutil
Hi All, I'm starting studying WCF and svcutil can be used to generate the classes to connect to a given WCF service: including the service contract, WCF client and data contract (all in a single file). Is there any way to make each class generated on a single file I was thinking about having the client accessing several services that uses common contracts (sharing the same class). If I try to import the generated code into my client for these services I will have conflicts, won't I Thanks a lot! PS: Sorry if the question is not very clear. Please let me know and I'll try to formulate it better... Thanks, It worked! Altouigh I think it would be better to have my interface and my W ...Show All
Windows Live Developer Forums Mismatch in Keyword Performance and Account Performance Report
We have started noticing the difference in output of Account Performance Report and Keyword performance Report when run through API. This difference is visible even on adcenter. This is clearly visible for 14-Sep, 15-Sep, 20-Sep Please investigate and let us know Also let us know which report provides us accurate data. Hello, We have started a process to fix this issue, the process should be completed this weekend. Please attempt your reports again on Monday and let us know if the discrepency continues. Thank you for your patience and understanding. Best Regards, JasonDT - MSFT ...Show All
Visual C# Multi Interface inheritance
Lets say you have two interfaces: interface IA: IComparable { int A {get; set;} } interface IB: IComparable { int B {get; set;} } and a class which implements both IA and IB class C: IA, IB { } class C now has to implement CompareTo, but the problem is that CompareTo should do different things if being used to compare this object to another IA, IB or classC. How do you implement the CompareTo function For instance lets say there is code like this: C c1 = new C(); C c2 = new C(); IA ia = c2; int comp1 = c1.CompareTo(ia); int comp2 = c1.CompareTo(c1); In this case, comp1 should equal 0 if c1.A == c2.A, and comp2 should equal 0 if both c1.A and c1.B are equal to c2.A and c2.B. Since you can only have one CompareTo method on class C how do ...Show All
.NET Development Read image data from SQL and use it on web app
Hi I'm developping an intranet and I wan't to view the images from a database, i allready save the files on a directory and read them from a datalist, what I want to do now is to get the images from SQL, I have done this in windows app but I have no idea how to do it from the web (no problem saving or shrinking the image, the problem is to retrive them to an image on asp net 2.0) thank's Pedro R. You could essentially bind a list of PhotoId's for your photos to a DataList Control somewhat like this: <asp:DataList ...> <ItemTemplate> <asp:Image ImageUrl='<%# "DisplayPhoto.aspx id=" + Eval("PhotoId") %' runat="server" Width="100" ...Show All
Visual Basic MsgBox always return "no" regardless of what the user click
I am using VS2005 and have a messagebox inside of an event that does not work properly. The code is below: If Microsoft.VisualBasic.MsgBox( "Do you want to save your changes" , MsgBoxStyle.YesNo) = MsgBoxResult.No Then Exit Sub End If The problem is regardless of whether the user clicks Yes or No, it always returns No. If I add another MsgBox in the code immediately before the if statement, then the if statement will always work properly. (see code below) Microsoft.VisualBasic.MsgBox( "Dummy MsgBox" ) If Microsoft.VisualBasic.MsgBox( "Do you want to save your changes" , MsgBoxStyle.YesNo) = MsgBoxResult.No Then Exit Sub End If I can't figure out what is wrong h ...Show All
Visual Basic How to restrict user to tab (no mouse) selection
Hello, There are 9 numerical TextBox plus other TextBox fields on a DataEntry Tabpage. How to restict the user ability to MouseClick in one of these numerical fields The reason - to eliminate repeating if statements (which writes 0.0 s in the fields), in the case the user MouseClick into one of these numerical field but fails to enter any numbers. As it is now, data entry are into the numerical fields are limited to NumberKeys and initially the DateEntry Tabpage numerical TextBoxes are loaded with 0.0 by the Data>DataBinding>Advanced setting. Greetings, Heh. Even us experienced programmers do syntax errors now and then! It should be like this: If Not (IsNumeric(numBox.Text)) Then numBox.Text = "0.0& ...Show All
Software Development for Windows Vista issuedTokenAuthentication\knownCerticates Validation Problem
Hi, I am in the midst of porting over the Remote STS samples (from here) to the July CTP. I am faced with an issue that I totally have no idea how to solve. My Service config behaviour config looks like this: <serviceBehaviors> <behavior name="serviceBehavior"> <serviceCredentials> <serviceCertificate findValue="Fabrikam" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My"/> <clientCertificate> <authentication certificateValidationMode="None" revocationMode="NoCheck" /> </ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LockRect on Direct3D Mobile Fails with INVALIDCALL error
Is it possible to do a LockRect on a texture in Direct3D Mobile I keep getting an D3DMERR_INVALIDCALL. I tried it with one of MS's samples like this: // Load the texture map resource (banana.bmp) if ( FAILED( D3DMXCreateTextureFromResourceEx( g_pd3dmDevice, GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BANANA), D3DMX_DEFAULT, D3DMX_DEFAULT, 1, 0, D3DMFMT_UNKNOWN, texpool, D3DMX_FILTER_POINT, D3DMX_FILTER_POINT, 0, NULL, NULL, &g_pTexture ) ) ){ return E_FAIL;} D3DMLOCKED_RECT d3dlr; HRESULT result; result = g_pTexture->LockRect( 0, &d3dlr, 0, 0 ); This last function fails. Am I doing something wrong Thanks Whats the value of “texpool” Normally you can’ ...Show All
Visual Basic user control doesn't appear in toolbox
Hi guys, I have a problem related to VS user controls and toolbox. i have 2 projects, one is where I define a usercontrol and the in other one I have a windows form where I want to place the userControl defined in the other project. Unfortunatelly, after adding the other project as reference, the UserControl defined there does not apear in toolbox :(. I should mention the the projects are in diffrent folders, if this helps you, and that if I make another project/solution and replicate the situation things go smoothly, as expected. So it may be a solution/project problem, have I messed some settings Is anything I should check Greetings Ciprian done that, but no success. I also added a windows form to the ...Show All
SQL Server Help to a query
Hi In acces i use this: [varebetegnelse] & " Med ordennummer:--" & [ordenummer] AS tekst Where [varebetegnelse] and [ordennummer] is column in my query How can i do this in a view in SQL Second also in acces i use a criteria based on a form like this WHERE (((kategori.katId)=[Forms]![samlekursus]![kategorinr])) How can i do this in a view in SQL I work from access cnoocted to SQL sever Regards alvin You will either have to do the filtering on the view (using the view as a mapped table and building a query in access on top of that) Select SomeColumns FROM Viewname WHERE (((kategori.katId)=[Forms]![samlekursus]![kategorinr])) Or use a parametrized query, passing the parameter to ...Show All
SQL Server auto-commit vs begin transaction overhead
I've googled for the answer and searched sql server 2005 books online and I haven't been able to find the answer to my question. My main question is what is the difference in overhead between using auto-commit on every statement or explicitly calling begin transaction on every statement. I'm basically looking for documentation that points to the difference. Read on for the scenario... We have an application that has problems with deadlocks. Part of our strategy in handling these deadlocks is resubmitting the transaction. My solution to this part of the strategy is to wrap every storedprocedure in a transaction so this would include reads and writes. My architect has raised some concerns with regard to performance if it's implemented this w ...Show All
Visual Basic Unicode utf-8 conversion to vb.net
My Problem is to show the arabic string in vb.net... Basically we are importing the data from MySql to Access... The arbic strings are converted perfectly into unicode utf-8 format... for eg: ' محمد عبدالله العتمة ' these unicodes are in number.. but vb.net uses its equivalent Hexadecimal codes like & #1605; = &H645 & #1581; = &H62D & #1605; = &H645 etc.... and the hexadecimal displays fine in vb.net... Is there is any code/syntax in vb.net to convert the unicodes number(& #1605; & #1581; & #1 ...Show All
