sharon sharon's Q&A profile
Visual Basic passing a dimensioned array values as argument to a procedure
I have difficulty in passing the contents of entire array variable as an argument to a procedure. Main Program; DIM x(100) As Single Call SubProgram(x()) SubProgram(ByVal x() As Single) End Sub Hi, I am taking a quantum leap from QB to VB.NET 2005 I get a wavy error message under () of X as "No of indices is less than the number of dimensions of the indexed array" . Any suggestion All you need to do is take the parentheses off, so it should look like this: Sub Main() Dim x(100) as Single Call SubProgram(x) End Sub Sub SubProgram(ByVal x as ...Show All
Visual Studio Express Editions how to code to make application icon goes to WINDOWS notification area when "minimize" is clicked in c#.net 2005 ?
some programs can be moved to notification area instead of just go to taskbar when "minimize" is clicked, how to do this with c#.net2005 windows form applications plz help Very useful info. I was just looking for this piece only. Excellent.... ...Show All
Windows Forms Hide certain standard control's properties from designer
Hi, I created a custom control which inherited from Forms.Button. There's no problems to create & expose custom properties but... I cant find anyway to hide the standard Button's properties... Note that I'm using J# Thanks man, not need to sorry about. you are helping me~ :-)) Thanks for your repply again but I getting the same error... and I got no ideas.... search around internet still cant get any answer... any ideas sorry again Error 1 An expression is required in this context, not type name 'MyTextBoxDesigner' ...Show All
Visual Studio Opening mscorlib sources in editor
Hi! In my add-in I'm trying to open source files of classes in editor. It works well with classes inside projects, but I don't know working meth to open any system class (e.g. System.String). I tried to to get CodeType object for this class - it works, but exception occurs while getting Start/End Point or ProjectItem. Maybe someone knows rigth desicion VS is using sources generated from metadata - is there any way to obtain such sources without metadata parsing Thnx. The C# project system will generate this data on the fly, and there is no programmatic access to do this yourself. If you wish to do this, yo ...Show All
Visual Studio How to support "Export the Project as a template"
We are trying to support "Export the project as a template" for COBOL package, and we are looking for the process to support. we understood as follows. 1. When the project is exported as a template, .ZIP file is generated. This ZIP file includes the following files. a) .VSTEMPLATE file b) .Ico file c) project file and all projectitem files 2. When the project item is exported as a template, .ZIP file is generated. This ZIP file includes the following files. a) .VSTEMPLATE file b) .ico file c) specified projectitem file 3. .VSTEMPL ...Show All
Microsoft ISV Community Center Forums Open an excel file
Hope you will help a beginner .. Here's what I want to do: In a VBA subroutine, try to open an excel file with a particular name say, P01GAB.xls. It may not be in the diretory, if not, wait for 10 seconds and try again. If so, open it and go on to the next thing. (Eventually, it will be in the directory...) So, I take it, I need some sort of error trap on the Workbooks.Open command... Thanks much. Oops! That piece of code should now look like this: for i=1 to iMax on error resume next set wb = workbooks.open(sPath & "\" & sFile) on error goto 0 if not ...Show All
Visual C# Button with dropdown menu
Hi, How can I build button with dropdown menu like in toolbar (but not in toolbar) Thank's Alexei Here is something I put together real quick, might have a some bugs, you'll have to convert this to c# as I am a vb'er. Just drop on the form and set a ContextMenuStrip, the control will handle the rest. Also has an ArrowClick event you can catch if you'd like. Imports System.Drawing Imports System.Drawing.Drawing2D Public Class MenuButton : Inherits Panel Private _overArrow As Rectangle Private _hoverArrow, _downArrow, _hoverButton, _downButton As Boolean Private _buttonT ...Show All
Visual Basic Opening TIF files for viewing
I have a folder with TIF files and need to open them in Internet Explorer and also with the default Windows Image Viewer application. I am looking for some guidance or sample code that will help me complete this. Any information will be greatly appreciated. Thanks Environment Windows XP Pro Visual Studio 2003 & VB.NET Hi, I do not think that explorer is able to handle tif files. Anyway to start an application with parameters you should do following: Process.Start( "iexplore.exe" , "c:\temp\image.gif" ) Where first parameter is application name and second is arguments that you p ...Show All
.NET Development Questions on EncoderParameters / PNG TIFF Image types
This is a repost, (i had originally posted to the incorrect group, sorry...), and also, I am still unclear on where to post this one, as it seems to "fall between the cracks" somewhat...I can't find a forum that really seems appropriate for GDI+ questions (if someone has a tip on that, idappreciateit!) The question: Does anyone happen to know, offhand, if there is a way to specify the quality encoder parameter type for .PNG files that actually causes some effect on the degree of compression I have seen 3rd party imaging software that allows settings for this, usually with a compression level from 1-10, which really w ...Show All
Visual C# Database Question
Ok. I have a couple of questions about a database. Lets say I create a program, and add a database to it. Ok, then I send the program to a person in New York, will I be able to update that database from here where I am This question is a little broad to answer correctly in it's current form. Without going into too many specifics, it is possible for you to access and update a database on a remote connection from anywhere in the world. You need to consider many things before you implement this however. It depends on what DBMS you're using, what type of changes you're making (data changes, structural changes, stored procedure chang ...Show All
Visual C# c# Syntax
how do you make a carriage return in c# so..... w + \n\r + ww If you are concerned about portability, you might also want to look at Environment.NewLine. It guarantees that you get the right combination depending on the platform. --mc ...Show All
Windows Forms Using ErrorProvider for multiple text boxes
I have a sample program that takes in change (money) amounts and converts them into the largest denominations possible (I teach VB.NET at a college and I made it up for my students to do). I am using the error provider to validate the input in each text box. Unfortunately, I have to duplicate the code for the validating event for each& ...Show All
SQL Server Derived Column Calculation
Example: (47 / 204709) * 12000 = 2.754 Both values (47 & 204709) are of data type Int. SQL Sever - Derived Column Calculation returns 2.74 The destination data type is Float I have converted the data types to Float, Decimal & Numeric and still got the same answer. Any suggestions Yes, I have what I have noticed with the Data Convertion component is that the input and output data types stay the same. Should it not change to the new data type. ...Show All
.NET Development Transforming XML/XSL same as Internet Explorer
I am using VS 2005 I want to provide WebBrowser Control with XML in memory and I want it to display the transformed HTML. It is very easy to provide it with a URL to navigate. But i do not want to write the XML file on disk Looking at the architecture of WebBrowser control. http://msdn.microsoft.com/library/default.asp url=/workshop/browser/overview/Overview.asp and its API i am unable to provide XML directly to the Webbrowser IN-Memory. As i could only find functions like DocumentText and Document.Write which are msHtml fucntions and take HTML only Other way is to process/transform the XML and XSL and give it the res ...Show All
Visual Studio Team System Distributed System template
Hello, I've just downloaded Visual Studio Team System Beta 2 and started "looking into" the Team System features but was unable to locate the Distributed System Solutions project types when creating a new project. Where can I find these Thanks, Scott Mead Marking this as the correct answer for now while Jyothi and Scott work on this offline so I can stop getting reminder e-mail every day ...Show All
