Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
F

Fawxes

@Fawxes
About
Posts
12
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How can I correct these 5 lines of code in vb.net
    F Fawxes

    The array you are using hasn't been initialised, try Dim myArray(15) as Integer I find arrays cumbersome in .Net compaired to VB6 and so I tend to use ArrayLists or other collection methods instead.

    An optimist's glass is half full. A pessimist's glass is half empty. An engineer goes and gets the right size glass.

    Visual Basic csharp help question

  • Using utf-8 for superscript 4 and showing in combobox
    F Fawxes

    The problem is that the text doesn't show in the combobox. I presume (and I haven't tried it yet) that if I changed the text to "<sup>4</sup>" then this is what would show in the combobox and not the superscript character. The combobox isn't in a web browser its on a windows form. What I've doen is set the default font to lucida sans unicode and everything is fine, I'm almost sure it is a font issue. If i'm getting the wrong end of the stick poke me with the right end :confused: :confused::confused::confused: An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.

    Visual Basic xml question

  • Display utf-8 characters from xml files
    F Fawxes

    I have an application that fills a combobox with the contents of an xml file. The xml file represents superscript 4 with ⁴ which shows as: ⁴ I can change the font of the combobox so that the superscript 4 is shown but it doesn't work on all fonts and to be honest the ones where it does work look hideous. I'm just looking for a way of displaying the superscript 4, does anyone have any ideas? :confused::confused::confused: An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.

    IT & Infrastructure xml question

  • looking for a cad file viewer component...
    F Fawxes

    Autodesk used to do a viewer called voloview that was free. Autodesk include VBA in their CAD products so you may be able to use the voloview application as a com object. Worth a look. :):):) An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.

    Visual Basic com algorithms

  • Using utf-8 for superscript 4 and showing in combobox
    F Fawxes

    Put this in seperate message to reduce message size. Public Sub PopulateFromXML(ByVal fileName As String) 'Collect the path for the dll Dim path As String path = System.Environment.GetFolderPath( _ Environment.SpecialFolder.CommonApplicationData) 'Read the xml file into a dataset Dim xmlFile As New System.Data.DataSet xmlFile.ReadXml(path & _ System.IO.Path.DirectorySeparatorChar & _ "Flowguard Limited " & _ System.IO.Path.DirectorySeparatorChar & _ "Engineering Dimensions" & _ System.IO.Path.DirectorySeparatorChar & _ fileName) 'Collect the unit type Dim unitType As String unitType = Convert.ToString(xmlFile.Tables("DimensionUnits").Rows(0).Item("Type")) 'Collect the units table Dim unitsTable As New System.Data.DataTable unitsTable = xmlFile.Tables("Unit") 'Loop through each row of the units table, adding a new unit each time Dim rowEnum As IEnumerator rowEnum = unitsTable.Rows.GetEnumerator While rowEnum.MoveNext 'Cast the enumerated object to a data row Dim currRow As DataRow currRow = CType(rowEnum.Current, System.Data.DataRow) 'Create a new unit object Try Dim newUnit As New Unit(Convert.ToString(currRow("Name")), _ Convert.ToString(currRow("Abbreviation")), _ Convert.ToDouble(currRow("Factor")), _ Convert.ToBoolean(currRow("IsMetric")), _ Convert.ToBoolean(currRow("IsSIUnit")), _ "Length") 'Add the unit to the collection Me.Add(newUnit) Catch formatEx As System.FormatException 'Provide a message string Dim origString As String = "There is a problem in the xml file " Dim msgString As String = "" 'Identify which value has the problem If Not (TypeOf (currRow("Name")) Is String) Then If msgString.Length = 0 Then

    Visual Basic xml question

  • Using utf-8 for superscript 4 and showing in combobox
    F Fawxes

    The problem I'm having is that I'm reading an xml file and have simple nodes with text so I can cast the node value to a string. If I use the <sup> tag I can't cast to a string and I would have to format the text in the combobox. It seems that utf-8 encoded characters is the simplest method if I can just get the font issue right. On the next message is a copy of the code I'm using to populate a collection of objects that is used as the datasource for the combobox. The display member of the combobox can be either the Name or Abbreviation nodes. An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass. -- modified at 8:51 Friday 13th January, 2006

    Visual Basic xml question

  • Using utf-8 for superscript 4 and showing in combobox
    F Fawxes

    I have an application that fills a combobox with the contents of an xml file. The xml file represents superscript 4 with &#8308; which shows as: ⁴ I can change the font of the combobox so that the superscript 4 is shown but it doesn't work on all fonts and to be honest the ones where it does work look hideous. I'm just looking for a way of displaying the superscript 4, does anyone have any ideas? :confused::confused::confused: An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass. -- modified at 8:52 Friday 13th January, 2006

    Visual Basic xml question

  • Event is captured in project but not when referenced
    F Fawxes

    I've found the solution at: http://www.vbip.com/books/1861004915/chapter\_4915\_09.asp An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.

    Visual Basic com help tutorial

  • Event is captured in project but not when referenced
    F Fawxes

    I have a project with a number of classes from which I've created a dll. Within this project is a usercontrol object. When I reference the dll created from the project I can't handle any events that I've created myself. I can handle the leave event for example. I presume that the event is being raised because if I try and handle it using code inside the initial project containing the usercontrol the evtn is raised and handled. The usercontrol is defined as friend and withevents and all the events are public that I want to handle. The events are passed through three objects. For example, usercontrol1 has a child object1 and object1 has a child object2. usercontrol-->object1-->object2 The initial event is raised in object2, handled by object1 which raises its own event, this is handled by usercontrol which then raises its own event and it is this final event, triggered by the first event, that I want to handle. I seem to figure it will be something to do how I idnetify things (public/private/protected/friend) as it works inside and not outside the project. I just don't know where. Any help would be gratefully appreciated. An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass. -- modified at 18:43 Tuesday 20th December, 2005 I've found the solution at: http://www.vbip.com/books/1861004915/chapter\_4915\_09.asp

    Visual Basic com help tutorial

  • How to ditribute xml files with dll
    F Fawxes

    I'm writing a class project in visual studio 2003. Part of the data used by the classes is stored in xml files that the user will be able to edit. The classes are used by other applications and an end user could have more than one of these applications on their machine. How do I distribute the classes so that they know where to find the xml data files every time and they are only saved once. I had originally used the Application.StartupPath to find the folder where the class dll file is stored but, when I create another application the value returned by Application.StartupPath doesn't return the folder where the xml data files are stored it returns (quite rightly) the folder of the original application. Any idea on how I go about distributing and accessing these xml files? Any help would be gratefully received as this is a project I intend to open up on a 'do-what-you-want' licence without copyright and for all to use. Thanks in advance An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.

    Visual Basic question csharp visual-studio xml help

  • get string array length
    F Fawxes

    Try UBound(mydata,1) An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.

    Visual Basic database algorithms data-structures help

  • Data Table or Business Object
    F Fawxes

    I'm a novice at code writing (newbie is something my kids would call it) and need some advice. I need to write some code that enables me to access and manipulate data from a database object. This code has to validate the data away from the database. I would personally like to use an object that has methods that read and write to the database and properties that manage validation. This would make life easier when using the properties or field values with other objects. The problem with business objects is the time it takes to create the object. If I want to run a datagrid based on a collection of business objects it takes too long to create the object collection (for example sales orders). Linking the datagrid to a dataview and using a datatable to hold the values is far quicker. The business objects method appears to provide a better method of creating sales orders without access to the database using a localised copy of any necessary data (part codes, etc). One other point, the database is provided by a third party and I'm writing an additional interface (this is allowed and part of the software contract) that provides additional facilities. So that the interface isn't restricted by hard coding I have created configuration files that identify table field names, label descriptions, table column headers, table widths, column orders and properties used to create a tab control interface such as top,left,width (for the placement of text boxes) and group properties (used to create different tab pages). I've done this because I'm just a little concerned that if I leave the company they won't be able to change any of the intferface. I know I can't avoid hard coding validation but the data screens can be configured without hard coding. I currently use a tab deliminated file (so we can use commas in field names or sql commands) but will propbably change to xml as excel is rubbish for tab deliminated (places double quatation marks without asking) and I wan't a columned interface for users to read/write to the configuration files. What is everyone's thoughts on this. Time to retrieve and refresh data is important. The ability to travel half way around the world and create a 'dummy' sales order to enter into the database is also equally as important. Any advice would be gratefully appreciated. Fawxes An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.

    Visual Basic database business sales xml help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups