-
- How to obtain a specific file name using stream / file readers?
by Rashar
- 5 Replies
- Last post
by Michael Letterle
- Hello,
I have a folder that contains text files, but I want my code to read a specifc text file based on a name.
So if I have files Text1.txt, Text2.txt, Text3.txt, ABCText.txt, I want my program to look into a folder, scan all the files, and when it comes to file ABCText.txt, then proceed with the rest of code.
I tried using If System.IO.File.Exists(*ABC) but that does not se
-
- invalidate and refresh???
by joeh100
- 11 Replies
- Last post
by nobugz
- I've got a loop with a call to "invalidate" in it and it does not get called until after the loop has finished. Is this because I am calling it faster than it can finish the previous call If I replace it with a call to "refresh" it does get called, but strangely it gets called twice. I put a counter in the "paint" method and it always shows twice the number of calls
-
- Is it possible to draw lines in a ListBox
by DBurr
- 3 Replies
- Last post
by DBurr
- I have a Calendar application where I show a series of activities for each day in a given month. The number of activities will vary from none to maybe 10. The form would be more readable if I can separate each day with a horizontal line. The listbox is part of an mdiChildForm and is scrollable. Does a repaint come in to any of this.
Question 1. Is this possible
Question 2. If so how
-
- Keyboard Events
by Programmer by day
- 5 Replies
- Last post
by Dave299
- Hi there Im making a program and would like to be able to make form1 visible by pressing the alt and shift key, but I have no idea how to do it. I searched around for a bit but couldn't make any sense of it so if any of you kind folks would help me out, it would be greatly appreciated. thanks
-
- Code Error
by Anonymousyyyy
- 5 Replies
- Last post
by spotty
- I was wondering why the followingcode has anerror, in line: each ( Dim txt as TextBox in Me )
Dim sfd As New SaveFileDialog
Dim str As String = ""
Dim txt As TextBox
'add the types you would like below
sfd.Filter = "Budget Files (*.bgt)|*.txt|All files (*.*)|*.*"
sfd.Title = "Title"
'show dialog
sfd.Show
-
- Hello World.
by sanjunew
- 5 Replies
- Last post
by Ejele012
- Hello everybody,
I am a begginer and am trying to say "Hello world" thru program using Visual C++ 2005 Express Edition. I get these errors when compiled.
1>------ Build started: Project: hello1, Configuration: Debug Win32 ------
1>Compiling...
1>hellocode.cpp
1>.\hellocode.cpp(7) : fatal error C1010: unexpected end of file while looking for precompiled
-
- Animation - what method(s) should i use to animate my windows application
by TheWacoKid
- 7 Replies
- Last post
by jrboddie
- Hi,
I've got a windows application up, running and available using VS2005c# - (mainly thanks to you people in these forums).
I'm just working through the ideas for phase 2 of the application - and I could do with some pointers on animation - cos there seems to be an awful lot of different ways/technologies to acheive the same thing. (I'm not familiar with any of it btw - but I dont mind a bi
-
- System.Windows.Media
by jimmygyuma
- 10 Replies
- Last post
by jrboddie
- I don't seem to have System.Windows.Media in VC# Express, is that something you have to pay the big bucks for I need the RadialGradientBrush, which seems to do exactly what I need to do. Basically what I'm trying to do is a gradient (in a rectangle) with a focus point for the first color and the gradient radiates out in all directions from that point. The examples tell how to do it with a PathGrad
-
- Professional Design
by Jon1s
- 6 Replies
- Last post
by Andrew DeVaughn
- Hi,
I'm getting to grips with the programming but can't figure out how the pro's design such professional looking apps, what are the secrets
Are there any good tutorials/ vb express addons to aid in the design process Please see the attached link, how is the rounded edge box created
http://msdn.microsoft.com/vstudio/express/images/moviesk.png
Any good design tips
-
- Help to debug chess engine source code
by Albitexx
- 1 Replies
- Last post
by Andreas Johansson
- Help to play debug in C++ of Crafty.
I have downloaded Visual C++.
But when I try to play the debug and the compilation of the source queues, it comes me
display the following bug:
- "
1>------beginning generation: Project: ProvaC5, Config: Debug Win32------
1>Compilazione in progress...
1>analyze.c
1>c:\documents and settings\administrator\my documents\cr
-
- Splash Screen
by mNero
- 8 Replies
- Last post
by JohnWein
- my splashsreen is there only for a little time... how to prolong that
-
- User Defined Exception handling
by novice372
- 2 Replies
- Last post
by novice372
- using System; using System.Collections.Generic; using System.Text; namespace exceptionhandling.cs { class countzero { static void Main(string[] args) { calculate calc = new calculate(); try { calc.DoAverage(); } catch (countiszeroexception e) { Console.WriteLine("countiszeroexception: {0}", e.Message); } }
-
- Database Calls
by dustinto
- 8 Replies
- Last post
by DMan1
- I am working with the API of another software company and I am at the point where I am able to click on something from there activex control and send something to VB saying what I clicked on...I am just assigning the text in a textbox for testing purposes. I would like to use this text to search a new database I am making and when it finds its be able to bind all the data that is on that row on th
-
- Open Saved projects and Solutions
by Simple Simon
- 2 Replies
- Last post
by Simple Simon
- Hi All,
I am trying to open a saved project in Visual C# Express Edition but all that happens is it opens the solution in the solution explorer panel but doesn't open another tab and just stays on the start tab. If I press F5 the project runs so its open but I can't change anything on it.
I've tried uninstalling and reinstalling but still the same problems.
I'm running Windows Vista Ultim
-
- Writing/Reading function
by u8sand
- 8 Replies
- Last post
by einaros
- They may be sort of newbie questions but:
How would you make somthing to write to a .txt or read from a .txt
like. Lets say you had a bank. And it would save the amount of money you have in the bank and the next time you ran the program you would still have the same amount of money in the bank as you did before.
Or if you had a username and password for the bank. you would right it on a n
-
- How to run my exe file within VC++ ?
by shadow_shooter
- 2 Replies
- Last post
by shadow_shooter
- Hello Everyone, I've just started to use Visual C++ 2005, but before, I was using Visual Studio 6. I'm a bit newbie and not sure how to handle whole things those I hadn't any problem in the prior version. I'm writing a simple program and want to see its exe output within the Visual C++. It's a Console Application and after compiling the code, as I did in VS 6, I want to see the output of the code
-
- How to distinguish different windows in explorer.exe process
by dvkCH
- 6 Replies
- Last post
by Tall Dude
- Hello, I'm making a program which displays 2 WindowsExplorer windows, gets there handles to become there parent and make a dual explorer view in a my form. Well, my problem is this one : I created a new process ( Dim AppProcess As Process ) to run explorer.exe. But When i launch it and save the MainWindowsHandle32 value my program crashs with a "The process has exited" error message. I'm
-
- Help!!! This code is killing my Computer.
by AngelinaPerez
- 14 Replies
- Last post
by ReneeC
- I am writing to kindly to ask you guys for help. I have been working with the lines of code below which merely locking up and disabling the computer: Private Sub Alert_btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Alert_btn.Click Dim conn As New SqlClient.SqlConnection(My.Settings.CSTConnectionString) Try If conn.State <> ConnectionState.Open Th
-
- InputBox won't run from a shared Network Location
by VBTeacher
- 2 Replies
- Last post
by VBTeacher
- I get the following message with the InputBox:
System.Resources.MissingManifestResourceException was unhandled Message="Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Microsoft.VisualBasic.CompilerServices.VBInputBox.resources" was correctly embedded or linked into assembly "Microsoft.VisualBasic" at compile time,
-
- applicaton event log event ID 0
by gg1
- 2 Replies
- Last post
by gg1
- what can I do to fix this problem . the time of occurrence is long after I started Vb .net studio and opened an project. I actually I was not working with vb but working with something else
the event has occurred more than once in the last week
Event Type: Error Event Source: .NET Runtime Event Category: None Event ID: 0 Date: 2007-01-05 Time: 15:23:05 User: N/A Computer: IEI-A64 Description
-
- %n format
by GJRoyce
- 2 Replies
- Last post
by GJRoyce
- I know how to use printf("Some String %s", "and some more") to produce output the output "Some String and some more" in regular c++, but what I want to do is change the text of a label in vc++ using the same tatic and I'm not having much luck.
What I want to do is something like this:
Code Snippet
this->label1->text = "Blah Blah Blah %
-
- Timer won't fire
by WayneSpangler
- 14 Replies
- Last post
by ReneeC
- I have a timer on form1 with the timer_tick set up like this:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick teaTime = False MessageBox.Show("End timer") End Sub
In a module I have:
&nb
-
- array (x,y) string
by nasosan
- 2 Replies
- Last post
by nasosan
- how i dim this variable
dim pippo as array
x and y are integer.. but pippo contain a string....
thank's...
-
- How to switch between in-line code view and .net code-behind view
by maraach
- 2 Replies
- Last post
by Robin Saacks
- Good morning everyone, This may be an extremely simple question to answer, and if so I hope that I haven't wasted your time. I have quite a bit of experience programming windows applications with .net 2003, including web services but my knowledge of front end web development is extremely limited. Recently my wife decided she would like to try her hand at programming a website. With this in mind w
-
- Printing error in VB express: Prop Res DLL not loaded
by GHanshaw
- 4 Replies
- Last post
by GHanshaw
- When I try to print using VB Express I get an error stating:
"prop res dll not loaded". Can anyone shed any light on where this has come from. The error doesn't always occur in the programs during the testing stage and i have managed to create some rather nice looking output. However, when i publish the forms I get the error again. I even get the same error if I publish the sample