qjs's Q&A profile
Visual C# Classes with the same name in the same namespace....
Hi All, In my solution I have 2 classes with the same name in the same namespace. This was legal in VS.net 2003 (.Net 1.1) and all the compiler did was to raise warning about this problem. However with VS.net 2005 (.Net 2.0), this has changed it now throws a compiler error for the same. Is it possible to get around this issue in any way without having to change the class names... Thanks in Advance andypai I don't think that this is possible. But why do you want to have multiple classes with the same name in one namespace Anyway, it is not a good practice to do this, even if it was possible in .NET 1.1 (never tried). For example, what would happen if you want to do a cast from an object to your class li ...Show All
Visual C# https / SSL session problem
How can I connect to a SSL session using C# ! I get the html code, but it seems I don't connect to the SSL session. In C# on line; Stream streamPostData = p_aWebRequest.GetRequestStream (); I get the following message; The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. My code is... string p_aURL = "https://192.168.100.12/login_mainF.cgi"; byte[] p_aAuthBytes = Encoding.ASCII.GetBytes("Administrator:MyPassword"); string p_sAuth = Convert.ToBase64String(p_aAuthBytes); HttpWebRequest p_aWebRequest = (HttpWebRequest)WebRequest.Create(p_aURL); HttpWebResponse p_aWebResponse = null; p_aWebRequest.Method ...Show All
Smart Device Development get sms from the inbox
how to get sms from the inbox my develop platform is c# .net cf 2.0 Thank you Try this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/ReceivingSMSMessages.asp http://www.microsoft.com/downloads/details.aspx familyid=98CCF3D4-DB7C-4A7D-A323-53BBDBBE0420&displaylang=en#RelatedLinks ...Show All
.NET Development Use ReadXml to update the DataTable
I use DataSet.ReadXML method to fill my tables with data. From time to time i expect to receive XMLs with the updated information. When i am trying to use DataSet.ReadXML again the exception "A child row has multiple parents." because parent table has unique constrain on primary key and the row with this key was inserted by previous call to DataSet.ReadXML. What i must do to cause DataSet.ReadXML to update existing rows and insert new ones instead of always try to insert Thank you. Hello. Thank you for pointing me to this API. According to the example it looks good. However, my DataSet has Parent/Child relations between tables being updated. The exception is because of such relationship. The documentation does not mention ...Show All
Windows Live Developer Forums More info on Error code: -100996
I am getting error code -100996 when adding a new order. The adcenterapi.chm file describes the error code as : (Can not create P4P order for the manual prebilled accounts. A P4P order for the manual prebilled accounts cannot be created). I couldn't find any info on the terms P4P and prebilled accounts. Kindly elaborate on this error. Also direct me to any other documentation on adcenter API apart from the chm file. Thanks Hi Sudhir, P4P, aka PFP, is Pay for Performance, which refers to keyword marketing based on the cost-per-click billing method. For this to work with your account, your account needs to be set up for monthly invoicing. If you are experiencing this issue in the production environment, please work with your Searc ...Show All
Gadgets Does gadget support Netscape and Opera now?
I heard Live.com have supported Opera and Firefox. But there some problems happen when I add gadget by Opera and Netscape without signing in Live.com. Why the gadget could not be added correctly without signing in Live.com Thanks The same gadget worked fine in IE6/IE7 Are you hosting on localhost Only IE can break cross-domain security restrictions, which means you'll have to host your gadget on a public server to be able to use it with Firefox and Opera. Obviously you won't want to submit your gadget to Gallery prior to testing, so go get yourself a free Geocities account, figure out how to use your ISP's free web service (most ISPs provide some free web hosting -- I know Comcast does), or find ...Show All
Audio and Video Development Debug Help with Simple Animation
I trying to debug a small problem. I cannot get the animation to activate. I'm missing something simple. MARKUP < xml version="1.0" > <root xml:lang="en" xmlns="http://www.dvdforum.org/2005/ihd" xmlns:state="http://www.dvdforum.org/2005/ihd#state" xmlns:style="http://www.dvdforum.org/2005/ihd#style" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dvdforum.org/2005/ihd http://www.dvdforum.org/2005/ihd/iHD.xsd"> <head> <styling> <style id="BACKGROUND" style:position="absolute" style:backgroundFrame="0" style:backgroundImage="url('bg_main.jpg') ...Show All
Visual Studio Team System Visual Studio has hung. What is it doing?
Hi, I have set up a new VSTS4DB (sorry if that's the wrong nomenclature) project and am importing an existing schema into it. That schema* has over 1500 tables in it. It has successfully created over 11000 files under the project folder and they all have a Last Modified Date of approximately 12 hours ago. Since then Visual Studio has been in that oh-so-lovely "Not Responding" mode. CPU utilisation is consistently about 50% and it is devenv.exe that is using it - so its definately chugging away at something. Some extra info: My project is part of a solution that is managed by Team Foundation Server We use TFS source control so once it has finished what it is currently attempting to do I shall be attempting to add all these ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xna error
on this .GameComponents.Add( this .graphics); i get this error Microsoft.Xna.Framework.Components.NoSuitableGraphicsDeviceException was unhandled Message="The values used in the attempt to create the GraphicsDevice were invalid." Source="Microsoft.Xna.Framework.Game" StackTrace: at Microsoft.Xna.Framework.Components.GraphicsComponent.CreateDevice(GraphicsDeviceInformation newInfo) at Microsoft.Xna.Framework.Components.GraphicsComponent.ChangeDevice(Boolean forceCreate) at Microsoft.Xna.Framework.Components.GraphicsComponent.OnGameChanging(Game previousGame) at Microsoft.Xna.Framework.GameComponentCollection.Parent(GameComponent gameComponent) at Microsoft.Xna.Framework.GameComponentCollection ...Show All
.NET Development How can i use SqlTransaction with TableAdapter in generated DataSet?
Hello, I have created TableAdapter in dataset. now i use Insert method of tableAdapter for enter data into table. i have a master and detail table. now somehow if error generate while i am entering data in detail table so on time master record autometcily remove from master table. so anyboday can help me that how can i use SqlTransaction in this senario The first technique didn't seem to do anything for me. I'm using a firebird database, so perhaps it is a weakness in their .NET implementation. It might be that I need to write additional code to make sure that System.TransactionScope uses the Firebird .NET client. I have no idea... When I try the second technique with the explicit transaction, I get the fol ...Show All
Visual C# Plugin architecture!?
Hi, I wouldn't normally post this kind of question, but I'm kinda in a time squeeze, so I have to. I'd like to develop an application which has a plugin architecture, but the "problem" (it might not be that much of a problem at all, I just don't know right now) is that all my plugin dlls have to all have the same function names (which I guess is easily doable using an interface for definition of the plugin functions first), but they should all be loadable at the same time.... Now what is confsing me a lot, is how the heck do I distinguish which plugin dlls function to call at which time (without hardcoding into the main app dlls names) I thought of adding a new menu item (subitem) for each dll, once that is loaded in ...Show All
Windows Forms Hi....is there any function to minimise,maxmise ,,as for close the customize bitmap form c# sharp has close() function......
well.....i have done it.......i dont want to change the backgroundcolor but i want change the conventional look of forms by my own bitmaps,...i use graphics and loaded the bitmap on forms now.....i u see the minmise, mazmixe, close buutons are not seen on the form.....instead i see my bitmap.....i paste and button on it and change the image of the button ........in that buttons code i used the function Close(); to close my bitmap form are there any functions to minimixe and maximize my bitmaps....plz write the code in this respect or tell me some tutorial i m a beginner in c# ...... thank u................ Hi, To minimize, maximize the current window use the WindowState property: this .WindowState = FormWindowState .Minimi ...Show All
Microsoft ISV Community Center Forums Recursive Function
It's been too long since the last time I used visual basic... the function I want to repeat is a function in Excel: Range("Q10").GoalSeek Goal:=0, ChangingCell:=Range("R10"), where Q and R will go from 10 and further down he columns... where do I put this into an recursive function the help menu gives this function: Function Factorial (N) If N <= 1 Then ' Reached end of recursive calls. Factorial = 1 ' (N = 0) so climb back out of calls. Else ' Call Factorial again if N > 0. Factorial = Factorial(N - 1) * N End If End Function Does anyone know this If you can use a loop instead of recursion then go for it. Recursion is best used for par ...Show All
Internet Explorer Development accessing dhtml/dom within c# user control
Hi, I have an embedded .NET user control in a web page, and I need to be able to navigate to a different page with the same browser when I click on a button in the control. How can I access IE's DOM from within the embedded control written in C#. I've been researching this issue for months, and have only found answers that involve .NET 2.0, which I can't use now and C++ which I don't know. Please help me out. Thanks Hi again, I've made some headway, but here's where I'm stuck. I'm able to pass the DOM document object into the user control but when I try to use the document object which I store in the variable declared as such "mshtml.HTMLDocument doc;" I get this error (wh ...Show All
Visual Studio Package Load Failure
I am developing a custom source control provider(like VSS).Its VS Integration package. I have added some menus and other stuff in that.I have tested the application in my machine in experimental hive.Its working fine.Now I need to install it in a seperate machine.I created a setup package for that.I have generated the registry entries using RegPkg exe in the SDK.I have imported those entries in the setup file.I have a Package Load Key which i have used using [MsVsShell. ProvideLoadKey ( "Professional" , "1.0" , "Package Name" , "Company name" , 300)] I have added the PLK in Resources.resx with the ID as 300.When i installed the setup package, I get to select the package in the Tools-->Op ...Show All
