John Dunn's Q&A profile
Windows Forms Control to display images
I am helping to develop an application which is essentially a chat area. For the most part, everything works well however I seem to be running into some limitations in the controls available. Or maybe more likely I am just not used to everything I can use... so many changes in the dot net side. Anyway :) If I use a VB form with a WebBrowser control for the interface to display received messages, I can easily scan the incoming text for various key words (i.e. :roflmao:) and then change them to a location where various images (jpg, gif, whatever) are located and display the image rather than the text. Reformat the layout to html specs and display that in the control. This works well, except that the WebBrowser control does not seem to sup ...Show All
.NET Development Consuming webservice method with custom object argument
I have a webservice which takes a custom object (defined in a referenced dll) as an argument. The object is [ Serializable ] and [ CLSCompliant ( true )]. The consumer is able to create this object by referencing the same dll. However, the consumer is expecting a different argument type. The type it is expecting is ProjectName.WebRefName.ObjectName I have tried creating an object of the type the web service is demanding, but I lose functionality of the desired object (eg, collection members). Why is the consumer expecting a different argument type than what is defined in the webservice Thanks. I have also discovered that reference.cs has changed the generic list&nbs ...Show All
Visual Studio 2008 (Pre-release) Client side custom behaviors don't seem to work
Hi, I'm having a lot of trouble programmatically increasing the DataContractSerializer.MaxItemsInObjectGraph property on the client side. I've read the posts about increasing it on both client and service side, and have also increased the top-level ServiceBehaviorAttribute.MaxItemsInObjectGraph property and nothing seems to change the default value of 65536 used by the client. To test this, I implemented a derived DataContractSerializerOperationBehavior that creates a wrapper for a DataContractSerializer so I could intercept Read/WriteObject calls by following this example - http://blogs.msdn.com/sowmy/archive/2006/03/26/561188.aspx . By doing this I discovered that my serializer wrapper was not being created/called by the client. ...Show All
Windows Forms DesignerHosting C# Sample as VB Solution
On http://msdn.microsoft.com/msdnmag/issues/06/03/DesignerHosting/default.aspx is a C# Solution downloadable. Is the DesignerHosting Sample as VB Solution available Or how has converted it to VB In order to convert it to VB you've got two easy options. One is to take .NET Reflector and Reflector.FileDisassembler use them to load the compiled example and then output VB source code from it. Another way would be to use one of the many C# to VB.NET converters in their online or downloadable form. ...Show All
Windows Forms How does the designer locate an assembly ?
I can see the topic about locating assemblies at run-time. My question is how the VS 2005 IDE and the Windows Form Designer locates an assembly a design time. I have my own assemblies of components, which I am testing and which therefore do not have strong names and are therefore not in the GAC. I was able to add my assembly's components as Toolbox Items through the Choose Toolbox Items... dialog and by browsing to the directory where the assembles are located. When I create a .Net application and use the Toolbox it appears that the IDE will always know where my assembly is at design time because the full path to the assembly is in the Choose Toolbox Items... dialog. Is this all that is needed at design time to locate an assembly for the d ...Show All
SQL Server can't connect to SQLCMD
dear sirits my first time to work with SQL server 2005 i've installed it and tried to connect to sqlcmd by : run sqlcmd i got errors after that i logged to the database engine normally and created new database and tried again to relogin to the database engine but i failed and faced error:4064 i have three points needed to be answered : 1- SQLCMD loin problem 2- database engine error:4064 3- i need to import .mdb file to my new database regards 1. See your post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=671937&SiteID=1&mode=1 2. The user you are currently trying to login with does not have the appropiate permissions to the assigned default database or the database does not exist an ...Show All
Windows Forms folderbrowserdialog is available in .net framework 2.0 ???
Hi All, First question is does .net framework 2.0 supports "FolderBrowserDialog" class (1.1. supports and I want to use it) Second is how do I know "whether particular class is available in particular .net version or not" Hi there, The framework 2.0 supports the FolderBrowserDialog class as you can see here http://msdn2.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx (look at the bottom of the page for 'version information') To find out if a class is supported in a specific version you can search it on the msdn site at http://search.msdn.microsoft.com/search/ If you can find the class, look for the 'version information' section on the page. ...Show All
Visual Studio Team System Team build CTP6 datadude project
I'm trying to team build a solution with a ctp6 Datadude project but the build fails stating the next line in the buid.log file Target SqlBuildScriptName: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 Microsoft.VisualStudio.TeamSystem.Data.Tasks.targets(26,5): error MSB4044: The "SqlBuildScriptNameTask" task was not given a value for the required parameter "TargetDatabase". Done building target "SqlBuildScriptName" in project "SenterNovem.Ras.Database.dbproj" -- FAILED. Can someone give me a hint where to look to solve the problem. I noticed that it did not move to the DataDude forum so here goes. In the readme for CTP 6 it states that the ...Show All
SQL Server Loading tables with Foriegn Key contraints
Hi, I am having trouble loading tables (within the same data flow) that have a foriegn key relationship defined between them. For instance: Table A is a parent (one side of the relationship) to Table B (many side of the relationship). I am trying to load Table A first within the data flow and then Table B after, but I get the following error: [OCMD EntityRole Insert [2666]] Error: An OLE DB error has occurred. Error code: 0x80040E2F. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E2F Description: "The statement has been terminated.". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E2F Description: "The INSERT statement ...Show All
.NET Development DataSet.Merge() and Deleted rows
Hi all, I'm sure I'm overlooking something, but I can't seem to get the Merge() working correctly when the merged DataSet has deleted rows. I'm using Typed DataSets, although I doubt if that makes a difference, does it I *have* set PrimaryKey properties. Here's some code to illustrate my point ... I made a copy of my Personnel DataSet, I then made changes in the Personnel DataSet and then merged them back to the copy: dsCopy = (MyPersonnelDataSet)dsPersonnel.Copy(); // change a row in the Personnel table dsPersonnel.Personnel[0]["userkey"] = 0; // delete a row in the PhoneNumber table dsPersonnel.PhoneNumber[0].Delete(); // add a row to the PhoneNumber table DataRow row; row = dsPersonnel.PhoneNumber.NewRow(); row["phonen ...Show All
Visual Studio Documenting overloaded methods and Sandcastle
I'm a bit of a newbie using Sandcastle, so please bear with me. I'm at a lost. I cannot find out how to document the collection of overloaded methods. For instance. Say I have four overloaded Add() methods: public void Add( string name) public void Add(string name, Socket socket) public void Add( Socket socket, RobotPart robotpart) public void Add(string name, Socket socket, RobotPart robotpart) It looks to me as though Sandcastle, by default creates a folder for all of these Add() methods, and randomly chooses one of the headers as the folder name (again please bear with me about the names I am using) Now, within a summary tag for another method, say GetSomething(), I want to place a tag which wil ...Show All
.NET Development ASP.NET Machine A... still present??
Hi! I know that this comes up when the .NET 1.1 is installed, but I read that the SP1 is meant to remove this I've installed SP1 via Windows Update and it's still present I've done this before and sometimes it goes and other times it stays. Is there some process I am missing, like restarting after 1.1 install or something that I am missing as I can't stand having this there and don't want to delete it or anything. Thanks! It's SP1 for the .NET 1.1 Framework. I read it should remove the ASP.NET Machine A user but it's still present. [I'm running Win XP SP2] ...Show All
Visual Studio Express Editions Microsoft VisualC++ Runtime Error
When using IE6 at yahoo website I click on the Sunrise Link, Sunrise Family and then Competition link this opens a new window. I then get the following Error message. Microsoft VisualC++ Runtime Error Program C:\programfiles\Internaliexplore.exe R6025 -pure Virtual Function call diggadx wrote: When using IE6 at yahoo website I click on the Sunrise Link, Sunrise Family and then Competition link this opens a new window. I then get the following Error message. Microsoft VisualC++ Runtime Error Program C:\programfiles\Internaliexplore.exe R6025 -pure Virtual Function call This is a problem with internet explorer, not a Visual C++ error (It just says Visual C++ runti ...Show All
Visual Studio Express Editions how to make it user friendly?
Hello! I am quite new to VB and therefore my question might be a bit stupid but: I programmed a database (using sql server express) where I can perform sql queries using user given values. This works fine until the user inputs wrong values (wrong datatypes)- then the programm crashes. Using the online help and other tutorial I could not find out how to overcome this problem. Maybe you can help! Here is what I have programmed so far: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a, b, c, d As String a = column_cb.Text b = value_tb.Text c = operator_cb.Text d = ( "Select * FROM stand_info WHERE " & a & &q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2d sprite shrinks on x axis
how can i stop my sprite shrinking on the x axis when i rotate it Or you can use a different overload for 'Draw' like; spriteBatch.Draw(Image, Position, null, Color.White, Rotation, Origin, Scale, SpriteEffects.None, 0); where Position and Origin are Vector2. Now you can make the Origin of your sprite the center; Origin = new Vector2(Image.Width / 2, Image.Height / 2); ...then use Rotate to set the angle (remember it's in Radians) ...Show All
