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

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

Malmer

Member List

Ken_Bussell
jaczu
Stigern
tomacco
ahmedilyas
EricBrown
jackwc
Bryant Likes
Mark A. Richman
pnp
Linda Cornerstone
qrli
Wiegje
SisMng
vijil
Channelzero
XNA Rockstar
Alex-MyRpg
JaK82
SOAC
Only Title

Malmer's Q&A profile

  • Visual Studio Team System Team System PIA Build Error

    Our BUILD machine has Team System Server on it. When I attempt to build my application on it that uses an Office 2003 PIA, I get errors. It builds fine on my development machine. I use DAO360.dll which VB then accesses the PIA DAO.DLL. The BUILD machine does not have Office 2003 installed on it, does it need Office 2003 to make a succesful build I tried using REGASM to register the PIA on the BUILD machine but it didn't help. Some of the error messages: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(0,0): warning MSB3283: Cannot find wrapper assembly for type library "DAO". ...\modAccessVersion.vb(3,0): error BC30002: Type 'dao.Database' is not defined. ...\modAccessVersion.vb(4,0): error ...Show All

  • Visual Studio 2008 (Pre-release) Loading objects to ResourceDictionary from external XAML file

    Lets say I have a ControlTemplate, or ResourceDictionary in somr XAML file. Is there a way to load this object into *another* ResourceDictionary. Important thing is that after loading this *another* dict must contain object of the same type as the root element of the external XAML file. any suggestions Thanks Anton The markup structure is as you show, but what is more significant is the way resource lookup is done with merged dictionaries. The framework first looks for a resource in the main dictionary, then in merged ones, as if they create an additional, higher scope. (This is explained in detail in a page linked from the above one.) So, I think this feature is appropriate for your purpose. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Distributing games with XNA runtime

    So what's the best way to distribute the XNA framework with a game Just point people at the framework download on the Microsoft site Include the XNA framework installer with the game I was clicking around and found in the project properties-> "Publish" -> "Application Files..." options, I can set the publish status of Microsoft.Xna.Framework.dll and Microsoft.Xna.Framework.Game.dll to "Include", which copies the dlls with the game. Is this enough to get the game running on another PC, assuming Framework 2.0 is present and DirectX is up to date Thanks! Yeah, it's a shame the install process doesn't automatically include checks for the components you need. As Bapa said, ...Show All

  • Windows Forms comboBox Help

    This might be a dummie question, but as I'm new to C#.. I have a comboBox 1 and I'd like to make it type. Example: You choose "Test" from the comboBox and it changes the text to "whatever" in a maskedTextBox. Any help appreciated! Not quite sure what you want. Have you tried responding to the ComboBox's SelectedIndexChanged event: private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { switch (comboBox1.Text) { case "one": maskedTextBox1.Text = "One"; break; case "two": maskedTextBox1.Text = "Two"; break; case "three": maskedTextBox1.Text = "Three"; break; } ...Show All

  • Windows Forms Inherited Control - How to Set Prop in Win Form which Will USe Control

    In VS 2005, C#, I've made a test control which inherits from TextBox and will set a form's property (boolDirty) to true when the user types into the text box. The control is declared as follows: public class TextMarkAsDirty: System.Windows.Forms.TextBox In one of the control's events, I have tried to put this code in. this.boolDirty = true; Obviously this will not compile because the control knows nothing about the form to which it will later be added and that form's boolDirty property. How can I make an inherited control which will change a property in a form to which it will later be added Many thanks, Mike Thomas hi mike, in my opinion, controls should be independent of the form it is put into. a be ...Show All

  • Windows Forms Loading Controls based on contents of a database

    Hey everyone, I have question about loading controls based on the contents of a database. So I'm building a windows application that uses a fairly large database, about 100,000 records. I have about three tables in my database. I have to create three forms for each table, o, by the way, the tables are related to each other. I have to create three forms for each table, the first form is the main form and what ever the user chooses on the first form, displays the query results on the second form, and what ever the user chooses on the second form, displays the query results on the thrid form. In short, whatever the user selects on the previous form, a id is pass to a query and results of this query should display on the next form. S ...Show All

  • Visual Studio 2008 (Pre-release) Can't pass a null value thru a bound control

    Hi, Does anyone now how to bind null values I have a XAML with checkbox's, textBox's, etc. The textbox's text properties are bound to the datacolumn's of a dataTable like so: Text = " {Binding Path=Tensao} " I would like that when the TextBox text is an empty string the value passed back to the source is null and not "". Also I want to to be able to set a boolean value to null using a custom bounded control. The control simply represents a boolean value in the form of 2 CheckBox's that repesent true, false or null if none is checked. I was able to make this control bind sucessfully for true and false but not for null. here is the full user control's code http://www. ...Show All

  • Visual Basic Fraction to decimal

    Hi! I have a list with prices of US Treasury bonds. They are quoted in a particular way that I would like to convert to decimal form. They are quoted like this eg: 99-02. Now this means that the price is 99 and some decimal. The two first numbers are the number of 32:s. Thus in this case the price is 99 and 2/32. However if there are three decimals eg 99-021 the last digit refers to the number of 124:s. Thus the price is 99 and 2/32 and 1/256. Sometimes There are only two decimals followed by a plus or minus sign eg 99-30+ or 99-10-. The plus/minus indicates that you should add/subtract 1/64. Keep in mind that the non decimal numbers may be one, two or three digits. Thus, it could be eg. 6-02 87-22- or 105-21+. Is there any wa ...Show All

  • SQL Server sqljdbc DriverManager.getConnection Hangs after mirror failover.

    When performing a failover the DriverManager.getConnection method never returns from it's call. I used a modified version of the test program included in the sqljdbc help file (below). If the principle server is server2 and a failover is performed, the program works just fine. If the priciple server is server1 and a failover is performed, the hang occurs. The sql servers are not on a domain, are in the same workgroup, have certificates setup between them.  Sqljdbc version used is 1.1.1501.101.  I rolled back to version 1.1.1320.0 and the DriverManager.getConnection exceptioned.  Not sure if this is a setup issue or a common problem. Anyone have any suggestions or seeing similar issues Thanks - tc Version 1.1.1501.101 - Syst ...Show All

  • Visual Basic Calling Crystal Reports With Stored procedure

    How do I connect in crystal reports. I'm using stored procedure in crystal reports. When I try to call my report in vb.net 2005 it was sucessfully loaded in crystal report viewer. However if I change the database name of my report connection (In case I change my database name) I was encounter error, the parameters of my stored procedure in crystal report is invalid...Can you give me some example... Thanks in advance.... I'm was having the same problem with VS2005 Team Suite + bundled Crystal Reports. The problem is easy to reproduce and I found by calling VerifyDatabase() after SetConnection() the error disappeared: using System.Data.SqlClient; using System.Configuration; using CrystalDecis ...Show All

  • Visual Studio Express Editions Move to cell in previous row?

    I need to write a code to move to a cell in the previous row. I have looked at (offset) , (currentcell) & (currentcelladdress) but i can't quite get the hang of it. This is what i have so far in a button click event:      Me.MaintableDataGridView.CurrentCell.Selected = False      Me.MaintableDataGridView.Rows(0).Cells(0).Selected = True This works great but i just want to move 1 cell up, not by coordinates. Is there some way to utilize code to mimic the arrow keys (sendkeys, etc...) Any help would be great.  Thanks Jeff Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ...Show All

  • Smart Device Development TypeLoadException in a C#-Library

    Hi all, I have written a class library, that is a wrapper to the PocketPC-Notification API (SHNotificationAdd, etc.). I have compiled the library succressful, created a test-application, added a reference to the library. Starting the new project (which is a Windows Forms application) throws a System.TypeLoadException with the following message: // --------------------------------------------------------------------------------------------------------- System.TypeLoadException was unhandled Message="Could not load type 'NotifyEx.CNotificationEx' from assembly 'NotifyEx, Version=1.0.2554.19848, Culture=neutral, PublicKeyToken=null'." StackTrace: at System.Windows.Forms.Form.OnLoad() at System.Windows.Forms.Form._Se ...Show All

  • Visual Studio 2008 (Pre-release) I am so fed up with WPF and .Net 3.0 !!!!

    I have dutifully followed the development cycle of Vista WPF and .Net 3.0 through over a years CTP's and although it all sounds great, the delivery from MS is very poor. It's strange how a xbap application will work, then suddenly not work and then I have start a new application with the code from the old one and it works. The documentation provided by the SDK is so technical and incomplete it's virtually impossible to decipher and errors fly thick and fast through the Extensions to VS2005. I have a entire book shelf of now obsolete .NET 1.1 Framework ... volumes and volumes of it which was outdated before I even got it and was over $600. Now .Net 2.0, and .Net 3.0 Come on MS, where the hell are you going and how the hell do you thi ...Show All

  • Visual Studio Team System Error TF42028

    We have recently deployed TFS and are having an issue with users seeing the existing build nodes in Team Explorer. It also causes it to throw the 42028 and 42025 error when the user attempts to run a build. (Using Domain Users and Groups to set permissions. Win 2003 Domain.) I have one user that has only been added to the 'Contributor" group of the project. This user can see the Build nodes and run builds without any issues. To make it work for the user in question and any subsequent users I create, I have to add them to the Team Foundation Server Administrator group. (adding them to the Project Admin had no affect) Once added to this group, all the nodes show up and builds run fine. Any suggestions would be appreciated. ...Show All

  • Visual C# How do I code to drag a graphic from 1 form to another?

    I'm very new to C# programming. How do I get started coding so I can click & drag with a mouse a graphic from one form to another For example, say I have a smiley face and I want the user to be able to drag it from form1 to form2 with a mouse. Thanks, Steven, C# beginner. What you are looking to implement is "drag and drop". Google for that phrase and you'll probably find lots of useful stuff. You can't drag and drop between forms (at least not easily) because the Form class doesn't support the DragDrop, DragEnter, DragLeave and DragOver events. But Control class does, so almost any control on a Form can be dragged to/from since any control will inherit from Control. That probably mak ...Show All

©2008 Software Development Network