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

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

JimmyFo

Member List

DamonPeng
Fluxtah
xinz
gaff
hallscreations
Tkanos
MiteshSura
fighter92
Lawrence 007
Fusion54
Venkat Kiran
sierrakinglet
Santiago Aceñolaza
Tony_NTFY
FassaBortolo
kalkumar
Indigo Paul
SnowJim
GazCoder
Sutha Thiru
Only Title

JimmyFo's Q&A profile

  • Windows Forms binding 2 xml files to one DataGridView?

    Greetings, [C#] I have a DataGridView that I need to load key values from two XML (resx) files both with the same layout & keys... the DataGridView has 4 columns (Name, Value, Comment & DataX).  The Name, Value & Comments are taken from one xml file & the DataX is taken from the 'Value' key in the other xml file. I can't seem to get them to load, I get "Column 'Name' is constrained to be unique.  Value 'FirstName' is already present." Do I need to do an inner foreach loop private void BindResXtoDataGridView()     {         XmlDocument doc = GetXmlDocument(); // loads xmldata.xml         XmlDocument docX = GetXmlDocu ...Show All

  • Visual Studio TableAdapters etc

    Can you use the TableAdapters to pass data to an embedded Crystal Report. I have used the TableAdapters etc to add and view data in the application, but when I create a report and attach it to the project data, the report just shows the headers when viewed through the viewer, have tried working through the tutorial, but am getting a little lost. Any help would be gratefully received. John check out this links http://www.crystalkeen.com/articles/crystalreports/parametersandvb.htm http://www.crystalreportsbook.com/Chapter04_XI.asp ...Show All

  • Visual C# Reading the end of an XML file

    I have a program that cycles through an XML file and outputs to another file every 1000 records. Thyis works fine until the end of the XML file is reached, when it fails saying my 'root' tag is not closed - although it does for the previous files. It seems to be having issues with recognising the end of the XML file, so can someone please confirm how this is done Currently I have a while loop to do this, with a for loop inside to cycle through the records, ie: while (XmlReader.Read()) { ... for (int i = 1; i <= 100; i++) { while (reads in a node here) { does the work } } Close the XmlReader and XmlWriter } This works fine for the beginning, until the end of the file is reached; is my way of reading the XML file correct (I have also trie ...Show All

  • Visual Studio 2008 (Pre-release) Dependency Property

    Howdy... I am a little stumped... a little tired... a little stupid (probably) I have created an object that has a dependencyproperty in it... all is well.. I create an instance of the object and do the business... no problems. When I go to create another instance I get this exception: System.ArgumentException was unhandled Message="'HeaderContent_1' property was already registered by 'Scene1'." Source="WindowsBase" StackTrace: at System.Windows.DependencyProperty.RegisterCommon(String name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback) at System.Windows.DependencyProperty.Register(String name, Type propertyType, Type ownerType, ...Show All

  • Visual Studio can only create one shape

    I started learning dsl tools recently. After going through the couple of examples i tried writing a designer myself. The new designer i created has two classes(will be more later) and each class pointing to different shape. it compiles, transforms and creates debug project . But in the debug VS, even though the toolbox shows all the shapes classes i can only create one class instance on to the designer. And the rest of them don't draw anything even i drag and drop them. The one that i can drop is the first one i created.. I checked parent element path, and element merge directives that was suggested in the other posts and they all seems to correct. did anyone had this problem before any suggestions on how i can make this work thanks ...Show All

  • Visual C++ Static library with CLR

    I have a static library (with no source to recompile) which i wish to include into a new managed VS 2005 C++ project. The static library is native C++ code. Is there a a way to do this In my thread "When It Just Works doesn't", I was told that I could not create a C++/CLI application and link with a static native library written in VS 6.0 because the application and the library are using different CRT's. I was trying to create a C++/CLR mixed mode library that acted as a managed wrapper for the static native library but I couldn't link with the static native library. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Game and GameComponent Feedback

    We've been combing the forums and the Connect database for bugs, feedback and suggestions around the application model. We still have a small amount of time to consider any other feedback you may have. So this is the thread that you post your latest likes or dislikes with Game, GameComponent, services, etc. Please scan the other threads before posting here, I'd like to just gather things that haven't already been discussed or reported elsewhere. Thanks! Definitively is correct. Something that I believe that is also necessary is that the components include designers and wizards of configuration, much more intuitive that PropertyBox. ...Show All

  • Visual Basic Tips on Window Attributes (size, location, etc.)

    So I have a program for my job that allows the user to open any number of individual windows that each display a customizable amount of data, type of data, etc. But that part's unimportant, the important thing is, unlimited windows are openable. The window attributes themselves are stored in a list of open windows. What I'd like to implement is the ability to choose some preset layouts. I know how I can programmatically create new windows, but my issue is arranging them. What do y'all suggest as the best way to do this, handling different screen resolutions and stuff like that A percentage of the user's screen width perhaps And do y'all have any methods to suggest using besides the normal setCoord, setWidth and setHeight ...Show All

  • Visual Basic Program to execute on one machine only

    Hello, My problem is that I want to deploy my program onto a 'thumb drive' and sell it that way and I need the program to only run off that drive. It is a small program that can easily be copied and run by anyone so I thought that if I could somehow 'lock' it to the small USB drive then that would solve my problem. Because some games require a CD to be in a drive before they will run I figured that that would be something that I could do, my problem is finding any help in how that might be accomplished. Can anyone point me in the right direction Thank you very much Bill Langston Yes, I agree -ca, I just don't have the knowledge to figure it out. I feel that if we can find a solution and have it archived here for oth ...Show All

  • Windows Forms Need a Working Sample of DataGridView Link 2 Tables

    hello, I need working sample of a datagridview showing a relation between 2 tables as a link. I have 2 tables in my dataset. Table RNT_PETICIONES which has a COD_PERSONAL external key, and the RNT_PERSONAL table also has COD_PERSONAL as primary key. I have the DataSet in my project and the relation are corretly set. But when I bind PETITIONS to the datagrid I do not see the sub-link of the CLIENT table. I also tried doing this manually with no succes. Please post sample code here as I'm restricted to only microsoft.com -Thank You P.S. What I'm really interested in doing is getting varous columuns from different tables and showing them as 1 table in the datagrid, being able to edit the datagrid and saving the data to the cor ...Show All

  • Visual Basic datetime manipulation

    Hi there! I’m a newcomer, so I’m not sure this is the correct thread...sorry if it’s not... I have the following problem: I need to show in a windows Form the conversion from a normal dd/mm/yyyy shown in a date time picker to two textboxes (and viceversa). The first containing the day of the year (from 1 to 366) and the second the year itself (this oe is easy!). For example: txtdayofyear.text = "360", txtyear.text="2006" ->> Datetimecontrol.value="26/12/2006" My problem grows as i need to convert from one format to another in both senses, depending of what button the user presses. I have found a Date "dayofyear" funvtion, which gives me the partial solution, but I still don’t ...Show All

  • Visual Studio 2008 (Pre-release) WPF Memory Usage

    Just wondering.... Is a compiled MSbuild WPF app supposed to be 20mb resident. - I find this tobe ridiculously huge considering all I have on the screen is a window and a button - without any styling. I understand that my exe is only 50Kb -probably cause it's only a script. I mean I added a couple of extra controls and something with a Tab interface with two pages loaded rises upto 50Mb resident. If I could pose to any-one that could inform me of a way of removing the clutter - could I perhaps limit the necessary object instanced to save on runtime memory. ,eg. use onover images as butons instead of the SVG buttons. -I understand that this is not what WPF is supposed to be all about, but If I am to make an app that runs on existing hardwar ...Show All

  • .NET Development How to retrieve a ConfigurationSectionGroup?

    Hello, Is it possible to get a configuration section group from a configuration file without using any of the OpenXXX methods of the ConfigurationManager class I'm working in a class library project that needs to provide some configuration mechanism, and it should be transparent for the user (developer). For grouping purposes, I would like to have all sections in a common section group. Then, my configuration section group class would have a static instance with the current configuration that is initalized on first access (like a lazy singleton, but with a public constructor) The initialization method would then call ConfigurationManager.GetSection method to get the current configuration group. Although this GetSection doesn't ...Show All

  • SQL Server c# against ms sql express - multi user access

    I have developed two programs that operates against the same database. One of the program is just a display program that displayes the data put into the other administation program where you put in the data to be displayed (an administration program). Every time I access the db from the administration program, the display program stops and throws connection pool errors and other database errors. For me, it looks like it does’t do multi-access to a database. I have tried putting user instance to off in both programs, but this didn’t help. Connection string also points to same file database. Yes, you are correct on that. Two applications, one database. Move it to the MS SQL Server’s datadir ...Show All

  • Visual Studio Tools for Office Suggestion For Future VSTO Release

    it would be great if the .ofs templates file generated by Outlook where XML based. that would allow developers to do really cool stuff like dynamically change a form whilst Outlook was running. Well I am not really sure, but next version of Microsoft(r) Office (Office 2007) which is expected to release late in 2006, has lots of XML integration and i suppose they already considered this too. In the next version all the Office documents are saved in XML format and you can do much more with next Office. Thanks ...Show All

©2008 Software Development Network