James Christian's Q&A profile
Visual C# A newbie question on Interfaces
hi, I'm new to C# and OO in general. I can't seem to undestand the pertinence of interfaces. From my understanding, the interfaces define the signature of the methods while the class implements these methods. How is this better than simply doing away with interfaces and simply implementing the method in the class Apologies for the rather novice question, an example to illustrate the pertinence of interfaces would be greatly appreciated. regards, Pat Arrays are kind of funky for some reason. I know the docs say that it implements the IList interface, but in playing around with it, the only way I can see ...Show All
Visual Studio Express Editions Using VB.NET Compiler as an older version
Is there a way to make the VB 2005 Beta 2 Program compile to an older version e.g. VB6 The MSBuild Compatability Toolkit allows you to replace the "standard" MSBuild files (which tell Visual Studio how to build you application) with versions that can target .NET 1.0 or 1.1. The scenario where this would be useful is if you are using Visual Studio 2005 to develop your application, but you want to build applications which run on .NET 1.0 or 1.1. The instructions at the end of the setup describe in depth how to use it. Note that this will not make an exisiting .exe run on a different framework, it w ...Show All
SQL Server Updating database with file feeds from Internet and then parsing the XML, CSV or Excel data for insert/update/delete in Yukon
Hi, I'm developing an ASP.NET web application with SQL Server 2005 standard edition on the backend. I am looking for a solution to the following problem: Need to have SQL Server 2005 do the following at 3am each morning: 1) Download updated pricelists from URLs stored in the database 2) The pricelists vary in format - some in XML which is ideal, others in CSV which is not bad, a few are in simple excel .xls format which is not so good and some others are formatted with eye-candy for human reading which is terrible. For the moment I am only looking to read in the first three as XML and enter the data into my database. As you can imagine, the ...Show All
Visual Studio Express Editions Send HTML email
Hi all, I am trying to send a email with a data access page made in ms access as the body. The html code of this page code has loads of quotes and java in it so wont copy directly in to the the body string. How i refence the html code in the body string I have imported the html file into my project, its is called JobsOOD.html. Here is my current code: Dim emailClient As New SmtpClient("#######") Dim emailfrom As New MailAddress("####@#####", "####") Dim emailto As New MailAddress("######@######") Dim emailsubject As String = "Jobs OOD" Dim emailbo ...Show All
Visual Studio Team System Check-in policy results in high use of shelving
Check-in policies are a great idea. The result is that we need to find an alternative method for backup up developer's work, since they will no longer be able to check-in periodically throughout a day. Shelving appears to be the best option. However, shelving requires creating a shelveset name, and results in multiple versions of files if done daily or even more frequently. Shelved projects can be deleted and a naming convention developed, but the entire process seems potentially unruly. Any recommendations, work around, or thoughts on how to best manage this process with a team Thanks in advance. Mark ...Show All
SQL Server Datatype problem?
Hello We ahve a problem with datatypes. I the cube whe have 2 mesasures (Item_Sold and Sales). Item_sold is Numeric datatype and Sales is Currency. In the virtual cube whe divide the to in to a average price (Sales/Item_sold). We user Excel show the cube. For integer numbers we get no problem but for item_sold with decimal values (like 1,43) the division get currupt. It seems that it only devide the integer so average measures of: Item_sold=2,5 Sales=500 ...will be 250 (500/2). And if the item_sold is smaller than 1 (for units smaller than 1 kilo) the average value will even more strange. I think that the datatyp is the error. What dat ...Show All
Windows Forms Visual inheritance problems
Hi. I am experiencing a strange problem with visual inheritance in VB.NET. My project has one form, that serves as the base of several other forms. All was working well but suddenly, every time I add a new form to the project, VS.NET 2003 randomly removes some controls of the other forms. If I don't use visual inheritance, I can add new forms  ...Show All
Visual Studio Express Editions BindingSource.Filter Problem Part 2
Sorry for reposting this, but my new question was burried within the thread of my previous post and I wanted people to get a fresh look at my problem. I have a form with a DataGridView with multiple columns. I have another form that pops up to give the user options of filtering the data in the DataGridView form. I have several ComboBoxes bound to tables that contain the data available in a certain column in which the user can select items from the ComboBox to filter the column. Thanks to tabdalla, I was able to get the code to make a single column filter based on the item selected in one of the ComboBoxes. Here is the code tabdalla he ...Show All
Visual Studio 2008 (Pre-release) Image Scaling Animation Problem with DependencyProperty
I wish to create a animation using procedural code (instead of XAML). My aim is to create a image magnification upon mouse-over. However, when I tried to use the following set of codes (as referred from MSDN) , I always get an exception. Code Snippet Image img = new Image(); img.Name = "Image" + imgIndex.ToString(); imgIndex++; this .RegisterName(img.Name, img); DoubleAnimation myDoubleAnimation = new DoubleAnimation(); myDoubleAnimation.Duration = new Duration( TimeSpan .FromMilliseconds(200)); myDoubleAnimation.From = 1; myDoubleAnimation.To = 1.1; Storyboard.Set ...Show All
Visual Studio Express Editions Registration Benefits - IconBuffet
I have been working with VW Dev Express and have accessed some of the benefits from the Registration Benefit Portal. I would like to be able to get the IconBuffet item, however, it does not appear to be one of the benefits of VWD. Does anyone know which Express software includes IconBuffet as a registration benefit --Charles I understand who gets what but the actual Benefits Portal does not have the IconBuffet. Does anyone know where to find the IconBuffet Even though this is advertised as a benefit has anyone ever seen this benefit Thanks ...Show All
Smart Device Development PictureBox troubles
Hi! I am having trouble with the PictureBox in VB. I have a circular image that I want to set in gold background. What I did was to set the image's background color to gold, which worked fine in the development environment. However, after deploying my app to the device, I found that my image's background color was BLACK! Why is this so and how can I change the image's background color I also tried setting the image's background to transparent then changing the form's background to gold, but I got the same results.(it worked in the IDE but not in the device) Finally, I created new square images (the circle placed in gold background) and place ...Show All
Visual Studio Express Editions Me.Visible or Me.Hide ???? Help
I want to make my VB application run in "hidden" mode, with no interface or GUI This is my code so far, but I can still see the Windows form..... Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Visible = False End Sub End Class I even tried the Me.Hide() method, but I can still see the GUI when I run the app. Any help would be greatly appreciated. I found out that if I put "Me.Hide()" in a button function it works. But I want my application to load with no G ...Show All
Windows Forms VB Express Newby Q - buttons
I'm trying to create a program that has a + button on one side and a - button on the other... and a "label" in the middle which will show .5 increments either up or down if I click one button or the other (.5, 1, 1.5 or -.5, -1.0, -1.5 etc). Any leads on how to create this It seems to be really basic question, and you better start with some basic toturials. To do what you want to do: 1. drag 2 buttons and a label to your form. 2. set first button text to "+" and name to btnPlus, second button to "- " and name to btnMinus 3. set label text to "0" (or the value you want to start with) and name to lblValue 4. Go to ...Show All
Windows Forms WANTED : Full Featured Collapsible Panel
This doesn't exist based on an extensive search of the web I did last week. Trust me I tried them all. There are a handful of collapsible controls out there that are close...and some are very cool. But all of them BLOW UP miserably when you try and make them function in the main view of the form with Grids, usercontrols, etc. placed&nb ...Show All
Windows Forms A good choice to build Microsoft Visio 2003 style appliation! (Full Source Code!)
Try and download it with: http://www.ucancode.net UCanCode XD++ MFC Library is a full C++ based source code kits that designed to add interactive diagramming-related functionality to Web and Client applications. Examples of functionality that XD++ can easily add include User Interface building, Visual Programming, Monitoring, Planning and more...,it will saves you many months of time. - ...Show All
