Brian Stringham's Q&A profile
Visual Basic Help needed to select specific arrays and diplay in a Listbox?
Ok well the problem I have is that i have to setup a program in which the user selects a Product from its ID which is displayed in a Combobox. Once selected the user clicks the buy button which brings up a quantity input box where the user can enter a number which is calculated and displayed in a Listbox! The problem im getting is that althought it is displaying the information i want, for each array/product in the combobox which is has not been selected the listbox displays a bunch of zeros. Im fairly sure that the program is simply cycling through all the arrays and ca ...Show All
Visual Studio Express Editions Show Text Based On Current Record
Hi, I have a form showing data, it has the default tableadapter, bindingnavigator etc. I am trying to set some additional non bound context text based on the current record. I have tried various events including currentchange and positionchanged but have not found a combination that always works. Anyone now what events I need to use to cover all cases where the displayed record might change, for example data first loaded, record changed, form closed and then reloaded etc. Think I have cracked it! BindingSource.positionchanged and form.activated seem to cover what I tested so far! ...Show All
Windows Live Developer Forums Please help me with this Problem in my application
hello everybody in this forum. iam currently implementing chat server application that must connect to the outside world from windows xp sp1 or sp2. i tried to add my application ports programmatically to the internet connection firewall in windows xp sp1 but i couldn't cause i see the com file "hnetcfg.dll" in my windows operating system doesn't have "INetFwMgr" class that i must interlop to add the ports to the current running service of my application in the firewall cause my windows is not SP2 i asked some friends and they told me it is impossible to add these ports cause your windows xp is SP1 not SP2 but what ...Show All
Visual Studio Express Editions Old components from betas not removed.
I have run both auto and manual uninstall of Express betas but get "SQL Server2005 has detected incompatible compnents from beta versions of Visual Studio, .net framework or SQL Server 2005. Use Add or Remove programmes to remove these compnents and then run SQL Server 2005 setup again. For detailed instructions on uninstalling SQL Server 2005, See SQL Server 2005 REadme." when I try to install SLServer 2005 Express . No components are listed in the Add/Remove Programmes. C# Express and Web Developer Express has installed OK Any ideas That's what is failing !! The uninstall tool says that I do not have p ...Show All
Windows Forms PropertyGrid Invalid Property Value
Hi All, In my custom form designer, I have a property grid. I am having a problem while selecting multiple (>1) controls to change their common property. For example, if I select 2 labels at the same time, and change the size of them, I will get an error message saying "Invalid Property Value", and the details show "Specified cast is not valid." The property then got changed. But when I select only one control to change its property, it's fine. I can't debug where the error occurs. Really frustrated. Any idea Thanks a lot. Some properties are not "mergable", but the p ...Show All
Visual C# in .Net 2.0 where is System.Web.Mail
Hi. I am working on a method to send emails, but when I try to compile this is what I got: Error 1 The type or namespace name 'Mail' does not exist in the namespace 'System.Web' (are you missing an assembly reference ) C:\Desarrollo\Visual Studio 2005\Projects\WF_BCCR\WF_BCCR\correo.cs 4 18 WF_BCCR What is the problem Thanks, Lorenzo Jimenez Thanks I worked! Regards and Happy Holidays, Lorenzo Jimenez ...Show All
Visual Studio Team System Problem to connect to AD while doing automated tests
Hello All, I have a very strange behavior while running the tests on my development machines and on the production server. I have posted this thread in the CLR part but you may already have encountered this problem while doing tests. Thanks to have a look ! http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=391203&SiteID=1 Jarod Please let us know if you still have the problem. Thank you, Michael Koltachev, VSTS ...Show All
Windows Forms Running a console app as a scheduled task
Hi guys, I'm having a bit of a problem getting a VB .NET console app to run happily as a scheduled task. The app itself generates a bunch of word documents on a file share on another server by reading from a template file and inserting text at bookmark locations (with details pulled from a table in the database). I'm running the app unde ...Show All
Visual Basic Export object properties and attributes to XML
Hey, Im wondering if there is some way to export all object properties and attributes such as size, position, color, etc in a VB project/file to XML I am using Visual Studio .net 2003. Thanks. Ultimately you could use XmlSerialization and Xsd.exe to produce what you are looking for. However, i'm guessing that this isn't what you want because "everything" wont neccessarily be output with those methods unless you do quite a bit of work ahead of time. You can always use reflection to look at an assembly like the following: Imports System.Reflection Imports System.Xml Module Module1 &n ...Show All
Software Development for Windows Vista hydrating question
Here is my question on hydration : 1.When does it occur 2. Can I control the hydration point, like skip/force hydration in my workflow Appreciate for any comment. Please look at the following post and see if it answers your question: http://forums.microsoft.com/msdn/showpost.aspx postid=261319&siteid=1 Thanks, Iza ...Show All
Visual C# CRC Class
Hi! I've got a problem... I am working on a protocoll to affect a modeltrain. But for the Protocoll I need CRC 8 oder CRC 16 Checksum... So my question is: Does anybody has or knows where to get a .NET Class which can calculate CRC 8 oder CRC 16 Checksumms greetings Take a look here: http://www.vbaccelerator.com/home/net/code/Libraries/CRC32/article.asp and http://www.codeproject.com/csharp/marcelcrcencoding.asp Bye :) ...Show All
.NET Development Converting int to nullable enumeration...
This is the piece of code that's throwing the exception field.PropertyInfo.SetValue(row, dataReader[field.Name],null); The field in the database is a number, nullable. On the other hand, the Property in the object is of type TerrainSequence , where TerrainSequence is an enumeration. When I try to do this conversion (int to TerrainSequence ) , this is the exception it throws. Object of type 'System.Int32' cannot be converted to type 'System.Nullable`1[FairPlay.Data.Persistables.TerrainSequence]'. Any idea on how to tackle this conversion This is still bugging me.. is this a BCL error i wrote this just to try ...Show All
Visual Studio Tools for Office Is it not possible to update tables with ListObject without dataset (created through wizard)
Hi, I am new to VSTO. I am still not getting any suitable answer for my earlier posts. Let me expalin my actual problem: I have used following code to bind the ListObject: DataSet dsTrims = new DataSet (); dsTrims = MyDataAccessLayer .Provider.ExecuteDataSet(System.Data. CommandType .Text, strWhere); this .bindingdataSource1.DataSource = dsTrims.Tables[0]; myListObject.AutoSetDataBoundColumnHeaders = true; myListObject.SetDataBinding(bindingdataSource1); My where string is as follows: strWhere = " SELECT tablename1.tb1col1 , tablename1.tb1col2 , tablename2.tb2col1 , tablename2.tb2col2 , tablena ...Show All
Windows Forms Changing the Mouse Cursor on ListView
Hi, I am having a ListView, I want to change the Cursor style of he ListView on MouseOver event of the ListView, I have tried setting the cursor style of the listview, but it is not helping me, Please suggest me some solutions. Thanks & Regards, Benin. Did u tried the code something like the following this.listBox1.Cursor = Cursors.UpArrow; it is working fine at my end, What is the problem at ur end ...Show All
Visual Basic Reading characters from a line
I was wondering (DESPERATELY) how to read only certain characters from a line of text and how to define where the code will start reading and how far into the line the code will read. and lastly - is it possible to store these specified characters in a variable I've been messing around with "Mid()" but its not doing exactly what I need it to. THANX Mid is going to strip your string, but you can also look into using regular expressions to look for patterns in a string, and return them. ...Show All
