Larry3228's Q&A profile
Visual Basic How to use openfiledialog with multiselect
Hi, I am making a program that takes multiple files to create a single one. I use an openfiledialog to let the user select multiple files (myOpenFileDialog.Multiselect = true). Then, I want to read and validate each of these file. The algorithm would be something like: Do while every file has been validated Readfile Validatefile Loop My problems are : How can I get every file name and path individually, so I could open them one by one How can I get the number of files sellected by the user Thanks! Very helpfull! Thanks (its cool to have people answering in forums when you are alone to learn all that stuff... ) ...Show All
Visual Studio Team System QueryHistory and invalid dates
I am trying to call QueryHistory to get all changesets between two dates. I am passing a start date that is before the TFS server was set up, ie it should be invalid. I am trapping for DateVersionSpecBeforeBeginningOfRepositoryException during this call. However, the call itself does not throw an exception. It's only when I try to enumerate through the changesets in a separate client app that this exception is thrown. This seems like wierd behaviour. Shouldn't the QueryHistory throw this exception Or I am doing something wrong Here's my code: System.Collections.IEnumerable changesets = null; try { changesets = versionControl.QueryHistory(baseFolder, VersionSpec.ParseSingleSpec(startDateString, null), 0, ...Show All
Visual Studio How to disable the Parameter prompt for Crystal Report using VB.Net
I'm having a problem whereby I can't disable the parameter prompting in VB.Net with the following codes:- Dim crPDV As ParameterDiscreteValue Dim crPFD As ParameterFieldDefinitions Dim crPFL As ParameterFieldDefinition Dim crPV As ParameterValues crPFD = CR.DataDefinition.ParameterFields crPFL = crPFD.Item("paramterName") crPV = crPFL.CurrentValues crPDV = New CrystalDecisions.Shared.ParameterDiscreteValue crPDV.Value = valueToPass crPV.Add(crPDV) crPFL.ApplyCurrentValues(crPV) CrystalReportViewer1.ReportSource = Application.StartupPath & "\TheReport.rpt" CrystalReportViewer1.Show() Any error with the above codes OR do i need to add any additional code(s) that able for me to pass the parameter value direc ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct Answers For A Beginer
Dear, I Am A Beginer In Game Development, But Professional In C# And C++.Net 2005. I Want To Start Learning 3D Game Development Where I Have 2 Main Questions: 1- C++, C++.Net 2005, Or C# Is The Fastest And The Powerfull Language For Creating 3D Application 2- What Is The Graphic Library I Have To Learn And What Are The Difference Between XNA, DirectX, And XNA Game Studio I Hope To Help Me In My 1st Steps. Thx Alot Dear, What I Want First Is To Be 1 Of The Professional 3D Game Developers. Second, I Want To Build My Own Virtual Reality System Which Represent Me And My Friends And Allow Us To Play Together Like "The Sims" Game, But Over A Network. ...Show All
Visual C# C# to C++ Migration Difficulty?
I am currently learning C# mainly for the interests of learning an object orientated language early (I'm only 15), but also since the announcement that XNA games can be made for the Xbox 360 I'm interested in that as well. Since the games industry uses C++ in their games and I'm aiming for a career in either video game programming or just programming in general, how easy is it to adapt to C++ from C#, Or are there no significant changes in structure, syntax etc Hello All. mts2325: Well, the short answer is : Not nearly as easy as going the other way! Going from C++ to C#, there are quite a few things that you don't have to worry about anymore. Conversely, going from C# to C++, there are a lot of things that you have to wor ...Show All
Visual Basic save data after program closes
i need a user updatable variable that will save even after the program closes. What is the best way to do that there are many ways you can either store it in a text file, or in an xml file, or serialize a class and save that, then deserialize it back, or use the settings class to save your settings: http://msdn2.microsoft.com/en-us/library/saa62613.aspx depends entirely how you want to proceed and what you wish to do. ...Show All
Visual Studio Express Editions Still got problem with Openfiledialog1
Hello. Sorry to botther you again. am still having problems with OpenFileDialog1 when i open a file in RichTextBox, the file opens ok, but the problem is with Rich Text Files. when I open a Rich Text file i get garbage in the file as well, like this: {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fprq1\fcharset0 Courier New;}{\f1\fswiss\fcharset0 Arial;}} {\colortbl ;\red192\green192\blue192;\red0\green0\blue255;} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\highlight1\f0\fs20 \cf2 Private\cf0 \cf2 Sub\cf0 comboBox1_KeyPress(\cf2 ByVal\cf0 sender \cf2 As\cf0 System.Object, \cf2 ByVal\cf0 e \cf2 As\cf0 System.Windows.Forms.KeyPressEventArgs) \cf2 Handles\cf0 ComboBox1.KeyPress\par \cf2 ...Show All
SQL Server SQL Server does not allow remote connections
Hello , The problem is that we are having Problem while making the remote Connection to the Sql Server 2005 Basically We are having a problem connecting to SQL2005 through a package remotely. when we try to connect to a remote data base, we get the following error [Connection manager "CRA LRRS Development DB"] Error: An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Login timeout expired". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: " An error has occurred while establishing a connection to the server. When ...Show All
Visual Studio Tools for Office Data validation code embedded thru .Net Program
Hi, I have to develop a system that will generate excel sheets as the templates based on user selected attributes (column headers). All these attributes have rules, e.g. attribute ColumnA has the rules that only numbers are allowed in it's column and these numbers must be >0 and <255. All the attributes will be defined in a database table and user will select these attributes to make an excel sheet template. After that user will save that template in a public shared folder. All the above steps will be developed in a .NET program written with VB.NET. I would like to know how can I generate excel sheet templates based on user selected attributes and embed code/macro (whatever possible) to validate user's input values to these columns. ...Show All
.NET Development Error in Addition of Double Variables
Hi, This is Aravind. I got an error due to addition of two varibles which is declared as "Double". It shows the wrong sum up. Sample Code is as below: Dim amt1, amt2, z As Double z = 0.0 amt1 = 74.68 amt2 = 168.49 z = amt1 + amt2 The Answer should be 243.17 But ...It shows "243.17000000000002"..... Why it happens ....it will leads to Big problem.... when summing up the Money values.... Can u please clarify this.... Its urgent.... Regards Aravindkumar.P You might be able to work around this problem by properly formatting the computation result when you display or print it. Use something like this: Dim amt1 As Dou ...Show All
Windows Forms How to change Text property of label control from a thread
Hi Can anybody help me to change the text property of label control from a thread.(when a thread is running I need to change the Text property of Label) Thanks vizai Hi, Check the below code.. this would solve the problem... Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim objThread As New System.Threading.Thread( AddressOf changeLabelText) objthread.Start() End Sub Private Sub changeLabelText() Label1.Text = "New Text" End Sub ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Differences between Texture2D.FromFile() & Content.Load<Texture2D>
Hello, I'm a new XNA and C# programmer and wondered if someone could explain to me the difference between using Texture2D.FromFile() or Content.Load<Texture2D> to load texture resources into an application Is there a benefit to using one approach over the other I looked into the XNA documentation but couldn't find any documentation the really differnetiated between the two approaches Thanks in advance for any insight, Kevin Texture2D.FromFile - Load a texture from a given file name. Real easy to use, and more dynamic. Content doesn't have to be included in the project, and recompiled, etc... Content.Load<Texture2D> - Load a texture by a key/tag name. This requires the texture ...Show All
Visual Basic Clueless Beginner: Expert System design - Suitable Environment?
Kind Helpers, I apologise for being at sea and hope that I am posting in the right category! Using Natural Language Processing, I would like to design a prototype system in which users will enter their solutions to some specified problems and the system will analyse and categorize these solutions. Kind of like a problem-specificWikepedia.The database grows as more and more solutions are fed. (My Programming Background: Some VB and C++) This is just an idea in my head which I am committed to materialising. I want to solve this in an Object Oriented way. I understand that I can use VB.Net as a Front-End and MS ACCESS as the Back-End. The trouble is I am completely unfamiliar with Parsing and do not know which Program ...Show All
Software Development for Windows Vista Where can I host the runtime in a SOA based environment?
Hello everybody, I am planning to use Listen, Delay and event-based Activities in a sequential workflow like the one in the hands on labs WF HOLD01. In this case the manager can approve the report, otherwise it will be escalated if a certain time-limit is exceeded... Now my question, how and where can I host the runtime if my architecture consists of web services (or respectively wcf in aspnetcompatibility mode) and the workflows take several days So far I hosted the runtime in an Application variable and after each service request I saved the instances through the manualworkflowscheduler service in the database, but now I want to add a LISTEN Activity and inside a DELAY Activity which executes after 3 days, so I must not save th ...Show All
SQL Server Using Bulk Insert with SQL Server 2005
I have a web page that prompts a user to select a csv file. Using a Bulk Insert the data is loaded into a SQL Server 2005 table. I have been using the Bulk Insert with SQL Server 200 with no problems, but with 2005 I am getting the error "You do not have permission to use the bulk load statement". My web.config file has the following connection string: [code] <add key="connectionString" value="Server=(local);Database=BroadCastOne;trusted_connection=true" /> [/code] I've given bulkAdmin role to the ASPNET user. It's still not working. What am I doing wrong Any help is greatly appreciated, Ninel Make sure the account that logged in SQL and performed BULK insert ...Show All
