-
- Still got problem with Openfiledialog1
by chris441962
- 14 Replies
- Last post
by chris441962
- 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;}}
{\col
-
- Carsten, did you know you can lead a horse to the debugger but you can't make him/her use it?
by ReneeC
- 14 Replies
- Last post
by ReneeC
- What is it about the debugger that people find so threatening
-
- inserting image in sql 2005
by Tega
- 3 Replies
- Last post
by Suprotim Agarwal
- i have visual basic & sql 2005, i would like to insert image in database. i am using picture edit, i would like to convert system.drawing.image to byte and to database, but all my attempts would not work. i can store image using link, but i have problem using system.drawing.image.
-
- When connecting to SQL Server 2005
by LHR
- 1 Replies
- Last post
by LHR
- I get this error when I try to use website ASP. Net Configuration.
When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connection. ( provider: SQL Server Network Interfaces, error: 26 - Error Location Server/Instance Specified)
I right clicked on Data Base open modify connection clicked on
Advance prop
-
- Why does time show in Format$
by WayneSpangler
- 7 Replies
- Last post
by SJWhiteley
- I want 1/20/2007. I get 1/20/2007 4:44:45 AM. Here is the code I'm using:
Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
Dim dt As DateTimePicker = sender
Dim str As String
'TextBox1.Text = Format$("{0:d}", dt.Value.ToString)
'TextBox1.Text = Format$("{0:M d,yyyy}&
-
- Movement
by sticksnap
- 2 Replies
- Last post
by sticksnap
- It has been a while since I have last used visual basic, and I forgot how to make movement using a timer. Can someone help me
-
- Still have questions about onMouseOver window, please help ...
by Erdw
- 10 Replies
- Last post
by Erdw
- I am working with VB in Visual Web Developer Express Edition enviroment. I do not know if this is the right forum for this question, but I could not find a better one. Sorry if this is not the one.
Question:
If at this very MSDN Internet page that you are reading this question, at the very top of the page, you place your mouse on "Quick Links", a provisional window will c
-
- 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
-
- Carsten, did you know you can lead a horse to the debugger but you can't make him/her use it?
by ReneeC
- 14 Replies
- Last post
by ReneeC
- What is it about the debugger that people find so threatening
-
- How can I have my application close all files?
by furjaw
- 11 Replies
- Last post
by furjaw
- I am trying to add a feature to my application where it automatically performs a backup everytime that the user exits the program. I added the following as the last statement in the FormClosing routine:
Process.start("Backup.exe")
I am getting an error message that states that it cannot copy a file because it is in use.
How can I have the application release all files before exe
-
- NullReferenceException - dumbfounded
by EverydayHack
- 10 Replies
- Last post
by Kodavati
- Code Snippet
For Each queue1 As PrintQueue In allqs
With Me .ListBox2.Items
.Add(queue1.Name)
End With
If queue1.NumberOfJobs > 0 Then
For Each job As PrintSystemJobInfo In queue1.GetPrintJobInfoCollection
alljobs.Add(job)
Next
End If
Next
The underlined code throws a "NullReferenceException was
-
- Converting VC++7.1 project to VC++8.0, compiling .rc file cannot open afxres.h
by Jason Doucette
- 8 Replies
- Last post
by Jason Doucette
- I am converting a VC++ 7.1 project to VC++ 8.0, using plain Win32 (no MFC or any wrappers). When I compile, it reports when compiling resources (the .rc file):
fatal error RC1015: cannot open include file 'afxres.h'.
I checked to see if afxres.h existed in my original VC++ 7.1 project, and it doesn't, since I started with an empty project. So, why is it looking for it I checked the
-
- Bitmap Clone problem
by SPQR_ROME
- 13 Replies
- Last post
by nobugz
- // I have performed Bitmap Clone that seems to be ok (saved both the sorce and the clone to a file to verify).
// The problem is that when I perform
BitmapClon->LockBits(&rect,ImageLockModeRead |ImageLockModeWrite,
PixelFormat24bppRGB,&bmDataClon);
// I don't seems to get the BitmapData. When I do
strideClon = bmDataClon.Stride;
// I get a value of 0 .
-
- Is there a way to shorten this?
by TyeJae
- 9 Replies
- Last post
by tyejizzle
- Is there a way to shorten this code
Code Snippet
Private Sub CopyToolStripButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CopyToolStripButton.Click
If TextBox1.SelectedText <> "" Then
Clipboard.SetDataObject(TextBox1.SelectedText)
End If
If TextBox2.SelectedText <> "" Then
-
- I am confused by output in forms
by Zorro1267
- 4 Replies
- Last post
by Zeromus EvanGelion
- I would like my program to output results of calculations on a form, but I cannot figure out which control to put on the form that will handle multiple lines of output.
What I would like is for the output to display in something like a notepad window where one can scroll up and down to look at the results. How is this done
-
- c# Firewall?
by zerodevice
- 5 Replies
- Last post
by Paul Montagna
- Hi, i'm trying to build a firewall like AVG Firewall in c#, however, I have no experiece. Was wondering if there's any tutorial guide or some sample that could get me started thanks.
-
- Compute Column in DataGridView Control
by LTD
- 2 Replies
- Last post
by LTD
- Hello,
I am building a pretty common control where the user enters the sale price and the quantity desires, then a column should sum the total price for that item.
I have a form with a DataGridView control called "DataGridView1". It is bound to a table adapter which includes a column called "LineTotal". The other columns that should be multiplied together are called "
-
- manifest problem
by mcgin1591
- 0 Replies
- Last post
by mcgin1591
- i get an error that comes up saying cannot start application...cannot continue. the application is improperly formated. Thats as far as i can get...i start off opening the program then it will launch then it says update available. but then when i click ok thats what comes up. here is my errors and log.
PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.
-
- Chart Control
by rod 001
- 14 Replies
- Last post
by Saravanan.Chinnusamy
- I have upgraded a VB 6 application that has a chart. The upgrade was successful but when I run the application I get the following error: System.InvalidOperationException was unhandled Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Unable to get the window handle for the 'AxMSChart' control. Windowless ActiveX controls are
-
- Creating a wrapper around excel to protect data format and input
by JERiv17
- 2 Replies
- Last post
by JERiv17
- Hey folks, im traditionally a java programmer but i was faced with this problem, and i said to myself what a perfect opportunity to test out c#.net and some of the .net interoperability features. the short of the long is that i have developed a file indexing system in excel which uses specific text keys to identify document types and origins ie: Office Action docment = OA so i have several fields
-
- Making a Password form
by DadUnit
- 9 Replies
- Last post
by DadUnit
- Hello everyone, My question is regarding how I would make it where someone has to enter the right name and password inorder to bring up the next form, like they would have their own account as well and it would bring the form up when the correct info is entered. I am using VB Expresws 2005 , Thanks!
-
- How to implement User Accounts for a windows application.
by Yorick85542165
- 5 Replies
- Last post
by Figo Fei - MSFT
- I have a login in form at the moment that simply checks the inputted username and password with the sql database table to see if they are correct and if so opens another form. Now I want to create an account that tracks the user who has logged in so as to display information only relevant to them from their table as well as saving there actions to the table. Is this possible and if so is there a
-
- Visual C++ i need help
by jake294
- 6 Replies
- Last post
by jake294
- i know this might ot be the right place to do this but i cant find help anywhere else, ive started with C++ and i have visual C++ express 2005 and ive installed SDK and such, but when i try to run a program like eg
//a small c++ program
#include <iostream>
int main()
{
std::cout << "hello, world" << std::endl;
return 0;
}
all it comes
-
- Installation Cd
by Grisu70
- 2 Replies
- Last post
by Grisu70
- Hi,
does an italian ISO image of VB 2005 express exist
Or the only way to install it is to download every time all the package
Many thanks in advance
P.S. is it possible to check MSDN NG from OE
B.regards
Fabrizio
-
- Merging Multiple Word Files with C#
by Yourbeliefs
- 12 Replies
- Last post
by Yourbeliefs
- Ok.. I'm undertaking a major project with Word files. I'm looking to convert my dad's old method of writing appraisals, which is basically him writing down everything, shipping it over to his typist (who just modifies some existing documents with the new information), who then emails it back to him, and I go and throw in all the exhibits (photos, legal papers, etc.) This is not very efficient. My