msedi's Q&A profile
.NET Development HTML Executables in c#
Is this possible Basically, I have a set of HTML files that I want to kind of embed in my desktop application using c#. I was able to do so via Resources. I added all html files to resources, and loaded the index file via ResourceManager class in a WebBrowser control. Now, that index file links to few other html files (they also added to the resources). But if I click on any link in the index file loaded in WebBrowser control .. it tries to connect to the following URL: about:blank"Link Location". Is there better ways of doing this that solves my problem A simple solution would be to write out al your HTML (and images that go with it) to a temporary location on disk and then point the browser a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rendering inside out
I'm trying to figure out how to render a skysphere, and my understanding is that you essentially create a sphere and render it inside out.That way, the camera can be in the center of the sphere, and the sphere's texture shows up on the inside. I'm sure there is a way to do this, but I haven't found it as yet. Is this something a shader would do If so, where is a good resource for HLSL I haven't a clue how to use that. Thanks! Thank you, this is definitely working! Game design is definitely tough, XNA really does help to ease that learning curve. I've got a test skysphere working now! ...Show All
Visual C# UnauthorizedAccessException while trying to convert & write an XML file from DataSet obj
Hai, I am using .net 2.0 frame work with WIN 2000 Server, the following error occured while trying to convert & write XML document from DataSet obj. ERROR: Access to the path "C:\WINNT\system32\Cusromers.xml" is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access to the path "C:\WINNT\system32\Cusromers.xml" is denied. The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited ...Show All
Visual C# reference object not updated
i send a class variable string into a nested class by "ref" ( using a constructor). inside this nested class i operate a thread and change the string variable value inside the thread. from this thread i call a delegate function which points into the main (not the nested) class function, why can't i see the change in the string there why didn't the variable string changed in the thread but the class variable string itself didn't i passed it by reference! example : // main class sealed public class TCPIPComm { private String outStr = "Out"; clientSearch = new ClientSearch(ref outStr); // base nested class abstract class ConnectionSearch { protected String MainString = ""; // constructor protected ...Show All
.NET Development webservice
Hi, My virtual directory is C:\Intpub\wwwroot.And i created a directory i.e prwebsr under wwwroot.In the PRWEBSR directory i created a webservice.After that when i try to add a reference of that created web service it is giving error.COULD NOT CREATE TYPE SERVICE.Why this error is coming.If i created a webservice under the WWWROOT then ADDWEBREFERENCE is successful. Please help me Thanks in advance kalkumar, The wsdl dialog tool is finding the web service .... I mean can you open the web service and see its web methods with no problem .... or you can't even find it Rgds Rodrigo ...Show All
Visual Studio Express Editions buttons
I've got a trouble with a program: I've placed a button on the userinterface. And I want that when you click on it, the button disapears for a moment. That's what I have: Sub button1_clik dim W as Long button1.visible = False Do until W = 100000000 W += 1 Loop button1.visible = True End Sub But that doesn't work. The button never dissapear Is there someone who can tell me how a button could disapear for a moment (Maybe there 's an own command ) to me it looks like you are using VB6. Can you confirm you are using VB.NET or VB6 These forums are only for VBExpress (VB.NET) development in general it may appear it hasnt disappeared but it may have. you could execute Application.DoEvents() when you made it inv ...Show All
Visual Basic BindingSource AddNew Contraint BUG?
This is my problem. I have a table in Access "ASV Letter" in which the field "Number" is the primary key. I connect to that DataBase with a DataSet. I have a button to add a letter. It opens a DialogForm where the user types the values of the new field. If he tries a value that was already used, it trips an error as expected. But.... If he gives a new letter and immediately after try again with the same number, no exception at all are raised! If he clicks the button again, the addNew method fires an exception (dbNull not allowed in the field). I really cannot uderstand why. Any one could help EndEdit() just ends the current edit operation on the current row in the binding source. This e ...Show All
Internet Explorer Development ActiveX file save dialog blocked by pop-up-blocker
Hi all, I have this ActiveX that upon the user pressing a button raise the Microsoft Common Dialog to save a file. In IE 6, this works like a champ. With IE 7 the dialog is consequently suppressed by the pop-up blocker mechanism. The funny thing is that it is consistent, even if I turn of the pop-up blocker. The yellow bar still appears in the the top of the ActiveX on the web page. Is this a known bug in IE 7, is there a workaround to this Thanks, Cheesle Thank you for your suggestion, but I have tried with both CTRL and CTRL ALT down when I click the button to invoke the dialog. My problem is probably that I have this ActiveX which is hosted by IE, but inside the ActiveX, it is hosting ...Show All
Windows Live Developer Forums Somehow deriving an AddPolygon() from a Live Search Collection
Dear Group, I've recently begun to experiment with Virtual Earth. I do a fair amount of JavaScript programming in my real job; so I created a rudimentary script to allow me to plot a polygon representing a political district in my city. I'm an alderman running for re-election and I got interested in Virtual Earth as a means to make an on-line map of aldermanic districts. Anyway, here is my rudimentary page: http://www.swerbach.com/Neenah3rd/NeenahAldermanicDistricts1and3.htm Summary of functions: Start: Start recording mouse click positions as LatLong pairs Stop: Stop recording mouse clicks Del Last Line: Remove last polyline drawn on the map Display: Show recorded mouse clicks in new window So click the 'Start' button an ...Show All
Software Development for Windows Vista Deploy/Debug CE app from Vista
I'm having problems deploying my app from Visual Studio 2005 to my Windows CE. My host OS is Vista 64. I think its related to ActiveSync not being supported under vista. Now we have "Windows Mobile Device Center" (if this is not the correct form please let me know) Thanks, Hi Juan: This forum is for discussion of programming issues with Tablet PCs and Mobile PCs, such as laptops and Ultra Mobile PCs. I believe you want to post your question in one of the Smart Device Development forums . Thanks, Mark Hopkins - MSFT ...Show All
Visual Studio Express Editions Palindromes
I am trying to make a program that deals with palindromes (ex. 12321 or 11611). It is supposed to read a five digit intergers. After entering the number my program is supposed to tell me if it is a palindrome or is not one. If you can help it would be wonderful.Thanks Dim teststring As String Dim yournumber As Integer = 12321 teststring = format(yournumber, "00000" ) If (Mid(teststring, 1, 1) = Mid(teststring, 5, 1)) And (Mid(teststring, 2, 1) = Mid(teststring, 4, 1)) Then MsgBox( "it's a palindrome" ) ...Show All
Windows Live Developer Forums MSDN Article
Hi, I just read this article, but I cannot get it to work is keeps saying that sc is null or not an object. Anybody got it running tnx koen Yes, i put it in the root folder and even copied the source of the .js file into the header of the html page. doesn't seem to work :( ...Show All
Visual C++ Changing border of static control at runtime
How can I change the appearance of a static control at runtime, in an MFC dialog Specifically, I want to have the 3D border appear or disappear in response to something in my pgm. I have tried ModifyStyle + WS_BORDER and ModifyStyleEx + WS_EX_CLIENTEDGE, and neither affects the appearance of the control when it is redrawn. The static control was created using the dialog editor, and a test shows that two controls, one created with the property "Border" and one not, differ only in the WS_EX_CLIENTEDGE style (per Spy++). However, even though ModifyStyleEx + WS_EX_CLIENTEDGE succeeds in changing the window style (again, per Spy++), the appearance does not change--I cannot turn the border on and off as required. ...Show All
SharePoint Products and Technologies A web part that is a consumer and provider at the same time.
I have already implemented a provider and consumer ASP.NET web parts and using them in sharepoint. Now I have to send some information from my consumer web part to another consumer web part. Is it possible If not can I handle it using ViewState Thanks Yes, that's possible, though I must confess I've not tried it yet. There are standard web parts in WSS3 that are both. You'll have to make sure that your consumer that is providing info is also a provider. A good article that also shows creating web parts (and transformers) http://www.carlosag.net/Articles/WebParts/webPartsTransformers.aspx I don't see that there is a reason why you couldn't have a class that implements an IFoo interface (and so ...Show All
Visual C++ infinite looooooop?
hi i have this infinite loop int array[5]; for (i=0;i<15;i++) { array[ i ] = 0; // here i becomes ZERO when i = 5 } i am not understanding why this is infinite loop.. "i" is incrementing till 5 then suddenly it becomes 0.. and i mean i never goes beyond 5. so the infinite.. . can any one tell me why "i" becoming 0.. after 5 in the loop.. manish i kno u hav given me the answer but i wanted to kno wat is dat " undefined " .. int array [ 15 ]; for(int i = 0; i < 15 ; i++) { array[ i ] = 0; } & thanks for above code.. . manish ...Show All
