Software Development Network Logo
  • SQL Server
  • Audio and Video
  • .NET Development
  • VS Team System
  • Visual Basic
  • Windows Forms
  • SharePoint Products
  • Visual FoxPro
  • Game Technologies
  • Windows Vista
  • Microsoft ISV
  • Visual C#
  • Smart Devicet
  • Visual Studio
  • Visual C++

Software Development Network >> Dr. Chris's Q&A profile

Dr. Chris

Member List

VBVegas
Amir.S
sunny123
Percival
AlanKohl
Krop
bes7252
itznfb
TechMate
mterlecki
Keith Patrick
pcompassion
abuck
katgreen
filson
DerekL
Barry333
markgoldin
techuser08
LeoFromCanada
Only Title

Dr. Chris's Q&A profile

  • .NET Development Consume Remote web service problem

    Hi all, I m new to web service. I m using VS 2005, asp.net 2.0 ,C#. I wanna consume a remote web service but got : "Unable to connect to the remote server" error. my code snippit is as follows: WebProxy proxyObject = new WebProxy("http://bluetongue.cs.rmit.edu.au:8080/", true); proxyObject.Credentials = new NetworkCredential("XX", "XX", "XX"); WebRequest req = WebRequest.Create("http://www.webservicex.net/globalweather.asmx"); net.webservicex.www.GlobalWeather gw = new net.webservicex.www.GlobalWeather(); gw.GetCitiesByCountry("Australia");//This line got :"Unable to connect to the remote server" ...Show All

  • Visual Studio Tools for Office I can't debug

    I am in a strange situation that i'll try to explain. I have prepared a Virtual Machine where i have installed this: Framework 1.1 (vs.net 2003) Office 2007 My old VSTO Excel solution (implenting ISmartDocument interface) My old solution run ok but i can't debug it. Anyone have some idea how to solve this problem i have tried in 2 ways: start debugging from Visual Studio 2003 (F5) by set Option Debuggin "Start External Program" (in my case Excel). Excel start but when i open my smart document it exit without informations first i start my smart docuement, task pane load ok and i run. Then in Visual Studio i select "Attach to process", select "Excel", but it say: "Unable to att ...Show All

  • Windows Forms combobox selection not updating with dataset

    I have a datagridview with a combobox column. After selecting a new value in the combobox from the list If I call DataSet.Update the new value in the combobox is not updated. It does not get set as the value until the cell loses focus. I tried calling dataGridView.EndEdit() but the row still does not get set as modified until later. (I think that I am having the same issue with a text box column) How can I accept the changes to the dataset before updating Thanks Another idea I found in the Microsoft Visual Studio help (on a completely different topic): private void dataGridView1_CurrentCellDirtyStateChanged( object sender, EventArgs e) { // For combo box and check box cells ...Show All

  • Software Development for Windows Vista Cannot uninstall WinFX Beta2 (April) error 1603

    Greetings. I have problem uninstalling the WinFX 3.0 Beta2. This is the latest beta before the current (June CTP) so I think it is Beta2 April CTP. I try to uninstall from Control Panel, and get this error: [06/26/06,09:50:58] Windows Communication Foundation Beta 2: [2] Error: Installation failed for component Windows Communication Foundation Beta 2. MSI returned error code 1603 [06/26/06,09:51:22] WapUI: [2] DepCheck indicates Windows Communication Foundation Beta 2 is not installed. [06/26/06,09:51:22] WapUI: [2] DepCheck indicates WinFX Runtime Components 3.0 - Beta 2 was not attempted to be installed. Ok, so it seems that I didn't have WCF installed , therefore I cannot uninstall WinFX So, I try to fnid the WCF Beta2 ...Show All

  • Visual Studio 2008 (Pre-release) Displaying item horizontally in Listbox

    Hi I am trying to display the items inside a list box in a multicolumn way, is it possible to do using Listbox controls…. Regards Ragu There’s a great sample, I think it will help you… http://blogs.msdn.com/atc_avalon_team/archive/2006/02/23/537715.aspx ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Does Content Manager use Caching?

    I'm wondering if the content manager uses caching... I have noticed quite a few people build objects like texture caches and so forth. Is this really necessary Previous to XNA I would create a texture 1 time and share it across multiple sprite classes... rendering the same texture at many different locations (1 for each sprite) during a single pass. Is it safe to just use the ContentManager inside of the sprite class with XNA Example //constructor public Sprite( string asset ) { this .texture = game.ContentManager.Load< Texture2D >(asset);} I've built my classes like this because I made the assumption that the content manager would only load a particular asset in memory once. But since it's an assumption I'm now ...Show All

  • Visual Studio 2008 (Pre-release) store ServiceSecurityContext.Current info

    This may sound strange but is it possible to save the ServiceSecurityContext.Current info so that I can retrieve it and use it later I have a scenario where the client subscribes itself via a subscription service in the host. The host resides in another machine. Later, another service from the same host tries to invoke a method from the subscriber's service. The trouble I'm having is with SSPI negotiation. When I try to invoke the client's method, I get a "SSPI negotiation failed" error. I think if I can tell the Host the client's ServiceSecurityContext.Current info, I won't be running into this problem. Thanks. I'm not sure how to find out the identities but to the best of my know ...Show All

  • .NET Development how to get a javascript value in c#

    How can I get a javascript value in c# I want a value of variable in javascript to be displayed in a viewstate in .net.How do I do it javascript code:- function rep() { var strLen = txtNumLine.length; txtNumLine = txtNumLine.slice(0,strLen-1); alert (txtNumLine); } } I want the variable txtNumLine's value in c# c# code:- ViewState["Exp"] =txtNumLine; payal tandon wrote: How can I get a javascript value in c# I want a value of variable in javascript to be displayed in a viewstate in .net.How do I do it javascript code:- function rep() { var strLen = txtNumLine.length; txtNumLine = txtNumLine.slice(0,strLen-1); ...Show All

  • SQL Server Nullable Foreign Keys

    Hi, I'm making a system enhancement and have a database design Q. The database contains a transactionitem table with a foreign key relationship to a Product Table. I need to extend the database schema to show that the TransactionItem.Product may also relate to another type of product grouping (depends on the sale type and this will be solely for reporting). Note. I can't link back using the TransactionItem.ProductID as this could belong to more than one group. My Question really is "Is it Good practise to have foreign key column with null values". I estimate that 80% or transactionitem records would contain null for this colunm. If I use an intermediate table the relationship between my TransactionItem and my new (new) ...Show All

  • Visual Studio Express Editions try this!

    I need to detect any keyboard key pressed and then process the code; if I use this I can detect only a part of keys. How can I detect also all other keys Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress ..... .... End sub This Sub is called if I press "k" key, but not F1, F2, .., Pag Up, Tab, Enter keys... Jessica posted a blog entry a while back describing how keyboard events are handled in windows forms: http://blogs.msdn.com/jfoscoding/archive/2005/01/24/359334.aspx Best regards, Johan Stenberg ...Show All

  • Visual C++ declaring arrays in C++/CLI and gcnew (or not gcnew) - beginner

    Can someone please explain to me the functional difference of declaring a string in c++/cli as array<String^>^ names = {"jack", "jill"}; vs array<String^>^ names = gcnew array<String^> {"jack","jill"}; My understanding was that gcnew is for dynamic memory allocation on the managed heap, but as a beginner, I haven't yet seen an example of why this is useful. I infer that using a tracking handle does not mean something is dynamically allocated. Is the advantage to gcnew (in simple beginner terms with a console app) only that I can ask a user at the prompt how many String elements he wants, then code like the following, rather than hard-coding the number of elements: int userWants = Co ...Show All

  • .NET Development ActiveX controls in server objects - Is this possible?

    Hello one and all, We have an n-tier app built using .NET Remoting. The server objects are hosted in IIS. Whoop-de-doo, everything is working just fine. Now, it comes to pass that I need to modify one of these server objects to use some external (3rd party) functionality. And, this 3rd party functionality is hosted in, yes, ActiveX controls. They have no user interface (except for a square box to let you know it's there) and were, I suspect, designed this way so that users of legacy VB can easily use them. However, I have found by trial and error that there is no way to interface to these controls unless they are sat on a Windows Form. This fact is borne out by this related article: - http://forums.microsoft.com/MSDN/ShowPost.a ...Show All

  • Visual Basic WebBrowser will not work with Flash. ANYBODY HAVE A FIX

    I have created a web browser and after like 2 clicks on any flash enabled web page it disables and i cannot click any type of flash anything it doesnt work. Does anyone know a fix to this oatman, I'm sorry to tell you that the flash without response after you click several times because of the WebBrowser bug. If you are using the Visual Studio 2005 with SP1, and the problems happens again, I suggest you to use the ActiveX control in your project. You know that there is ActiveX component in VB.NET and please use it and have a try. ...Show All

  • SQL Server Replication -- New Subscription Wizard SQL Mobile error, please help..

    I'm following the steps of sample SQL Server Mobile Tutorials.. error on my replication subscription wizard : "Initialiazing SQL Server Reconciler has failed HRESULT 0x80045003 (29045) The initial snapshot for publication 'SQLMobile' is not yet available. Start the Snapshot Agent to generate the snapshot for this publication. If this snapshot is currently being generated, wait for the process to complete and restart the syncronization. HRESULT 0x80045003 (0)" error while waiting synchronizing Data in New Subcription Wizard!! anyone can help how to solve this problem THIS HELPED ME. The tutorials assume that your C drive is shared so they tell you to use the machine name everywhere instead of your C drive. If ...Show All

  • .NET Development ODBC Access using Server Explorer gives TABLE_CAT error - Kludge Workaround

    Hello I am having a problem accessing the ODBC tables from the Visual Studio .NET 2005 version I am trying to use the Server explorer (View a Server Explorer) option in VS 2005 to acce ss the data through one of our properiatiary database. I am able to successfully login and execute Select Queries in the Queries BOX. But when i try expanding the drop down of TABLES and VIEWS in the right pane after connecting through the system DSN, I am getting the following error. Microsoft Visual Studio Column 'TABLE_CAT' does not belong to table Tables. This method works fine with the VS .NET 2003 version. I was trying to find out if this could be a problem since couple of folks had reported this problem in ...Show All

©2008 Software Development Network