Arnold Schrijver's Q&A profile
.NET Development WebBrowser control connects but httpRequest does not! Why is it different?
Using VB.Net I have a form, user, password, url. A multiline tex box to show html source, a web browser control to show html ( mainly to prove connection is possible.) I try to requst a page from my webserver which has basic authentication set, user Test, pwd Test. The webserver is onboard a network input output module When the browser connects a dialog pops up. i enter the credentials and click ok. The web server sends the correct page. When using the request method i get disconnected during the GetResponse. What is the web browser control doing that i am not Code included: If the webbrowser can do it then surel ...Show All
Visual C# Mdi Forms Problem
Hi, first of all m using .net 2005 visual studio, my problem is about mdiparent and child forms Problem: I ve 2 forms name Form1 and Form2, i set Form1.isMdiContainer = true; and i added this line public Form2 TeslimKForm = new Form2 (); public int OpenControl; to Form1.Designer.cs And my Form1.cs file : public Form1() { InitializeComponent(); this .OpenControl = new int (); OpenControl = 0; } private void MainToolStripMenuItem_Click( object sender, EventArgs e){ if (OpenControl == 0) { TeslimKForm.MdiParent = this ; TeslimKForm.Show(); OpenControl = 1; } } when i dispose the childform " TeslimKFo ...Show All
Visual FoxPro Changing Report Label Text At runtime using ReportListeners
Hi, I want to change the Text of the Labels in the Report using Report Listener. My exact scenario is like this. The application which i am working is a international product and used in various languages, i want to change the report Text, Label and Static Text to the Corresponding Language selected in the application. Is there any way using ReportListener we can dynamically change the static content in the Report especially Labels and TextBoxes Thanks in advance -Venkat I don't use listeners so I don't know if listeners have an easier solution. What I do is to get a copy of the frx, change labels on the fly ...Show All
Smart Device Development Build rule
Hi, All! Could somebody tell me how can I choose Microsoft Macro Assembler Tool to buld *.asm file if this item is not present in "*.asm Property Pages" dialog->Configuration properties->General->"Tool" drop down list The same problem appears when I've ignored the Buld Rule Dialog at file addition... and in some other cases Thanks. Does http://blogs.msdn.com/jeffabraham/archive/2005/03/31/404283.aspx work for you There's a bug in the project system whereby this requires you to generate a .obj with the same name as your project in order to deploy, but you can address this by adding an empty .cpp wi ...Show All
Visual Studio 2008 (Pre-release) Deserialization exception?????
Hi , I m using wshttpbinding. I am getting the this problem Message "Error while trying to deserialize parameter http://Corona.Services.CoronaService:ehr . Error in line 1 position 904. 'EndElement' 'ehr' from namespace 'http://Corona.Services.CoronaService' is not expected. Expecting element '_dtDateOfCreation'" string. Call doesnt reach the WCF service and i get this exception on client . Is there any problem in the Proxy generated or in wsdl In the above case i m passing the type EHR alone to function. Other functions i have tested also uses EHR but that didnt given the exception Waiting for quick respose Regards ...Show All
SQL Server Return random rows
Are there any way to execute a procedure and return N random rows Add an id column to your table. Then, from application generate a list of n random id-s, and select the rows with those ids. If you specify the context of the application you are intending to do this, more help might be possible. In any case, T-SQL is not well suited for generating random numbers etc. Do this in your app code. ...Show All
.NET Development Linking an Object Oriented Class to Form Controls
I have a windows form created in Microsoft Visual C++ .net 2003. I have also created an Object Oriented Class with derived classes that I want to use to handle my data. I set it up so that when the the initializecomponent() part of my form is accessed it will create a pointer, or new object, to the OOC class I created. (example: classname * objectname = new classname();) This is fine and as long as I am inside the initialize component brackets I can access that class and its members. The problem is that I want a button to perform some function within that class to set, or manipulate data. When I set up my action onclickButton, and attempt to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged equivalent to Sprite.Draw2D?
Is there an unmanaged equivalent to Sprite.Draw2D I only see ID3DXSprite::Draw listed in MSDN. My GUI system uses Sprite.Draw2D and I'd like to make an unmanaged version. Or will I have to work with the transforms You will have to work out your own transforms. Draw2D was a special "helper function" that was only in the Managed APIs (and to be honest, there's some discussion about whether it should stay). ...Show All
Visual Studio Creating custom project
I am trying to create a new project type in the visual studio .NET 2005.There is 28 step method is given for creation of the custom project. At one of the step it is talking about a dll microsoft.visualstudio.package.project. This dll is not available in the vsip. We have downloaded the visual studio 2005 SDK & installed. Please provide simple steps for the creation of the project type. Example of the code will also be helpfull. The microsoft.visualstudio.package.project.dll is not provided as an assembly in the VSIP release. Instead it is provided as source code that you will need to include in your solution and build yourself ...Show All
Windows Forms conversion of units before save or insert into database
I have a formview control that binds to the table in a database. All the actions works fine (insert/update/delete), now a problem arise when I need to apply a conversion formulas to the data fields. After I converted the values in the fields on the ItemUpdating event, it still save as it's previous value. Do anyone of you have any ideas if i made any mistakes protected void FormView1_ItemUpdating( object sender, FormViewUpdateEventArgs e) { // Convert the medical data from Metric units into System Int units according to the value on the dropdownlist before updating DropDownList DropDownListUnitUsed = FormView1.Find ...Show All
Windows Forms Problem dragging documents from my App into Word2003
Hi, I've been trying to implement drag and drop from my application to other applications. It's a little more complex than usual in that the files first have to be downloaded over the web, but this should not be a problem. When the drop occurs, I download the file over the web to a local directory, and then copy from here to the external application. I've implemented this as shown below and this works fine for dragging my word documents to Windows Explorer, to WordPad, to Internet Explorer, to the desktop, but NOT to Word2003!!! Basically, when the drop occurs, the external application calls GetData on my DataObject. The GetData ...Show All
Visual Studio Team System o How to accomodate multiple products with a work item
Our product manager has started to use team foundation. We have one project for our overall product family and our product manager asked me how we can associate a work item with multiple products. This is not the same thing as an area path, as one core feature may appear in multiple products. Does anyone have any ideas on how this can / should be handled Hi, If I understand correctly, you have features that need to be a part of multiple "products". You are using workitems to represent those features. If so, you can structure the data a little differently: use area tree nodes to represent features, and us ...Show All
SQL Server SQL Impesonate Logon Problem
Hi. I am currently working on an ASP.NET application which has to log on to SQL using a specific windows user account. As far as I am aware the only way to do this is by adding the Integrated Security=true ; property to the connection string. If you specify a user id and password then it will try to log you in as a SQL user. Is this all correct To be able to login to the SQL server we explicitly call the LogonUser function from the advapi32.dll then open a SQL Connection using the Integrated Security=true property. When you look at SQL Profiler it seems that there is two logon calls made when the conne ...Show All
Visual Studio Team System Data Warehouse not updating
Hi. In our installation, the data warehouse doesn't get updated. An exception due to converting a date-string seems to be the problem. In Application eventlog this is found: Event Type: Error Event Source: TFS Warehouse Event Category: None Event ID: 3000 Date: 19-10-2005 Time: 14:28:36 User: N/A Computer: W92169 Description: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 19-10-2005 12:28:36 Machine: W92169 A ...Show All
Visual Basic Form Border style help..
Syntax in VB .Net Hi... i have made a program than has no border Me.FormBorderStyle = FormBorderStyle.None I put an image for the background which has smooth edges and a black background then i changed the Transparency Color to black so that the form bow is shaped like the image. Every thing now is alright but my problem is I put a button for minimizing the form with this code Me.WindowState = FormWindowState.Minimized The problem os when i restore the form by clicking on the program in tha task bar the form border apears So please any one help me Major, i tried this out, and couldn't get it to repro ...Show All
