-
- Cannot convert String to integer
by Straub
- 10 Replies
- Last post
by Straub
- I am trying to write the information to a database and I have run into this problem and after days of trying to figure it out I can not.. this following is the error I get..
Code Snippet System.FormatException was unhandled Message="Failed to convert parameter value from a String to a Int32." Source="System.Data" StackTrace: at System.Data.Common.DbDataAda
-
- Coping a selected text to the clipboard?
by MarcosL
- 4 Replies
- Last post
by Dave299
- Hi everyone. I have this problem: I'm trying to make the cut, copy, and paste opcions for my edit menu. i'm using a MDI from to hold the form where i want the text to be selected. so, this is the code i use: Private Sub CutToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Handles CutToolStripMenuItem.Click 'My.Computer.Clipboard.SetText(Me.ActiveMdiChild.ActiveControl.Te
-
- Display database subset in DataGridView
by GSleeves
- 4 Replies
- Last post
by GSleeves
- I am new to Visual Basic Express after having some experience with VB 6.0
I have a large database based on calendar days for several years developed with MS Access. The primary key is the date and then it contains information on where individual group members are located on each particular day.
I would like to develop a form that would have columns for each day of the selected mont
-
- Format1bppIndexed bitmaps
by Summod
- 7 Replies
- Last post
by JohnWein
- Hi Guys ,
I am trying to change the size of a given bitmap , which of the type Format1bppIndexed . But when i am saving the bitmap its getting saved as 32 Bit instead of Format1bppIndexed .
Any idea how to re size and save the bitmap as of the same type (Format1bppIndexed )
Dim bm1 As Bitmap = Image.FromFile(bitmap_input_file)
Dim wid As Integer = 100 Dim hgt A
-
- Including Folders into my solution
by TheWacoKid
- 5 Replies
- Last post
by TheWacoKid
- Hi,
Hope someone can give me some pointers here, its my 1st go with c# and my first program in years.
I've written a stand alone application that, for the best part, works fine. The solution really needs two folders integral to the program 1) Settings - where the users settings are stored (I've used coded simple text files to do this- there could be dozens of these files - depending on the u
-
- Clicking list box item
by LtForce
- 7 Replies
- Last post
by nobugz
- Hi, I'm proceeding with my basic internet explorer andnow I'm trying to make favorites system and I can't figure out how to write a script like this:
when one of the list box items is pressed
{
webBrowser1->Navigate(clicked item)
}
-
- Image Manipulation?
by Whoisit
- 2 Replies
- Last post
by Whoisit
- After using code provided by Talldude in another post to insert an image into a RTB I would like to ask a further question, the code works great, what I want to know is how after the image has been inserted can I resize the image and keep it's aspect ratio Or is it better to open a new form, resize the image, then copy the image from the picture form and into my RTB Form.
-
- Creating an Email Program
by paoloTheCool
- 1 Replies
- Last post
by Figo Fei - MSFT
- This is probably really complex =) , but I havent found a good tutorial on a email program. Currently I have a form that can send emails through my gmail account. I was wondering how you could save the email to a file after the user clicks "Send".
thanks,
paoloTheCool
-
- Running a program on startup
by paoloTheCool
- 10 Replies
- Last post
by paoloTheCool
- Ok, so I can access the start up folder through:
System.IO. DirectoryInfo ( Environment .GetFolderPath( Environment . SpecialFolder .Startup));
But I don't know two things:
1. What type of files I should put in the startup folder (just the exe) ,
and
2. How to copy the files to the Startup folder..
Thanks,
paoloTheCool
-
- Directory.Getfiles
by stevo2005
- 5 Replies
- Last post
by TimmyC
- i want to do a search for all textfiles in C:\ so i did this ListBox1.Items.AddRange(IO.Directory.GetFiles("C:\", "*.txt", IO.SearchOption.AllDirectories)) but i get an error saying "Access to the path C:\system vloume information is denied", if it was in a loop i could say on error resume next but with this you cant, is there any other way around it thanks.
-
- How to limit decimal places after a double?
by dragoncells
- 7 Replies
- Last post
by dragoncells
- Hi, everyone
E.g.
double op, Q = 0.112233445566778899, H = 100.0, k = 20000.0;
op = Q * H * k;
Can the decimal places of "op" be limited to ..... let say 6 decimal places
-
- scrolling panel as text expands
by Robert3234
- 11 Replies
- Last post
by nobugz
- Hi all, I'm using a panel to display text using the e.Graphics.DrawString function... Unfortunately, the amount of text that I will be displaying is bound to vary, and as such, I need my panel to scroll as needed. Of course I have the autoscroll property set to true, but when more text is added to the panel that can be displayed (ie, i need to use a vertical scrollbar), a scrollbar doesn't appea
-
- 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
-
- template problem!!!???
by szkn
- 1 Replies
- Last post
by Figo Fei - MSFT
- i couldn't create new project due to there is no template in new project window. it is seeming empty. in such a case, how can i create new a project in Visual C# 2005 Express Edition
-
- Running Visual Web Developer 2005 Express Edition
by Robin Grantham
- 5 Replies
- Last post
by Citizen on the earth
- Hi,
I have downloaded and installed Visual Web Developer 2005 Express Edition and have received an email saying I've registered it (even though I haven't opened the application, gone to Help and asked to register and pasted in the registration code) but I don't know how to actually run the application --- it is not showing in Start Programs as a new program and I've searched my hard disk for '
-
- display data from sql in messagebox
by BeaverMan
- 11 Replies
- Last post
by BeaverMan
- hi,got a question regarding the messagebox
what i'm doing currently is displaying data from a table in a listbox using data binding source and adapter
what i want to do next is to enable myself to select a particular data from the listbox,press another button to view the rest of the info from database where the attribute = selected value in a messagebox
i'll give an illustration if my exp
-
- capture mouse move
by new Newby
- 5 Replies
- Last post
by new Newby
- hi all
how can i capture the mouse move on my hole form
MouseMove += gcnew System::Windows::Forms::MouseEventHandler(this, &blabla::Mouse_Move
this works but as fare i enter something on this form like a datagrid its not working any longer
obwiusly as i then woud need to put the handler on the datagrid
i will have a lot of things in this form and not realy wana buble
-
- 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
-
- misunderstood code
by emeka584851
- 4 Replies
- Last post
by spotty
- Hi Everyone,
I was just going through the VBEE 2005 video from learnvisualstudio.net,I noticed Bob Tabor naming the text boxes. IĄŻll like to know why he had to do that. Also going through the visual basic 2005 free e-book given to registered VB Express Edition I noticed the code on page 7 with the plus(+) operator. WhatĄŻs the function of the operator in those line of codes
Could s
-
- Help with 1 3/4 x 4 3/4
by ang3la
- 6 Replies
- Last post
by Stephen020960
- i create a datagridview ( size column ) , and i want to insert 1 3/4 x 2 3/4 into the column in datagridview then i want it to calculate the result . How do i do this what datatype should i set in my database finally i create a total column and should i put "size*price" in the expression code itemno size price total -------- ------- -------
-
- importing favorites
by mcgin1591
- 14 Replies
- Last post
by ReneeC
- I was wondering if you can add a button into your own webbrowser, and make it import internet explorer favorites. i was thinking maybe you can get the files from the user in the favorites folder. any ideas of code on how to do this
-
- Resize images in Visual Basic
by arto1astro
- 14 Replies
- Last post
by jo0ls
- Hello,
Can anybody tell me how do I resize a image in Visual Basic I mean, I have an image with 800x600 px and I want to resize it to 400x300 px and then save it in a new file... The saving part I know how, but I dont know how to resize the image... All this in VB2005.
Can anybody help me
Thank you.
-
- A Bunch of errors when Making MediaPlayer, straight from tut!??
by MazterzDemon
- 10 Replies
- Last post
by MazterzDemon
- I folowed the entire tutorial, for wmp, and i got teh COM and everything, but a list off errors show up after i insert the code, and it wont build.
heres my code help me correct please.. (i redid the hole thing and posted a new code, but now i get only 23 errors)
Code Snippet
Option Explicit On
Dim GenresTypes
Dim Min As Integer
Dim Sec As Integer
Dim Fil
-
- Press the enter key in a text box
by Prometheus666
- 3 Replies
- Last post
by jrboddie
- I'v e got an event handler for a text box that displays a message box of the text when you press enter.
Code Snippet
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) MessageBox.Show(textBox1.Text); } Do I really have to do this type conversion just to make a comparsion Isn't that bad I've seen e.KeyCode u
-
- c# express and c++ express on same installation?
by BabaG
- 3 Replies
- Last post
by jrboddie
- i've been doing a little work on visual studio express c# but am now taking a class in c/c++ for which it would be much more convenient to be able to install visual studio express c++ on the same laptop. can this be done or do they want to be exclusive of one another thanks, BabaG