glasgow's Q&A profile
.NET Development Event Handling in .NET Remoting (TCP Channel - Binary Formatter)
Hi I have a critical problem with setting event handlers in a remot object, hosted by a console application, using TCP channel and binary formatter. This is my sample hosting code: TcpChannel channel = new TcpChannel ( 8080 ); ChannelServices .RegisterChannel(channel, false ); WellKnownServiceTypeEntry serviceType = new WellKnownServiceTypeEntry ( typeof ( Provider ), "Service" , WellKnownObjectMode .SingleCall); RemotingConfiguration .RegisterWellKnownServiceType(serviceType); This is my sample client code: static void Main( string [] args) { TcpChannel channel = new TcpChannel ( 8090 ); ChannelServices .RegisterChannel(channel, false ); IRemoteServiceProvider servi ...Show All
Visual Studio Express Editions Custom shaped Form?
I'm wondering is it possible to have a form that isn't a square I want to have a form with a menu sticking off the side, so that it would stick out. Is this possible Thanks I'll try that but why do I need all this code, cant I just add it as the background image like I do with the bitmaps ...Show All
Visual Studio Express Editions Adding to listveiw on another form?
I am making an application which has a parent and several children. I have benn using VB6 for years but the higher object coding is getting the best of me. I have a listbox on "form1" form and would like to add to it from another form "form2". I want to add to it when some serial data comes in. I have made a public property on the "form1" to add the value tothe listbox but it does not work. Any help would be awsome.. Here is the property that i call from "form2" to add to the listbox. Public Property Listbx1Add() Get End Get Set ( ByVal value) ListBox1.Items.Add(value ) End Set End Property Curt; For troubleshooting pu ...Show All
Visual Studio 2008 (Pre-release) Styling Buttons using DependencyProperty
I want to create an ImageButton that uses three bitmaps for its various states. So I've created a 'ImageButtonStyle' that replaces its ControlTemplate with a custom ContentPresenter. I use triggers on this style to check for the button state. To determine which bitmap i have to use for which state, I've created a ButtonInfo class that can hold 3 Uri's (for each state) and some more info, like for example the text and the foreground color. An instance of this custom class gets created for each button and assigned to the content of the button. I then use binding (in the ImageButtonStyle) to access the properties of the content. So far so good: this works. I can see the button with the bitmap and caption. The problem is that I want to make t ...Show All
.NET Development vb.net 2005 code doesn't work in vb.net 2003, HELP!!!!!!!!!
VbCode Why doesn't it work. Why doesn't my code work. I am working with vb.net 2003 and I was following an example in .net 2005.The code is very short. I am only having a problem with one line. If someone test this out on there 2003 version You must have an xml file in th same folder that you have you executable named cars.xml. This code was placed in a button click event. The xml Code and vb code is below. The word Oldsmobole Should appear in the textbox. HEELLLLPPP!!! I keep having a problemn with line 4, of which I highlighted in red. Im geting An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll Additional information: Syst ...Show All
Visual FoxPro how could I change the Client's IP address automatically
Good day to all experts, how could we change the client's IP address automatically from the server . I have a small program running at the workstation and have also a program that monitor the workstation at the server which both works fine. But sometimes the user change the ip address which was manually configure and if i use DHCP they put an IP manually just for fun or just for experimenting or what-ever their motives i don't know. So i am thinking, if why not checking it at the server if one station's IP address has change , why bothering going to the workstation if it can be easily replace automatically from the server Thank you very much for your help regarding this matter. Have a nice day to all thanks a lot that ...Show All
.NET Development DataTable - Null Object Reference Error
We have a Multithreaded application where frequent updates will be done to Datatables either by adding or deleting or updating rows. As a precaution we lock the datatable to avoid any errors, but even after applying the lock mechanism on the datatable and when we make use of the Find method of the Rows collection of the database , we are flooded with the Null Object reference error. Error structure as follow Object reference not set to an instance of an object. in System.Data -> at System.Data.DataTable.GetIndex(Int32[] indexDesc, DataViewRowState recordStates, IFilter rowFilter) at System.Data.DataTable.GetIndex(Int32[] indexDesc) at System.Data.DataTable.FindRow(DataKey key, Object[] values) at System.Data.DataTable. ...Show All
Visual C# Windows Form Location
Hey everyone I've got just a quick question / problem. I'm making a new program, and in the constructor of the form, after the call to InitializeComponent(), I've got a call to: this.Location = new Point(0, 0); And the problem is that it does nothing. No matter what I do, I can't seem to change the form's location in the constructor. I've chucked a button on the form, and put an onClick to do the exact same location call, and it works there - just not in the constructor. Does anyone know how I can do this + why it won't work in the first place Thanks In the designer, change StartPosition (in your form) to Manual from whatever it is currently. Without that, Windows will default it to ...Show All
Audio and Video Development Playing ASF files with third part content using WMP 11 / Vista
Hello, I have generated some .ASF files containing a MPEG-4 video stream. I'm able to play these files with WMP 11 on Windows XP using a DMO without any problems. But when I try to play these files on Vista, WMP shows an error indicating that not decoder is available. (But I still can play them on graphedit using the DMO, so the DMO is registered) The question is: Is it required to convert the DMO to a MFT for being able to play ASF with third part content in WMP Or is just a bug in Vista Many thanks and regards ! /John Fredman That's good to know. Sorry for giving you the wrong info then, John. I guess the authors of my DMO took that into account ...Show All
Visual C++ VC++ 2005 : ambiguous call to overloaded function
Hi all ... Why am i getting "ambiguous call to overloaded function" for built-in functions and operators I am trying to complile the project developed using the VC++ Version 6.0 in the new version VC++ 2005. Thanx in advance. I think you should show us a part of your code and the error messages where the problem occurs. ...Show All
Visual C# string regex
Im not familure with regular expression so i was wondering if some one could help me with this. im trying to ummm get information from inside of a html tag. i can do the the ones like <body> but i can do meta tags here <meta name="description" content="bbc.co.uk offers a varied range of sites including news, sport, community, education, children's, and lifestyle sites, with TV programme support, radio on demand, and easy to use web search from the BBC." /> thats the tag from bbc. what i want is to only have "bbc.co.uk offers a varied range of sites including news, sport, community, education, children's, and lifestyle sites, with TV programme support, radio on demand, and easy to use web search from ...Show All
Windows Forms swap rows of a Datagridview!
HI I want to swap the contents of two datagridviewrows. I am using VC++ .NET Visual studio express edition . Any suggestions how I can do it Cheers! I'm not familiar with VC++.NET, for C#, do in this way: //swap row 2 and row 3 for ( int j = 0; j < this .dataGridView1.Columns.Count; j++) { object tmp = this .dataGridView1[j, 2].Value; this .dataGridView1[j, 2].Value = this .dataGridView1[j, 3].Value; this .dataGridView1[j, 3].Value = tmp; } you can take my thought, and translate it to VC++, Zhixin Ye ...Show All
Visual Studio Team System WorkItem Project Alerts not working
Hi, We have project alerts working fine for "Build completes" and "Anything Checked in" project alerts. But NOT for the "work items changed by others" setting. Any idea why this is the case We have been creating and assigning work items up the wazoo but no alert emails so far... I don't see errors in the event log either. Thanks, JGP JGP, the subscriptions need to be added either using bissubscribe tool, or using client APIs (pointer in the post), and not directly in SQL. You can add many subscriptions in a loop using either of those approaches. ...Show All
Visual Studio Yet another problem with symbols
Right, so I've used VS in the past with no problem, but I was working with C# and today I was looking to code port a portion of code into C++. As I have visual studio professional 2005 Team Edition installed (College is great) in my lab, I was looking to use it. For this piece of code I really need to be able to use the debugger and step into the code as the language the file was written in is far different (ever heard of IDL ). Now, I've spent four hours trying to solve this problem, and it's starting to annoy me. It loads the file when I go into the debugger, but as other people have had, it displays the breakpoint won't be hit, no symbols are loaded. Now, I opened up the modules window for the debugger and it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. OpenGL wglCreateContext fails when rendering onto a bitmap when not having rendered onto a window first
Hi, I'm having a frustrating problem with the wglCreateContext call. I'm using DirectX for rendering on screen, and I'm using OpenGL to render the same thing onto a bitmap (for printing). When not using DirectX, the OpenGL bitmap creation works fine, but when using DirectX, the wglCreateContext call fails and GetLastError returns 8 ("Not enough storage is available to process this command"). Anybody got any thoughts on this A number of calls are succeeding before this call fails: getting the screen DC, CreateDIBSection, SetPixelFormat all succeed. All help is appreciated! Wout I'm just getting more insight in what the problem is. It doesn't have to do anything with DirectX, the problem seems t ...Show All
