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

Software Development Network >> Jeffn's Q&A profile

Jeffn

Member List

Jason D. Camp
vicarious
ILV
-Cyclone-
Visva
Johan_SQLDBA
Jon Choy
Instinct
Ernesto_RD
Somu Thomas
BeaverMan
DKUS007
Wesley Wong
The WB
Ofir Epstein
CraigInCalifornia
Ralph13
Alex Farber
Fuzon
Raulsassaa
Only Title

Jeffn's Q&A profile

  • Windows Forms Issues displaying information from a string in a multiline textbox

    I am reading information into a string from an XML file. I then want to display this information in a readonly textbox control. The problem I am having is, when I display the string, any newline characters or tabs show up as weird symbols, instead of actually displaying on a newline. For example, if the string looks like this before I put it in the textbox: First line here Second line here Third line here It will appear as something similar to: ( [] is the closest representation of the character I can give!) First line here[]Second Line Here[]Third Line Here Is there any way to make the textbox display it properly ...Show All

  • Visual Basic How to display correct subcategories after selecting a category from a combo

    I am developing an application that must have a category combo list and a subcategory combo list. My category combo list will consist of the following: Computers Printers Software If I select Computers as my category then I want my subcategory to display the following: Desktop PC Notebook Server How do I develop this using Visual Basic 2005 Professional together with SQL to achieve this Regards Dipendra populate category table : ======================== Dim dsData As New DataSet Dim adapter As New SqlDataAdapter("select category_name from category", New SqlConnection(strDBConnection)) adapter.SelectCommand.Connection.Open() ada ...Show All

  • Windows Forms Previous installed versions

    Hi, I got the ClickOnce deployment working. And the installed software on various client machines will stay automatically updated. My question is: every time I release a software upgrade, a complete new version of the application is installed on the client machine (that is o.k.). But is there a way to remove the previous installed version The Software Add/Remove gives the option to rollback to the previous installed version. Is there a setting to remove that option as well (Just for the sake of recycling harddisk space.) ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Power of XBOX360 - raw triangle power

    Hi, I was wondering if it was possible to compare the graphics power of XBOX360 to any of current gfx cards. Say, if it`s capable of rendering same amount of triangles as e.g. GF6800 does. The old XBOX was usually compared to GF3 in terms of graphics performance. The reason I ask is, that I would like to know the general boundaries of the raw gfx power, since I`m planning on converting some of my current games to XNA (and later to XBOX360) as soon as it becomes available. Currently I`m pushing the GF6800 card to its limits, which means I`m rendering a range of 0.5M-1.0M triangles (all unique, non-instanced) per frame and it seems that GF6800 starts to slow down when it crosses 1M barrier. No pixel shaders there, just Vertex Shader ...Show All

  • Visual J# Trouble with this JavaScript code

    Hello, I'm having trouble with this code: <html><head> <script language="JavaScript"> function ChangeColor(object){ object.bgColor = "#00cc66"; } </script> </head><body> <table><tr> <td onMouseOver=ChangeColor(this);">Button </td></tr></table> </body></html> Ofcourse this is not only a part of the code.. The problem is that the Web browser says that this function is not defined. And it says "Object expected". I know this forum is for VJ#, and not for HTML and JavaScript, but please help me! I am in a hurry. You must define a span object first. <html> <head> <scrip ...Show All

  • .NET Development Value was either too large or too small for a Decimal

    I use the following code in an .net 2.0 class Can somebody explain me why the line CALC= with the "hardcoded" number work and why the second one fail with Value was either too large or too small for a Decimal I also got the same problem if I define calcTemp and calcTemp1 as decimal tks Thierry Public Shared Sub test() Dim calc As Decimal Dim calcTemp As Double Dim calcTemp1 As Double Try 'This line work calc = -0.13191864277502802 ^ 4.0054794520547947 calcTemp = -0.13191864277502802 calcTemp1 = 4.0054794520547947 'This line give the exception "Value was either too large or too small for a Decimal." calc = calcTemp ^ calcTemp1 Catch ex As E ...Show All

  • Windows Forms Start application in system tray

    I am writing an application which I want to run in the system tray. Everything is set so that when it open it puts an icon in the system tray, and if I minimize it, it will also go to the system tray. The problem I am having is having it so that when it opens the form shows, however I want it to be hidden until the user selects it from the system tray. So basically, how do I start the applicatin in hidden mode. Hope this is clear. Thanks, Russ Ok, you may want to experiment with around with other messages I got this one to fire on the initial load. private void Form1_LocationChanged( object sender, EventArgs e ) { if ( this .WindowState == FormWindowState.Minimized) this .Hide(); } ...Show All

  • SQL Server A Word about Meta-data, pass through columns and Derived columns

    Here's another one of my bitchfest about stuff which annoy the *** out of me in SSIS (and no such problems in DTS): Do you ever wonder how easy it was to set up text file to db transform in DTS - I had no problems at all. In SSIS - 1 spent half a day trying to figure out how to get proper column data types for text file - OF Course MS was brilliant enough to add "Suggest Types" feature to text file connection manager - BUT guess what - it sample ONLY 1000 rows - so I tried to change that number to 50000 and clicked ok - BUT ms changed it to 1000 without me noticing it - SO NO WONDER later on some of datatypes did not match. And boy what a fun it is to change the source columns after you have created a few transforms. This s**hit ...Show All

  • Visual C# com interop

    Hi, I created an automation in .NET. When I leave all the code in one namespace everything goes well. Recently I decided to refactor the project and put my interfaces in a general library (just a class library). I reference this library in the other libraries that use the interfaces. The methods are still exposed etc, but when I try to instantiate (in excell (macro), or in other applications that allow the automation to be used), it throws an exception, saying that the com object can't instantiate. The assemblies are strongnamed, classes used have a default constructor w/o parameters. Steven Gilissen Just found the solution to my problem. Rather stupid how I had to find it but hey, I learned my lesson ...Show All

  • Visual C# Execute another applications

    I have a question, I don't know how execute another program at run time in C# windows applications. Example: my application is running, and I want execute calc.exe, exists some command to do it, like shell32 (VB6). TKS. Carlos Pisani. indeed. you need to use the Process class which lives in the System.Diagnostics namespace: System.Diagnostics.Process.Start(" path\filename.exe "); additionally to have more customization on how the process should be run etc... take a look at the ProcessStartInfo class: http://msdn2.microsoft.com/en-us/library/system.diagnostics.processstartinfo.aspx ...Show All

  • SQL Server Remote-server execution of a global temp stored procedure

    I have the following execution of a global temporary stored procedure on a remote SQL 2000 server: insert into targetTable exec remoteServer.master.dbo.sp_MSforeachdb ' ', @precommand = 'exec ##up_fetchQuery' This is an ugly duck query but it seems to work fine. when I try to directly execute the remote stored procedure such as with insert into query_log exec remoteServer.master.dbo.##up_fetchQuery I get execution error Server: Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure '##up_xportQueryLog'. Database name 'master' ignored, referencing object in tempdb. When I try insert into query_log exec remoteServer.tempdb.dbo.##up_fetchQuery I get Server: Msg 2812, Level 16, St ...Show All

  • Visual C# Value conversions between datatypes

    I'm migrating a program from C++ unmanaged to C# managed. This software reads from binary encoded files a whole bunch of information. The files are set up to store values in large buffers in the file in a very generic way so any particular DWORD sized segment inside one of these buffers can contain a value of a variety of different simple datatypes. For example, an entry could contain a byte a char a char[4] a uint16 a float etc... Now in the C++ software this was accomplished using a typedef struct with a union in it. The union had a member for all the various datatypes that the entry (DWORD size) would contain. Something like so: typedef struct Generic { union   { DWORD dwdata;     int   intdata; &n ...Show All

  • Visual C# Format of configuration files

    What is the format of APP.config configuration files. What are the default sections avilable Would greatly appriciate is anybody can give some tips for this what you ask about is called Configuration File Schema you can find information you want here Configuration File Schema for the .NET Framework ...Show All

  • Visual Studio Team System Entering Work Items Thru Project Portal Page

    Our developers currently enter work items while inside Visual Studio. We would like to give certain users the URL to our project portal page so they could enter and review the status of defects and tasks. However, there doesn't seem to be a way they can enter these work items from the portal. Is this something that has to be done through Visual Studio If not, how can you enter and track defects and tasks through the portal page Thanks. Roman Benko There isn't a web client for adding or editing work item types in TFS V1. This is something however, that we are looking into for future versions. Meanwhile, there is a 3rd party tool you can look at: http://www.devbiz.com/teamplain/webaccess/ Good luck! ...Show All

  • Windows Forms Form size - odd behaviour

    I have a number of forms (I'm using VB by the way) that have identical layouts, a certain size with a centered Rich Text Box and a Back button - very simple. However, one of the forms, always displays larger than the others despite having the same Size properties. In the designer, it looks fine. There is no code whatsoever that could be changing the size - the only line of code added is the Me.close() in the Button's click event. There are no other hidden controls anywhere that are causing it to appear larger. It is not set to be maximised, in fact, apart from the specific text contained and the form name, it is identical to all the others. Yet somehow, it appears about 25% wider and about 33% taller than it should! The content ...Show All

©2008 Software Development Network