Marek Istvanek's Q&A profile
Visual Basic YOU ARE A GENIEUS--Reed Kimble --THANK YOU SO MUCH Just a Minor Ajustment to make it work MAKE E.CANCEL = FALSE ---
I have this code whre I want to open a new window within browser1 of my form8 Instead I loose control of the browser and by loosing my session Private Sub WebBrowser1_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow e.Cancel = True Form8.Show() 'Form8.WebBrowser1.Name = what goes here I am not sure what to do here 'Here I am forcing the opening of this specific website/I want to open whatever url is clicked Form8.WebBrowser1.Navigate( http://www.accountingonline.us/invoice/index.php page=open ) ' Form8.WebBrowser1.Navigate(sender) this did not work End Sub Thank you so much for your help !!! Reed Kimble - http ...Show All
SQL Server Unable to see fields in query Builder
I am unable to see the fields in the query builder but I'm able to add tables. The tables only show all columns and not any of the other fields. I am able to submit SQL statements though. The data connection is ODBC utilizing DB2 Connect. Any suggestions ...Show All
Visual Studio 2008 (Pre-release) Accessing a WCF service from a ASP.Net Web application
We have used web services before and are trying to migrate to WCF. I am trying to use an ASP.Net application to communicate with a WCF service using a hello world example. I am able to reference the WCF service in my client. But when I invoke the WCF service, it gives me a the foll error: Exception: The request failed with HTTP status 415: Cannot process the message because the content type 'application/soap+xml; charset=utf-8; action="http://tempuri.org/IMyService/MyOperation1"' was not the expected type 'text/xml; charset=utf-8'.. I tried to consume the same service using a windows app and did not have any problems. Is there some configuration i am missing Can somebody give me an example of how to achieve Thanks in advance, Abhishe ...Show All
Visual C# Problem in fetching the values from the .Config file in COM+
Hi, I have created a COM+ component using C#. in this i am fetching data from the SQL2000 database. the connection string is in the App.Config file. problem: When i try to open the connection from COM+ component to perform any kind of operation i am getting the following error "The ConnectionString property has not been initialized." please give the solution if any one knows ASAP. OS: WindowsXP Language: C# .net 1.1 third party tool : ORM.Net for dataAccess layer thanks & Regards Pramod As far as I can tell, you have placed the config & manifest file in the System32 folder. You have to place the .config & .manifest file in the folder that you specif ...Show All
.NET Development Help Regarding Atlas
I have one query regarding Atlas(New technology given by MS for AJAX) I have one .cs file(CLASS FILE) name A.cs and I have one aspx file b.aspx in which javacript is present. I want to call server side function defined in A.cs from javascript in b.aspx using atlas. I have tried PageMethods.functionName(Parameters).It works fine if A.cs is code behind file of B.aspx *)Remember A.cs is not code behind file of B.aspx Pls reply Hi Mukesh, Page inheretance might work for you. Please try this: Inherit Class A from System.Web.UI.Page (I assumed the class name will be A for file A.cs) and Inherit Class B from Class A. (I assumed the class name will be B for file B.aspx.cs.) ...Show All
Visual Studio Team System User Names/Service accounts privelege
MY QUESTION AND CONCERN 1.Though I know that the user names are just place holders, I have read about people having problems with using different user names in the beta version.Hope that is fixed. 2. I also read in one of the forums that the service accounts need to be in the power users group.I just have them the Allow logon locally policy (as it says in the guide).Will that cause an issue I just want to make sure that I eliminate most issues before I begin the installation. 3. We have placed the Data files for the SQL server 2005 installation (Database and Analysis services) in a different drive that the default drive.We are planning to move the transaction logs to a different drive from there.Would that b ...Show All
Visual Studio Team System Lose reference when opening project from source control
We are using TFS for our source control. When I open a particular project, the reference to one of the dlls is lost. If I check under references, it is not their and I have to add it again. Thanks, Tim Hi: I dont think that is done by us and most probably it is the solution or project system removing the reference. Either way we will check here and see if there is any part in our code that touches that. I'll let you know. thanks, mario ...Show All
Internet Explorer Development Unable to cast mshtml.IHTMLDocument2 to IMarkupServices2 using mshtml Interop
Hi, I am unable to cast mshtml.IHTMLDocument2 to IMarkupServices2 in C#. I am using Microsoft.mshtml Interop assembly (version 7.0). The code snippet is IHTMLDocument2 pdoc; <pdoc assigned to a non-null value..............> IMarkupServices2 markup = pdoc as IMarkupServices; ...> value of markup here is NULL even though pdoc is non-null and the msdn documentation indicate that IHTMLDocument2 can be used to get a reference to IMarkupServices2 To be more specific, i am able to get a non-null reference to IMarkupServices in case of a .Net Webbrowser control in a sample winforms application. However when i try to get a similar reference to that of a running IE instance, i get NULL when i cast the non- ...Show All
Visual Studio Team System How can I get particular files from the source repository?
My project refers some third-party DLLs. They are used between muptiple other unrelated solutions so I keep them in centralized location in Lib folder. Now, when I am automating the build this folder doesn't get copied from the source repository. Is there any specific commands I have to add Like some target - "get this Lib before compilation", etc. When you created a team build type, one of the (3) files that got created and stored under your Team Build type folder in source control is WorkspaceMappings.xml. This contains the mapping between the TF server's source control path and your local path. Is your third-party lib under the server path in WorkspaceMappings.xml for your build type If no ...Show All
Visual C++ Error in vector allocation.
I have a large application that's been working for several years. Recently I was doing some work and I started getting errors every time I allocate a vector and use it once: vector<int> myvec; myvec.push_back(0); At this point I receive an access violation: msvcp80d.dll!std::_Container_base::_Orphan_all() Line 197 + 0x5 bytes C++ : Access violation writing location 0xcdcdcdcd Here's the code (the error line is bolded): inline void __CLR_OR_THIS_CALL _Container_base::_Orphan_all() const { // orphan all iterators _Lockit _Lock(_LOCK_DEBUG); if (_Myfirstiter != _IGNORE_MYITERLIST) { for (_Iterator_base **_Pnext = (_Iterator_base **)&_Myfirstiter; *_Pnext != 0; *_Pnext = (*_Pnext)->_Mynextiter) ...Show All
Visual Studio Tools for Office .NET 2.0 Addins compatibility (KB907417) to pre-Office2003 versions
Dear all, I am a developer of IME (Input Method Editor) and I have tried to integrate IME with .NET 2.0 based GUI via managed C++. It worked fine on Office 2007. To Word 2003 and Excel 2003, it requires KB907417 ( http://support.microsoft.com/ scid=kb%3Ben-us%3B907417&x=5&y=8 ) to load the IME DLL normally. To pre-Office 2003 versions, however, there's no hotfix to make them support .NET 2.0 based DLL. Since Office 2003 allows users to keep older version of Word/Excel/PowerPoint, it dramatically worked on Word/Excel XP/2000 if there's also a patched Office 2003 on the same environment, although only Office 2003's Addins folder, which is "Program Files\Microsoft Office\OFFICE11\Addins", has the patched " ...Show All
Smart Device Development Creating Single Insatance Application in SmartDevice Application
Hai, I have created DeviceApplication present under Visual C#\SmartDevice\Windows Mobile 5.0 Pocket PC.The out of this is an exe.I want to make this exe to have single insatnce i.e if one instance is running,if u click on that exe for multiple times it must not new instances,instead it must pop-up some message.I have developed the exe in .NET 2.0 version.I tried to do fix the problem using mutex,but it did not work.Another approach is to derive a class from the WindowsFormsApplicationBase class in the Microsoft.VisualBasic.ApplicationServices namespace and set IsSingleInstance property.Can anyone explain how to do this for Smart Device Application.I found that GetProcessByName ...Show All
SQL Server sp_spaceused
Hi everyone, I'd like to retrieve the results for SP_SPACEUSED. I've created a table with 7 columns, something like that: CREATE TABLE [dbo] . [ESPACIOUSADO] ( [DATABASE_NAME] VARCHAR ( 255 ) NULL, [DATABASE_SIZE] VARCHAR ( 120 ) NULL, [UNALLOCATED SPACE] VARCHAR ( 120 ) NULL, [RESERVED] VARCHAR ( 120 ) NULL, [DATA] VARCHAR ( 120 ) NULL, [INDEX_SIZE] VARCHAR ( 120 ) NULL, [UNUSED] VARCHAR ( 120 ) NULL, ) ON [PRIMARY] INSERT INTO ESPACIOUSADO ( [DATABASE_NAME] , [DATABASE_SIZE] , [UNALLOCATED SPACE] , [RESERVED] , [DATA] , [INDEX_SIZE] , [UNUSED] ) EXEC sp_spaceused But it doesn't works ...Show All
Visual C# C# 3.0 release date
I heard elsewhere it'll be released when .NET 3.0 is released, but that doesn't sound right. I can't find anything on Microsoft's website. When is it coming out If unknown, can you give me a range (Q2 2007, etc) Thank you much. Gabriel ...Show All
Visual Studio Express Editions Why do I need to sleep the thread?
The following code only works if thread.sleep in fitth line is 10000 or higher. Why is that Is there a way to better program when the web browser document, including all frames, is fully stored in the htmldoc Dim wbBrowser As New SHDocVw.InternetExplorer Dim HTMLDoc As MSHTML.HTMLDocument Dim iHTMLCol As MSHTML.IHTMLElementCollection, HTMLDoc = wbBrowser.Document Thread.Sleep(10000) iHTMLCol = HTMLDoc.parentWindow.frames.item(4).document.getElementsByTagName( "span" ) Try using the DocumentComplete event of the InternetBrowser object, it fires when the document is fully loaded and initialized. Use the WithEvents keyword to allow you to ...Show All
