Jose M. Marcenaro MVP's Q&A profile
Visual Basic FIleOpen Dialog - fileopendialog.showdialog() - Change default view from List to Details
In my app a user can mouse to File Menu - Open. The fileopendialog.showdialog() has default view of ListView. The user is alway going to have to sort the file list by Date in descending order in order to open the most recent file stored in the network location. How can I make the FileOpenDialog display in Detail View by default and not List View. Thanks, MIke Code Sample dlgOpenFile.InitialDirectory = sDefaultDir dlgOpenFile.F ...Show All
Visual C# Could you tell me how to study C#?
Hi I am a Chinese university student. My department is Electronic Commerce.My friends,could you tell me how to sutdy c# What is the best way my MSN is antlxy2006@hotmail.com desire to communicate with you,thanks! Hi, Currently I am working as Sr. Software Engineer in the IT compnay. I completed my education from RGPVV, Bhopal (India) There are many good .net site available from which u get both code and example of .net https: ...Show All
Visual Studio Express Editions Black Screen
Hi, I'me trying out Visual Basic 2005 Express but verry often (not always but most off the time) my screen turns black when I try to open the Properties screen. It happens with the fast menu(right click), the View menu and when I try to open the autohide menu. Is this a bug in the program or is it somethinge else. Thanks for help Hi! Actually this looks like a bug - check for viruses/spyware and repor ...Show All
Visual Studio Express Editions Read from ini-File: PInvokeStackImbalance
Hi, I want to write and read some information and configuration in a ini file. I now found a code-snippet for reading and writing from/into ini files: Private Declare Function GetPrivateProfileStringA Lib "kernel32" _ Alias "GetPrivateProfileStringA" ( ByVal sSectionName As _ String , ByVal sKeyName As String , ByVal sDefault As String , _ ByVal sReturnedString As String , ByVal lSize As Long , _ ByVal sFileName ...Show All
.NET Development How to implement transactions using tableadapters?
The old dataadapter had a transaction object which you could assign to a .NET SQLtransaction. This made transaction handling very simple. What is the equivalent (or similar) method for handling transactions using tableadapters I'm using the table adapters generated by the data designer. dataadapter has no transaction property which can be assigned to a sqltransaction. You could use System.Transactions. ...Show All
Visual Studio Express Editions read write serial port
I have found several classes online that say they make using the serial ports easy. I am never able to get any of them to compile. Is there a bare bones example of how to read/write to a serial port all bundled in a project for Visual C++ Express Edition Hey!! I looked at the same place with the window app that worked. It was blank and had the check box below checked. (Inherent from parent or project defaults.) ...Show All
SQL Server Daily Check List
I need to create daily check list for SQL 2000. Here is what I have done: 1. Check the connectivity of each server over the network. (Ping/open Enterprise Manager and proof connection) 2. Check whether the services are running for each server. (Green light) 3. Check the scheduled tasks on the production servers are running normally. Enterprise Manager of each server or your email (Set up SQL Mail to notify you). 4. Check the hard disk spa ...Show All
SQL Server Dynamic measures
Hi, I am new to mdx. Based on the requirement, I need to dynamically loaded up a column of measures depending on the selection of a parameter. The parameter values has, Actual, Budget, Target For the one field, base on the above parameter, will select, if the value for the parameter is Actual, then we will have only a column of Actual values if it's Budget, then we will have only a column of Budget values if it's Target, th ...Show All
SQL Server Need to create <Query> statement programmatically
I am creating a web application that uses a using a web service to get data for my reports. Since the webservice only accepts 1 parameter called "sql" (the sql select statement), I am using the report's query string to get the data. Here is the data source and dataset info I am using: DataSource Name: WebService Type: XML Connection string: http://localhost/myWeb/myWebService.asmx Credentials: No credentials DataSet ...Show All
.NET Development Remote object expires even when lease time is set to 0
Hi, I have an ASP.Net(with C#) application which uses windows forms user control which is downloaded and executed on client machine when invoked The application uses remoting to execute database queries(select/insert). The database is Oracle 9i. TCPChannel is used for remoting. On the server side we have a windows service running to which the client connects While the user is doing data entry/updation at some point of time the remote o ...Show All
Visual Studio Express Editions VB Express Socket help
I've never used VB.net but I was confident that it wouldn't be a problem. However, I've had some trouble getting a simple socket program to work. I have read numerous documentation on the subject but can't figure out what I'm doing wrong(the documentation seems to be targeted to the pro-programmer instead of a beginner). Dim mySocket As System.Net.Sockets.Socket Dim myEndpoint As System.Net.IPEndPoint Dim myHost As System.Net.IPHost ...Show All
Windows Forms Button shortcuts disappear
Hi All, I have a Windows program written in C# using VS2003. The program has several dialog forms with 4, 5 buttons on each form. And I have an ampersant (&) infront of each character for the shortcut. (&Ok, &Cancel, i.e.). The weird thing is that the shortcuts (the underline character ' _') do not appear on the button until after I press the ALT key once. After the ALT is pressed once, the shortcuts will appear on each but ...Show All
Windows Forms Adding nodes to a treeview dynamically
Hi I have a main Form with a treeView...and some nodes which are populated from a database....I have an Add New Node Form with an add method that adds a new node to the database...Obviously I have to reload from the database before I ...Show All
Windows Forms What is wrong with MyDataset is nothing?
I used a function to create a dataset and setup that if this function return nothing, exit sub. But after running, even though the function return nothing, sub did not exit. Help!!! Here is my code: Sub btnPrint (...) dim MyDataset as ...Show All
Visual C# Calling a form within a folder
Hi All, I created a windows form called "MyPref" inside for a folder called "SysOpts1" and now I want to execute or call this form when I select it from the menu. Could this be done I tried the following in the click event of the menu, but I got an error. form iMyPref = new form SysOpts\MyPref(); iMyPref.show(); Any help is appreciated. TIA If the SysOpts1 folder is also in your namespace hierarchy ...Show All
