SaintJimmy's Q&A profile
Windows Forms How to access controls on another form
Hi, I need to access a control that is on a separate form, I have 2 forms, my main form and the details form,so my main form calls my details form, but from my details form I need to access some of the information on the datagrid that is on the main form, I was thinking on using properties but there are too many fields that I need to access, so I was wondering if there is another way. Thanks. When wanting to have one form make changes to another or it’s controls, it is possible to declare the target control(s) as public members instead of private ones... this however is generally considered bad practice as it violates the encapsulation concept of object oriented programming and instead the common suggesti ...Show All
Windows Live Developer Forums Fleet management and vehicle routing desktop software (spanish research project)
I'm pleasure to notice you a spanish research project about fleet management and capacited vehicle routing problems (at Polythecnic University of Valencia - Spain). The project is in his first stages. This desktop software uses Ms VE v3 (developed under Visual Studio.NET). You can visit the project web at: http://personales.upv.es/arodrigu/rutas/ Note: just today the web server is down! :-( Thanks everybody in advance for your comments and ideas. How do we go about joining this community, adding and working along with this project I teach a group of under privileged students and this project would be a fantastic opportunity which would benefit their language and development skills. I look forward to your reply. ...Show All
Visual Basic Problems with Evaluation Version
Hi, Turned on the PC tonight, went straight to the Microsoft web site. I was interested in downloading vs.net for 90 day trial, so I made my way to the Evaluation section and enter my details.... until I get to Country... well... my country doesn't exist!, Australia is missing from the drop down list. So I'm posting this here in the hope that someone from Microsoft reads these forums (as this is apparently the only avenue to contacting Microsoft on matters related to the trial version). Also, I have previously downloaded the trial version (twice) in excess of 2.5 gigs per pop, first time I tried to copy the IMG file (using Nero Express v6) I get an "Unexpected file format" error message. So I thought the file might be co ...Show All
Visual C# Cast at runtime?
DataRow[DataColumn, Table.Columns] returns object and a comparison of object type fails even if actual values are equal. We can guarantee the Type of the DataColumn and I want to cast to the DataColumn.DataType as I iterate the columns of the table; much more maintainable if the table ever changes. Other than a slew of if statements testing the as operation, is there a way to make this construct compile: foreach(DataColumn column in dataRow.Table.Columns) { if(dataRow[column, RowState.Current] as column.DataType != dataRow[column, RowState.Original] as column.DataType) { ... } } My hack is to test using ToString() (not pretty): dataRow[column, RowState.Current]dataRow[column, RowState.Current].ToString() Why can't w ...Show All
Visual Studio 2008 (Pre-release) Memory problem when refreshing ListView with ADO .net
Hello, I have a listView with GridView, that is binded to a dataset. First, what is the correct way to update the listView, for now I use the fill method of the adapter to fill the dataset again. adapter.fill(Dataset.Table); Second, When I'm doing this, the memory keeps increasing. Is this normal Thank you Even when clearing the table before calling the Fill method, the memory keeps increasing. Here is the code relative to the problem : private void Grid_Loaded(object sender, RoutedEventArgs e) { OverviewListView.DataContext = OverviewTransaction; overviewView = (BindingListCollectionView)CollectionViewSource.GetDefaultView(OverviewTransaction._OverviewTransaction); Th ...Show All
Visual C++ VCpp and Projectors
I am thinking about creating a program to manage slide shows. I would need to communicate with the projector and have no idea how to do so. Are there any prebuilt libraries or framework to handle this in Visual Studio. ...Show All
Software Development for Windows Vista Enabling aero glass?
Is there something in particular that has to be done to enable this I've installed Avalon and the other pieces with it, updated my gfx driver the the latest version from nvidia, but I'm still getting the plain aero, and I don't see anywhere to enable aero glass. My system is far above the requirements needed for it: Athlon64x2 4400, GF7800GTX, 2GB RAM... How do you manage that. I have a Tecra M4 with GeForce 6200 TE 64 Mb and when I try to install any of Nvidias drivers it tells me it does not recognice my hardware. Please help Sniper ...Show All
Visual Studio 2008 (Pre-release) Getting list of all dependency/attached properties of an Object
In Visual Studio, in the XAML view when we add a element tag say <Rectangle...> and hit the spacebar, we get a list of all the attached properties and dependency properties of the object. (For e.g. Canvas.Left). How can this be achieved through procedural code I tried using Reflection (on a Rectangle object in above case) but it did not help. Thanks, Niranjan You can obtain attached properties using reflection. Here's an example that iterates through all the types in an assembly: Note the use of DependencyPropertyDescriptor to obtain additional information about each Dependency Property (this allows us to check if they are Attached or not). There may be a better ...Show All
Visual Studio Express Editions publishing an application
I have a few questions about publishing and than installing my application. Firstly, how can I specify the destination folder to which the application is installed, is it possible at all because as I see, it is by default installed in some strange catalogues secondly, during installation there is an information about the publisher "publisher name : unknown publisher " how can I set that because as far as I understand it I am the publisher. thanks for any help. thanks i got the answer to my question here : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=169718&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) GridViewColumn + 1
Hello, I'm using a gridview for my listview.View. I have defined 2 GridViewColumn in my gridview. When I see the resulting gridview there is 3rd column, with empty space. Is there a way to instruct the GridView not to show the 3rd column and allocate all remaining space for the my last column (2nd column). < DockPanel > <ListView ItemsSource = " {Binding Path=Family} " > < ListView.View > < GridView AllowsColumnReorder = " False " > < GridViewColumn Header = " Name " DisplayMemberBinding = " {Binding Path=Name} " /> < GridViewColumn Header = " Age " DisplayMemberBinding = " {Binding Path=Age} " /> </ ...Show All
Visual Studio Express Editions How do I specify Data files for ClickOnce deployment?
Hi to all, I have an application that uses 2 CSV files. The application sucessfully runs on my development system, but bombs when Run after ClickOnce deployment. The data files, contacts.csv & bowl.csv, are located in a folder named Resources in the project. I right clicked each file and set the Build Action Properties to Content. I then opened the project properties and on the Publish tab, I clicked Application Files. I set the Publish Status for both files to Data File. I read the data using the following code: Private myPath As String = "..\..\Resources\" Dim SR As System.IO.StreamReader Dim txt As String = "" Dim FileURL As String FileURL = myPath & [Enum].GetName( GetType (CSVfile), FN) & &q ...Show All
SQL Server MCTS Exam 70-431 Database Administration Study Documementation and Samples ?
Hi, I am looking for good documentation and examples to use to 'study' for Microsoft exam 70-431. This has everything to do with nuts-and-bolts Database Administration of SQL Server 2005. The December BOL examples, do not cover enough topics. The topics that are covered are not in enough detail. The 70-431 exam requirements are very detailed. This seems to be a nuts-and-bolts test. I am looking for nuts-and-bolts study material. No books are published yet. Does anyone have any good ideas on where to find 'good' samples and tutorials meant for a person who is studying for the new Microsoft SQL Server 2005 Database Administrator Exam MCTS 70-431 All answers and ideas in 'any form' are appreciated. Thank you very much. ...Show All
Visual Studio Extending code support for additional languages
I have a library of useful tools (Sources) written in languages other then than those supported by visual studio. Awk (gawk) and php are two examples. Most of these tools are for text manipulation that operate through pipes reading one or more data files plus a source file and outputting a new text file. That new text file may, for example, be generated C# or VB code produced by the processing. I give two simple examples: (a) a file containing the structure of an existing data base is processed to automatically generate the VB code to create an SQL database. (a) a file containing a mathematical formula is read to generate C# routines to apply the formula. I want to use Visual Studio so as to edit my Sources, maintain the fo ...Show All
.NET Development Sql syntax error due to parameter
Hi all, I'm a beginner in Ado.net and met this problem which i could not solve nor find on the net. The following is my code; Hi, My best guess would be in the value of your parameter. And also the % part in your sql statement that is typed after your parameter: Where clnt_CompanyName like ' @clnt_CompanyName% ' I suggest placing your '%' in the value of the paramter instead. Dim para = oledbDaCT.SelectCommand.Parameters.AddWithValue( "@clnt_CompanyName" , cmbClients.Text) New Code: Dim para = oledbDaCT.SelectCommand.Parameters.AddWithValue( "@clnt_CompanyName" , cmbClients.Text & "%") Also, don't forget to remove the '%' in your sql statement... cheers, Paul June A. ...Show All
Software Development for Windows Vista faultHandlerActivity.Fault is always null
Hi I have a FaultHandlerActivity in my own SequenceActivity that handles the System.Exception and calls a CodeActivity when any exception happens. This works but when I want to look at the faultHandlerActivity.Fault it is always null. I am using Visual Studio 2005 Extensions for Windows Workflow Foundation RC4(EN). Thanks Gert in the FaultHandler, this should work : CodeActivity codeActivity = sender as CodeActivity ; FaultHandlerActivity faultHandler = codeActivity.Parent as FaultHandlerActivity ; Exception fault = faultHandler.Fault; Console .WriteLine(fault.ToString()); ...Show All
