Tore Bleken's Q&A profile
Visual Studio Shape position from a template...
Hello, 2 related questions... 1) How can I get,from a template, the position of a shape put on the diagram I'd like to obtain the x and y coordinates... 2) What about shape sizes as Width and Height Tnx in advance Paolo Arrigoni Are there nobody for the previous question :( I also need to know how to change formatting property of a shape at run time. What I want to do is to rapresent a window using a shape. In this window is possible to insert a label rapresented by another shape. A domain model property of the label is the font used and I'd like to view the font on shape changing while the user change the font property ...Show All
Visual Studio Express Editions binding navigator
Hi there i have a database set up with the a binding navigator etc (drag and drop from the datasource and vb did the rest my first question is for the save button when you double click it it brings up the underlying code so you can add or change it as appropriate however with the add new item button no code i created it just shows a blank sub my question is where is the code actually written to i was hopping to add a new instance on the form load is that possioble my second question concerns the data navigator on a seperat form when i move forward it works perfectly but when you go back to previous enteries 1 of the text boxs h ...Show All
Visual Basic Password Verification
Hello Friends, I am new in this forum. I am implementing one appication. I need a form which will verify a user against his password. I am using VB 2005 Express Edition & SQL Server Express Edition. Can you send me a code snippet for this Bye... Prasanta Well you simply get the password the user has entered (and the username) then query the database for that usrer and check the password value from the database with the value of the entered password. ...Show All
Windows Forms Data Grid View & Read Only
Data Grid View Any one else having problems setting a single column to ready only dgv.Columns( "myValue" ).ReadOnly.Equals( True ) Or am I missing something here I had a similar problem, I caste the columns collection to a BoundField, or a BoundColumns like so,.. ((BoundField) dgv.Columns("myValue")).ReadOnly = true; in order to reveal access to the ReadOnly method. this will only work if the columns collection is actually holding a BoundField object ...Show All
Visual C# ArrayList Sorting
I have a class called ScoreValues public class ScoreValues { public string ClassName; public double Score; public ScoreValues() { } public ScoreValues( string classname, double score) { this .ClassName = classname; this . Score = score; } } Now I have an ArrayList called scoringResults. Once passing through my code, the ArrayList fills with strings and a score value. scoringResults.Add( new ScoreValues (className.ClassName, typeScore)); I want to sort the Arraylist from Highest Sc ore to the lowest score. I keep trying to want to do it programmatically, but I know there ...Show All
Visual C++ makefile projects and visual C++
Hi, I'm working in a company that uses (gnu) makefile projects with visual C++. My problem is that my makefile supports a wide range of targets but they can only be configured at the top level projects level. What I'ld like to be able to do is select a file or folder in the solution explorer and invoke a macro that will start make with the smallest applicable target. There's a clear mapping from folder name/module name to associated target so determing the specific target isn't a problem - the problem is how do we execute an operating system command (ie 'make <target>') from the macro execution environment! Anyone ...Show All
.NET Development ArrayList filled with non-string objects to array of string
Could you tell me, please, if there is an opportunity elegantly convert ArrayList filled with objects of some class to string array Example in C#: class Point { int x, y; public Point( int x, int y) { this .x=x; this .y=y; } } // ... static void Main( string [] args) { ArrayList p= new ArrayList(); p.Add( new Point(2, 3)); p.Add( new Point(5, -2)); string [] result=( string [])p.ToArray( typeof ( string )); // something like this } I have tried to override method ToString() in class Point or add static public implicit operator string (Point p) { return p ...Show All
Windows Forms Printing data from a datagrid/dataset
Hi all, I've been searching Help/Walkthroughs/Discussion Groups for hours on this and really don't have a definitive approach or way forward... I have a page that displays a datagrid which is filled using a select command query based on user selected criteria. This works fine. Once the datagrid is displayed I need the users to have the option to print the datagrid. Here are the solutions I've found and the problems related to them: 1- Use crystal reports - well I've tried following the Walkthrough in Visual Studio help and it doesn't work because the walkthrough is based on accessing data from a table in an sql database, not a dataset, ...Show All
Visual C# C# .NET Naming Conventions
Does anyone know where I can find a list of naming conventions for UI elements. I found a bunch of places where they have variable, property, method, event handler, formatting style, etc. conventions. But I am having a hard time finding naming conventions other than the Visual Basic 6.0 Naming Conventions on Microsoft's website. As the programming world is rapidly moving away from hungarian notation, it's easy to state that you should not use it, or any type of prefixed notation. Naming textboxes "txtThisAndThat" or strings "strThatAndThis" is unnecessary, since the IDE can give you the type and ...Show All
Windows Forms Which Language and Why
Let's Open the Floor for this Discussion: Which language is best for an intranet distributed application, using Windows forms, and why I am about to build one with multiple features from different intranets within our office. Thanks for your input! Gary ----------------------------------------------------------------------------------- Not sure but I don't think a class in VB.NET can i ...Show All
Visual C++ I can't mix VC & GCC
I compile a 'cpp' file with the g++ (or gcc with -x c++ option) to obtain a .obj file, then I compile the remaining with VC and I have this linking error: main.obj : error LNK2019: simbolo externo "void __cdecl fmulGCC(float *,float *)" ( fmulGCC@@YAXPAM0@Z) sin resolver al que se hace referencia en la funcion _main fmul_GCC.obj : error LNK2019: simbolo externo __ZdlPv sin resolver al que se hace referencia en la funcion __Z7fmulGCCPfS_ fmul_GCC.obj : error LNK2019: simbolo externo __Znaj sin resolver al que se hace referencia en la funcion __Z7fmulGCCPfS_ Debug/mulfloat.exe : fatal error LNK1120: 3 externos sin resolver With 'c' code it w ...Show All
Visual Studio Team System Team Build status not refreshing when executed on remote build server
I have an XP VPC on which I only installed Beta 2 of Team Build and TFS Client (Team Explorer only), this is my build server and I have another VPC (W2003) with the Data, App and Client tiers. When I launch a build from VS2005 specifying my XP machine as the Build Server, it gets added to the list of builds with a status of 'Build Initializing', the build executes and deploys correctly on the build server but the status is never updated (yes, I click the refresh button). If I have alerts turned on, I only receive the 'Build Initializing' alert, I never receive any other Build Status Changed alerts or a 'Build Complete' alert. Is this a bug i ...Show All
Visual Studio Express Editions Adding Data to a certain row
Hello! I have made a DataGridView named dgImage and I have added two rows called "Name" and the other "Comment" and I have a text box named imagePath and I also have a button named btnAdd and how do I add imagePath.Text to the row "Name" and leave the column "Comment" Blank would I do something like dgImage.Columns.Add I have tried that far but I do not know what to put after .Add( can anyone help me out how to do this Thank You! hi, leave your datagrid view and deal with your datasource, the bind source will upadate your datagridview anyway add new row to your datasettable Dim text As String = TextBox1.Text Dim R ...Show All
Visual Studio Extend DataSet Designer ?
Is there anyway to extend the current DataSet designer in VS2005 I would like to add a few properties to tables and columns. The properties should show in the properties control and then be persisted to the xsd as extended properties (msprop attrribute). Seems simple enough :) If I have to create a designer by hand - it just wouldnt be worth it. Thanks As far as I know the DS designer is executable code that cannot be customized. You could make your suggestions to MS at http://lab.msdn.microsoft.com/productfeedback/Default.aspx . The other possibility is to build your own custom tool, which in th ...Show All
Visual Basic GUI or Command Line app?
I have a project and since I'm relatively new to the VS.NET environment, I have a very general question. I need advice from experienced developers on whether to create an app as a VB.NET GUI or as just a command line app. Here's basically the high level view: the app will be executed several times a day using Windows Scheduler. The application will query an internal database, then go thru our proxy/firewall and consume an external web service. Once it does the processing in the web service, it will need to terminate. There's no user interaction on this. The credentials, where necessary will be in a config file. Is there any value in creat ...Show All
