Australian Sewing Machine Co.'s Q&A profile
Windows Forms Problem trying to select an item in a TreeView
I use a TreeView to implement it. My program must behave in this way: When you select an item in a diferent screen from the solution explorer, then its solution explorer item must be selected too. I have the following class hierarchy whose objects must be shown in the right way in the solution explorer: First of all, At the head's hierarchy I have the "Solution" class which contains an ArrayList of "Screen" objects. And each "screen" object is composed by "item" objects. I've written the following code to insert the items I create in "the other part of the screen", in my solution explorer: SolutionExplorer.cs public void insertItems(Solution solution, Item selecte ...Show All
Visual Basic Notification area
With Visual Basic 2005 How Can I add my Program into the notification area Look here To have your application show up in the system tray (Notifcation Area) use the NotifyIcon control from the tool box and set its properties accordingly ...Show All
SQL Server How to fire off a report and save it as pdf...
Using vb.net, does anyone know or has anyone fired off a sql report, save it as PDF to a defined path I am knew to sql reporting services and the help files are not very helpfile. Any sample code would be helpful. Thanks I looked at the sample code, how ever, not sure where the references are to things like "ReportExecutionService" and some of the other objects. WHich .net items do I need to import Daryl ...Show All
Visual Studio 2008 (Pre-release) Binding FrameworkElements, Parent Not Set
I Have the following: < ItemsControl ItemsSource = " {Binding Source={StaticResource myData}, Path=FxList} " > < ItemsControl.ItemsPanel > < ItemsPanelTemplate > < Canvas IsItemsHost = " True " ></ Canvas > </ ItemsPanelTemplate > </ ItemsControl.ItemsPanel > </ ItemsControl > FxList is List<FrameworkElement>. The elements in FxList correctly show up in the Canvas. But the Parent for the elements in FxList is not set through the binding/templating process. I suppose I am not too surprised at this though things would be more consistient if it were set. The binding is less useful to me here since I have to go back and mess with this detail. ...Show All
Smart Device Development How to set thread priority to Idle
Hi How to create an Idle Thread in compactframework Any Idea Mahesh Kumara I found it using coredll method CeSetThreadPriority() it can be done. Thx Mahesh ...Show All
Visual Studio Studio 6 and SourceSafe 2005: Can't see that file is checked out
A few pointers on this issue would be greatly received. We have finally managed to implement 2 developers connecting to SourceSafe 2005 using Studio 6. One developer is connecting to SourceSafe via HTTPS and the other is connecting via the LAN. My problem is that when the other developer has checked something out I have no visual indication in Studio 6 that I will be unable to check out the file. I have to try and check it out and hope it is available. I am assuming there should be an icon next to the file to indicate that another user has it checked out. Am I wrong Any help would be appreciated. Lee Thanks Nitin You're right it is not really a blocker. I just wasn't sure if something was n ...Show All
.NET Development generics and static methods question
I'm learning generics and c#. Is there a way to call static methods in the T class so I can streamline this I have two static methods in T named GetItem and SaveItem that I would like to invoke by something like T.GetItem(astring) and T.SaveItem(t). Reading some of the other posts seems to indicate that a static method can not be used. Thanks for any recommendations. public class FrmUpdateManager <T> : Form { T t; // etc // would like to do something like T.GetItem(tb.Text) to eliminate the if clause // for each type I implement i f ( typeof (T) == typeof ( InsuranceCompany )) { object obj; obj = ( InsuranceCompany .GetItem(tb.Text)); t = (T)obj; displa ...Show All
Software Development for Windows Vista the type name ... does not exist in the type xyz
I wrote a custom activity and compiled it. It showed up in the toolbox perfect. I can select it and drag it into my WF, and I start to get excited. But, when I compile the workflow, I get the "type does not exist" error message. "The type name 'AuthenticateTaxReturnActivity' does not exist in the type 'AuthenticateTaxReturnActivity.AuthenticateTaxReturnActivity'" How come it can't resove the activity at compile time, but does just fine at design time Thanks, Robert For now, I circumvented the issue by ensuring that the namespace name and the class name are NOT identical. Make sure they are different! Then seems to work fine. ...Show All
Smart Device Development VS .NET to VS.NET 2005
I have a problem with the conversion of dates after migrate of VS.NET 2003 to VS.NEt 2005 Test: Dim oDate As DateTime = DateTime.Parse(oDst.Tables(0).Rows(1).Item("mydate").ToString()) Error: invalidcastexception ..... In my project of vs.net 2003 worked well that code I sorry for my inlges ... i speak spanish Thanks. The problem is the format of date .... Test Dim oDate As DateTime = CType("2006.01.01", System.DateTime) Error: invalidcastexception How I can change the format of the date to YYYYMMDD Thanks.- ...Show All
Visual Studio Visual Studio with SP1 is really unstable
Until VS 2005 + SP1 i don't rember that in VS 2003 and VS 2005 that i had crash on VS. But after SP1 every day at least five times VS crashes, and all unsaved work is gone. I'm experianced VB 4.0 - 6.0 developer so you know that Ctrl + S is something that i know the best and this helped me so many times, but not always. My question is: Does removing SP1 is a best idea for now. Gabriel Lozano-Moran wrote: And Nod32 is the godlike of anti-virus software that it can't possibly cause these issues Just a note, Nod32 is hands-down the best AV client. Period. If you like, read all of the independent reviews about it to verify. It is written in assembly language, so it has very little hooks into Windows ...Show All
Visual Basic Last Row in an Access Database
I am trying to write a program in VB.Net that uses an access database and I just need to know how to make the row auto increment without using the autonumber type because my database is already populated and I can not change the data type. that's exactly what you need... you just have to create a Command object with the SQL i sent you, issue an ExecuteScalar to fetch the returned value and increment it by 1. here's a pseudocode: OdbcCommand cmd = new OdbcCommand("SELECT MAX(<field>)...); int nextKey = cmd.ExecuteScalar() + 1; i might be missing some details in the code, but you can try debug it or post any other problems here. HTH ...Show All
Windows Forms Datagridview Master / Detail Highlight Rows
Hey Guys, I currently have a master / detail form with two datagridviews, which is working nicely. However the main grid shows transactions, and the child grid shows comments. Not all transactions carry comments, infact very few do. I decided to separate the grids by a splitter and hide the child grid. I'm trying to find a way to flag / highlight the parent grid if it contains child rows so the user knows there is a comment if they wish to view it. Does anyone have any ideas how to do this I thought there may have been a hasChildRows boolean value but appears not! You can do it in SetFlag() routine... ... dgvr.Cells( "ImageColumn" ).Value = My .Resources.commnet ... ...Show All
Windows Forms Splitting graphic output
I have created a media player with Windows Form (C#), but I have single question : How to split the graphic output between my monitor and my TV (both are connected to same computer). My monitor will display the media player application while my TV will display the video (played by the application). Thanks. ...Show All
SQL Server Managing SQL 2000 databases on Vista...
I have one database at an ISP running on a SQL 2000 server. Under Windows XP Pro, I installed SQL 2000 administrative tools then I could use the database manager as well as the query tool to manage my database. I have upgraded my machine to Windows Vista Ultimate. SQL 2000 client services won't install under Windows Vista. Under Windows Vista, I was able to create an ODBC component that connected successfully to the SQL 2000 remote database, but I no longer have a transaction tool or a gui to manage the tables. My goals are simple: I want to be able to view/add/drop tables and data using some sort of GUI. I would also like to have some sort of SQL transaction client. I don't need to do any high level database management, just view/change/ ...Show All
Visual Basic Test for Web Availability
I need to test for availability using a test site such as http://www.ABC123.com/test.htm that returns <html><head><title>TEST</title></head><body><p>TEST</p></body></html> I've tried the My...download but it fails when their is no web access ( the try and catch mechanism doesn't catch the failure). so... if something( http://www.ABC123.com/test.htm ) then ... else ... end if Any help would be greatly appreciated. Hi Ken, I think #2 approach will work a little better like you say. I just tried it out and it worked pretty well. Note that there were a few problems with my Ping code above: 1) you need to pass a host ...Show All
