shyagam's Q&A profile
Visual Basic vb.net vs vb6 pros and cons help
Hi there i am a seasoned vb6 and vb.net developer and where i currently work, they use VB6. Now, we develop a range of office plugins for a client, and they currently use vb6, they also do some other projects with vb6. I want them to change to vb.net They have asked me for a list of Pros for switching, and also some Cons. The pros i have are: .Net is future proofed, VB6 will not be supported by Microsoft for much longer One standard platform to run on (.Net) removing problems of windows versions and missing dlls full OOP support and a generic Api for office application development. Integrate seamlessly with Java using bridging components (they are primarily a java house) Quicker performance On event app ...Show All
Windows Forms Getting Button size to match the standard?
The Windows XP Visual Guidelines say that buttons should be 75x23 pixels. If you drag a button onto a Form in designer, this is the default size. However, it doesn't look right. It is definitely too small. Has anyone come across a good answer to this problem Is there a bug in VS Thanks. I don't understand what is the problem. When you drag a button from toolbox, size is 75x23. It is not small, that is normal size. It will be small if you use 1600x1200 monitor resolution, but if you use 640x480 it will be really big. Nobody stops you to change buttons size. There is no such thing like a standard of button size. I have seen really small buttons, but also seen really big ones. ...Show All
Visual Studio Team System link requirements and tasks
hi, i created a "MSF for CMMI Process Improvement" project. in this project i created a requirement to manage the requirements for the project. but i do not find anything, to link the requirement with a task. is this possible in tfs it would really hurt if it is not possible. edit: i found the possibility to add a work item to a task. "add related work item" . there i can choose "requirement". but if i choose "requirement" i can just add a new requirement and not an existing one. in our project development we have requirements (mostly defined by the customer) and then we have a number of tasks which are allocated to a requirement. we use an access database to manage these requirements. and now we want to use tfs to do this. but how edit2: ...Show All
Visual C# Simulating a fatal exception
I have a top-level exception handler for my WinForms app that I'd like to test, but in order to do so (fully), I need generate/simulate a fatal exception (i.e. an exception which is caught but can't be ignored and causes the application to crash.) Thread.CurrentThread.Abort() doesn't seem to be the right choice, does it I'm only working with the main and UI threads. Any thoughts Here's my code inside program.cs: [STAThread] static void Main() { CustomExceptionHandler exHandler = new CustomExceptionHandler(); Application.ThreadException += new ThreadExceptionEventHandler(exHandler.OnThreadException); Application.Run(new frmController()); ...Show All
Visual C# Number Combinations
Ok. What I need is a method that discovers all the different combinations of any give set of numbers. For example, if my numbers were 1, 2, 3 all the possible combinations would be 123 132 213 231, ect. Can someone help Check the following links http://www.codeproject.com/useritems/combinations.asp http://www.codeproject.com/cs/algorithms/combinatorial_in_csharp.asp ...Show All
Windows Forms Access
How I can access my form1 from form 2. Because i can't do the same as form 2 e.g. Form1 .ActiveForm.Hide(); Form2 cardform = new Form2 (); cardform.Show(); ------------------------------------------------ Now i whant to show my form1. How I will do it using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Pilotta { public partial class Form1 : Form { //Form1 mainform = new Form1(); Form2 cardform = new Form2 (); AboutBox1 about = new AboutBox1 (); public Form1() { InitializeComponent(); } ...Show All
Windows Search Technologies Search stops working in Outlook 2007
Environment: Vista 2007 (final) Office 2007 (final) Outlook 2007 Search was working fine for 2 weeks and then it stopped for no apparent reason. I made sure that my folders were indexed. I rebuilt the indexes twice. I rebooted (obviously). Nothing works. I have not tried re-installing Office but I really prefer not to. The following warning appears in the Application logs : Log Name: Application Source: Microsoft-Windows-Search Event ID: 3036 Task Category: Gatherer Context: Windows Application, SystemIndex Catalog Details: The specified address was excluded from the index. The site path rules may have to be modified to include this address. (0x80040d07) Some ...Show All
.NET Development Writing XML Source from Database to XML File
Hi There, I'm trying to write XML Source (for ex: "blabla <b>bla</b> blabla") I stored in a database to my XML File: DSExport = (Get Dataset) Dim Writer As New XmlTextWriter(strFolder & "\Article.xml", System.Text.ASCIIEncoding.Default) DSExport.Tables(0).WriteXml(Writer) But the result shows this: "blabla <b>bla</b> blabla". I think this is an encoding-problem. Any ideas Kind regards! Marco Thank you for your solution! Cause I had no time, I did a workaround and build a little class with that I create my own XML Doc from a dataset. So I made my own Dataset.WriteXML function. ...Show All
Smart Device Development Cabwiz.exe - Application Error
when I try to run the cabwiz with a inf file. I get the error Cabwiz.exe - Application Error The instruction at "xxxxxx" reference memory at "yyyyyy" referenced memory at "zzzzzzz". The memory could not be read. in a popup window. What may be the problem Regards, Prashanth Hi, I am getting the following error while building my CAB file. Error: FilePath\XXX.inf contains DirIDs, which are not supported. Where FilePath represents the original path to INF file and XXX represents the name of INF file. CAB contains just about 250 files. When I reduce the number of files, CAB gets built successfully. Can anybody please propose a solution other than using multiple ca ...Show All
.NET Development Issues with C# and HTTPS/SSL Connection
Hi, I am trying to read an HTML page from a secure (HTTPS/SSL) website. I have the traditional class that works perfectly with un-secure website. Whenever I try to connect to the secure website,the procedure call at: StreamReader sr = new StreamReader(HttpWResponse.GetResponseStream(), Encoding.ASCII); and returns the following exception message: base {System.InvalidOperationException} = {"The remote server returned an error: (500) Internal Server Error."} the headers of the server are: Headers = {Connection: keep-alive Content-Length: 2012 Content-Type: text/html;charset=utf-8 Date: Wed, 10 Jan 2007 15:42:09 GMT Set-Cookie: inetmbn=4006122250.35363.0000; expires=Wed, 10-Jan-2007 18:42:09 GMT; path=/ Server: Apache-Coyote/1.1 ...Show All
Windows Forms combobox
Hi, At present I am populating a combo box in winform .net 2.0 It is populated using something like the following method: cbo.datasource=dataTable .datamember= .valuemember= How can I add an empty item in the very first item I tried something like: cbo.items.add("") before the .datasource line, but no change. This is required so that when the form loads, the combobox is populated but no item should be shown. Thanks We append a blank value to our DataTable (if we don't already have one in the table) before we bind it to the comboBox : With dt Dim row() As DataRow = .Select( "ContactTypeDesc= '' " ) If row.Length = 0 Then Dim row1 As DataRow = dt.Rows.Add() ...Show All
SQL Server installing the sample databases and documentation
There are two instances: SQL2005 and SQL2005Express on two different units. While there is Visual Studio 2005 Team Edition also installed on the units have not attempted these component installs through either yet. Have spent the better part of two days, following all the directions having searched help locally, online, technet,and applied their advice respectively. While I've taken out the old instances, downloaded updated ones in both my SQL Server instances they do not show as installed under Programs->SQL Server (whichever instance)->Tutorials ...However they do show installed in Control Panel and they can be found via Explorer (AdWorks DBCI+AdWorks BICI and Express instance on the other unit. Have also download SP2 and installed ...Show All
Visual Studio Express Editions how to view power point files on application form ?
hey guys if i have power point files , how can i open them in a form thanks alot nobugz wrote: Try: webBrowser1.Url = new Uri(@"file://c:\whatever\yourpresentation.ppt") i've just tried it didn't work !! this way only works with file.htm ...Show All
Visual Basic Printing ??????
I hope I'm asking this in the right place, I need help understanding how to setup and show a printpreviewdialog. I'm new to programing unless you count 2 months of self training, anyway... I'm trying to basically print the data that I display in a datagridview, the datagridview show the data exaclty how I would like to see it on paper, I've been all over trying to get an understanding of how to create a printpreviewdialog, but I'm Lost, Please someone show the place to find something that will help me to understand I thank you in advance......... That worked great for printing the whole form, I just want the data that is shown in the datagridview, or a simple explanation of how to create a document for printing from ...Show All
.NET Development Keypress doesn't work with autocompletemode suggest
I have a combobox with the following properties set AutoCompletMode : Suggest AutoCompletSource : Listitems DropDownStyle : DropDown I need to use a keypress event for the backspace and enter key because I want to save text that I entered in the combobox to a file. With the AutoCompletMode : Suggest the event doesn’t work. With the AutoCompletMode : None the event fires. See below the code I use: Private Sub Combo1_KeyPress( ByVal Sender As Object , ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Combo1.KeyPress Dim msg As String Dim title As String Dim style As MsgBoxStyle Dim response As MsgBoxResult If e.KeyChar = Chr(8) Or e.KeyChar = Chr(13) And Len(Combo1.Text) < ...Show All
