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

Software Development Network >> Sto King's Q&A profile

Sto King

Member List

AlexReg
spshah
J1mlad
Trish
Derek Comingore
apple_pie
Xelestial
DonRajah
Pranav Sanghadia
Tibia Rules
Def
Dnieto23
GrayMatter Software
Peter Huber
George1905
SnakeSV
A.Kahn
Mike3983
BALA SINGAM - My
rough
Only Title

Sto King's Q&A profile

  • .NET Development Input string was not in a correct format

    I get this strange error. I have Int field in my table, and I read it this way: cmd.Parameters.Add( "@godina" , System.Data. SqlDbType .Int, 4).Value = plo.godina; but, when I try to execute, I get this error Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 283: plo.model_plovila = cmd.Parameters["@model_plovila"].Value.ToString(); Line 284: plo.brodogradiliste = cmd.Parameters["@brodogra ...Show All

  • .NET Development Trouble with root node of a transformation

    I’m having trouble with a transformation where the XML document doesn’t have a root node. Instead, the XML document has a root element with attributes which (I believe) is the reason why I can’t get the result I’m looking for. Below is all the code. Thanks for you help. I have the following XML file <FIXML r="20030618" s="20040109" v="4.4" xr="FIA" xv="1" xmlns=" http://www.fixprotocol.org/FIXML-4-4 "> <Batch> <AsgnRpt RptID="426522297" AsgnMeth="R" BizDt="2006-08-01"> <Pty ID="OCC" R="21" /> <Pty ID="00234" R="4" > <Sub ID=&qu ...Show All

  • Windows Forms Displaying a usercontrol in a DataGridView cell

    I need to display usercontrols in the cell of the DataGridView. The edit control feature, that displays a single control while the cell is in edit mode, is not sufficient. I need to display multiple controls, of different types (plotters, gauges, etc) in multiple cells. I read the warnings about this feature not being supported by DataGridView. Unfortunately, I can't seem to find ANY .Net grid on the market that supports this feature. With trepidation, I tried it anyway. I made a custom cell that creates a user control and used the Paint override to move the control into the cell display rectangle. It sort of works, but there are a few boogers: 1. The grid steals the return key message from my usercontrols. Some of my controls use the retu ...Show All

  • Visual Studio Team System Same Transition but different Users

    Hello, I am currently customizing a work Item and I would like to have the reason, for a transition, to be dependant of the user group. I.e. The transition from state "A" to "B" is available for MyGroupA with reason "reasonA" and "reasonB". The same transition is available for the remaning user with reason "reasonC". I have tried the following solution : <TRANSITION from="A" to="B" for="[project]\MyGroupA"> <REASONS> <DEFAULTREASON value="reasonA"/> <REASON value="reasonB"/> </REASONS> ... </TRANSITION> <TRANSITION from="A" to="B"> <REASONS> ...Show All

  • SQL Server simple text processing e.g. regex search and replace

    I've got an nvarchar(max) column that I need to transform with some simple text processing: insert some markup at the very beginning, and insert some markup just before a particular regular expression is matched (or at the end, if no match is found). Since the SSIS expression language doesn't support anything like this, is a Script Component the only way to go Does Visual Basic .NET provide regular expression matching Thanks! Kevin Rodgers wrote: Duane Douglas wrote: Kevin Rodgers wrote: Duane Douglas wrote: Kevin Rodgers wrote: Duane Douglas wrote: ...Show All

  • Windows Live Developer Forums Getting Long/Lat in Birds Eye view mode

    Hi, I am currently trying to get the Longitude and Latitude co-ordinates whilst in the Birds Eye view mode but it would seem this is not possible even though you are allowed to set pushpins whilst in this mode... I would have thought if you could set pushpins, you should also be able to retrieve details... Has anyone managed to get around this issue Cheers, Woody. Grr, It looks like V5 has removed all ability to get to the lat/long. And we have no sign of the method to retrieve the information from the encypted value. Looks like I won't be able to support birdseye mode for clustering without some serious hacks Has anybody be able to retrieve anything to determine the bounds of th ...Show All

  • Visual C# Problem in adding controls dynamically to ToolBox

    Hi Everybody, I need a little help in migrating my VS2003 ConsoleApplication to VS2005. My console application adds a few server controls (built by me) to the toolbox in runtime. However on migrating the code to VS2005 the code is not adding the controls to the new tab, though a new tab is created. The following lines of code add the controls to the tab. ToolBoxTab tab tab.Activate(); tab.ToolBoxItems.Item(1).Select(); tab.ToolBoxItems.Add( "MyControls" , System. AppDomain .CurrentDomain.BaseDirectory.ToString()+MyControls.dll , vsToolBoxItemFormat .vsToolBoxItemFormatDotNETComponent); I have placed the ServerControls dll in the ...Show All

  • Visual Studio 2008 (Pre-release) Help me design my .Net 3.0 application?

    Hi All. I've been studying C#/.Net 3.0 programming ever moment that I'm not shacked to my real job. I can say that for a guy of average intelligence who has been working in his sleep, Avalon allows me to do some amazing things and pretty quickly too. Where I'm having trouble is my high level plan. I thought If I laid it out here someone might be kind enough to give my a push in the right direction. The program description: It is a e-Book of interactive puzzles. Each puzzle has a graphical representation of some physical reality and controls that allow you to manipulate that reality. ( Start engine # 1, run engine #1 at 300 RPM, etc.) The Quester is then given a brief written introduction followed by a serious of t ...Show All

  • .NET Development Referencing HTML in an embedded browser

    The Help pages for my app is built as html. I've added a folder in my project called 'Help' and put all the pages there. The main page is 'default.htm'. I've tried to navigate to that page : private void howDoIToolStripMenuItem_Click( object sender, EventArgs e) { // webBrowser1.Navigate("Help/default.htm"); <--- fails webBrowser1.Navigate( "file:///Help/default.htm" ); <---- fails } How can i pull up this page in the published application js Thanks for michael, that worked perfectly. I see the htm but the images are missing even though inside the Help folder, I have images ..etc. If i run 'default.htm' in that folder via IE, the pages are fine. But thru the app, ...Show All

  • .NET Development "Work around" the one base-class limit

    Hi all, I would like to add some extra functionality to several existing classes. The implementation of this extra functionality is exactly the same for all the classes. Unlike some other OO languages (like c++), the .NET framework only allows one baseclass to be used, so I cannot put this implementation in a single class, and derrive my new class from the both the original class AND the class with my extra implementation. One way to work around this, is to add one property to each of the derrived classes which contains an instance of a class with my new implmentation. But, I would rather extend my classes directly with the new properties and methods. Is there any way I can accomplish this without have to resolve to copy-paste ...Show All

  • Windows Forms Login Form connected to access database

    Hi, I am trying to do a login thing in VB2005 Express, but I have an access database with the usernames and passwords and other stuff like names in it, and a login form that asks for a username and a password. I would like there to be a posibility of an unlimited number of users for my application and there to be a login, and the possibility of different areas of the application to be avaliable to different users using a "trust" column. I would also like the user's name to be displayed on the main page. I have managed to get the USERNAME on the main page, but not the person's name, as I have not managed to interface to the database yet. I have added the database to the project, but have not managed to query the database; ...Show All

  • .NET Development How to unregister a COM wrapped .NET assembly?

    Hi All, I created a COM exposed .NET 2.0 dll and registered with my Windows 2000 operating system using 'regasm' and 'gacutil' Then I tried to call this component from my classic ASP page. It worked fine. But, I need to change the functionality of my assembly. I unregistered it again using  'regasm' and 'gacutil'  utilities and copied my new .NET DLL and registered again.  But for some reason, i still have a pointer to my old assembly and new calls to the DLL from ASP page are not working. Any Ideas   I appreciate any help. Thanks     Try using regsvcs to register the file: regsvcs nameofdll.dll to unregister use regsvcs /u nameofdll.dll You can ...Show All

  • Visual Studio 2008 (Pre-release) Dual Factor Service Authentication

    Hi, What I would like to do is to establish "dual factor" authentication for a service. Basically, I want to ensure that the machine certificate and an appropriate username/password is supplied to the service in order to construct the appropriate claims. I've been toying around with various configuration file entries, and I can't seem to find the appropriate set of bindings to make this work. In these cases, the clients are presenting these items to the STS which is issuing the appropriate claims which are verified at the receiving service. There are two scenarios that need to be handled: 1) Utilize current Windows Login information along with the machine certificate 2) Utilize custom username/password along with the ...Show All

  • Smart Device Development Windows CE.Net Version 4.20

    Ok, I have an application developed on VS 2005, and it runs fine on Windows Mobile 5.0. Now, I've tried to install and run on CE.Net Ver 4.20 and it doesn't run at all. I've had a look around on this site and found some info, and I installed the .NET framework service pack 1 patch, and then I copied over the NETCFv2.wce4.ARMV4.cab file. Then it goes wrong! I try to install, and it doesn't want to know it - I get a message '....failed to install because the installation file is not intended for this device' So, is there any way around this, or is that it, no go Right, I have put the 'Patch' on to the development pc, unchecked the 'Deploy the latest version.......' in the project properties, built a new cab and copied to the dev ...Show All

  • Visual C# Create instance failed when the type depends on external dlls

    During runtime i need to load some dll. Assembly.LoadFile works ok, but when i invoke CreateInstance on some type from this dll it throws me exception because my type depends on dll's which are in the same directory. My question is : how can i create instance when it depends on external dlls which the systems can not locate. Do i need to put all the externals dll into GAC Or is there another workaround Thanks Slava. ...Show All

©2008 Software Development Network