-
- Adding a timer to a windows service created in vb.net
by andyedw
- 10 Replies
- Last post
by cafeasp
- I have created and installed a Windows service in vb.net - there was no problem there.
I want to add a timer to this service so I am able to run some code at a specified interval and am unable to get this to work.
I have dropped a timer from the component part of the toolbox and on the OnStart or the service added:
tmrData.Enabled = True tmrData.Interval = 5000 tmrData.Start()
A
-
- Open new form
by frist44
- 6 Replies
- Last post
by Zamial
- I apologize for the amateur nature of this question, but I'm coming from the web world and just getting into the windows side. I have a form that acts as the "home page" per se. I would liket one of the commands to open up a new form that i have created. So in the menu click event, i have:
AddSubject addSubject = new AddSubject ();
addSubject.Show();
However, if i click
-
- Winform cold startup time in .Net 2
by Robert Jeppesen
- 7 Replies
- Last post
by Stefan Grasmann
- Having just moved to .Net2 and Visual Studio 2005 (release version), I'm porting my WinForms app to the new environment. I'm very concerned about cold startup time for a WinForms app. It's orders of magnitude slower than in 2003. I tried NGEN'ing the app. This made it start slightly faster but still a lot slower than the non-ngen'ed 2003 app. I realize that this will improve when more apps
-
- HTML Text Box
by AFLood
- 1 Replies
- Last post
by nobugz
- Does anyone know if WinForms provides any method of displaying formatted text in a text box, while still allowing the text to be editable
-
- ListView Deselects Item on Click
by Davidsfg
- 2 Replies
- Last post
by nobugz
- When I have an item selected in the listview and the user clicks on an area of the listview other than an item the system deselects the item in the listview. It keeps the FocussedItem, but SelectedItem is no longer available. Does anyone know how to stop this from occuring.
Thanks for everyones help.
-
- The process cannot access the file because it is being used by another process?
by cygnusx
- 5 Replies
- Last post
by nobugz
- When i run my application i need to retrieve some information from a text file and i do that through File.AppendAllText() method.The problem is that on the next run(but not always) i receive the following error "The process cannot access the file 'File' because it is being used by another process."Even if i exit my application it's still in Task Manager,and i can terminate it from there.
-
- Combobox
by hooman.tadbiri
- 5 Replies
- Last post
by hooman.tadbiri
- Hi! First I want to set my program to expand the combobox when a person started writing in it. How can I do it And second is how can I show and item which is needed (E.g. I have a combo box with 5 items; ¡®a¡¯, ¡®ab¡¯, ¡®abc¡¯, ¡®abcd¡¯ and ¡®abcde¡¯. When a user taped ¡®ab¡¯ I want to select it.) Exactly I need the system which visual studio uses when the user is typing code, but just for a combobox in my fo
-
- uploading and downloading files using modem
by Jesuraj.J
- 4 Replies
- Last post
by Jesuraj.J
- hi,
i am trying to upload and download files via modem(dial-up method)
i am doing this as a web application in ASP.Net 2.0 codebehind as C#
i want to know how to dial a modem in C# coding and connect the remote modem with user name and password
note: i am able to dial a modem with telephone number, but couldn't connect the remote modem
can any one help me regardi
-
- progressbar during loading a bitmap
by Frans Vander Meiren
- 1 Replies
- Last post
by Galin Iliev
- Hey
I would like to load a huge bitmap (about 200MB or even more). For this I use the known statement:
System.Drawing.Bitmap bm = new System.Drawing.Bitmap( filename );
This runs well but is there any possibility to show a progressbar during the load process
Thanks
-
- clicking a folder while searching through Windows Explorer brings up Search Page
by Dudets
- 2 Replies
- Last post
by Dudets
- Every time I'm using Windows Explorer to view some files, and click on a folder it brings up the search function instead of exploring it. How do I change it back to exploring the folder instead of searching the folder when I click it
-
- Form won't click - is this another change from VB4?
by Andrus42
- 4 Replies
- Last post
by Andrus42
- Probably another stupid question (all I ever ask!). My VB4 program allowed the user to click the background of the form to alter the background picture. In VBS, I put code into form event "click", run the program and the code does absolutely nothing. Put the identical code onto a button or label and it works fine. Does this mean that VBS won't let you click the form itself (The 'click' e
-
- Automatic backdate!!!?
by RichLeyshon
- 0 Replies
- Last post
by RichLeyshon
- Okay, this is weird.
Just published a Click Once deployment of my application - version 1.4.0.2. It is set to auto-update.
(After publishing, I use a script to Dotfuscate the assembly, run sn then open MageUI to create new manifests with correct hashes)
It installs okay. When I run it, it decides to update itself from the web.
Problem is, the web version is 1.4.0.0 i.e.
-
- VB2005 Safe picture to ms access database
by Bodylojohn
- 2 Replies
- Last post
by Bodylojohn
- Hello,
Can anybody tell me how i can save a picture to an access database and show it on my form.
Thanks in advance..
-
- Creating a install package.
by QWERTYtech
- 4 Replies
- Last post
by Lexpa Team
- Okay, the following is what I want to learn to do.
1. I want to create an installer for my program that I have. I know how to use the built in Publisher to create an installer but I want more features. I want the user to be prompted to enter a Product key, that has to be verified. Can anyone help me PLEASE!
-
- Invalid icon for shortcut
by akdpr
- 1 Replies
- Last post
by Brendan Grant
- I have created a deployment project and create short cuts fro desk top and Program menu. When I tried to add and Icon for those as say in msdn it gives the Compilation error
steps in msdn
add the icon file to the project
select properties for short cut
browse and select the icon
"Invalid icon for shortcut "
any idea,
thanks in advance.
-
- How to exclude file in Debug/Release configuration
by Joachim Wang
- 2 Replies
- Last post
by Joachim Wang
- When my program run,the debug mode need debug.txt while release mode need release.txt.
In vs2005,I create a setup project,add these two files,now I need exculde debug.txt in release build,when I choose 'True
' in the property 'Exclude' of 'debug.txt file Installation Properties',both of debug and release configuration exclude the file.
What should I do for this
Thanks.
-
- OnSizeChanged called twice when changing the property Size on a UserControl
by MickeBoyKing
- 10 Replies
- Last post
by MickeBoyKing
- Hello!
I have created a UserControl and load it in the constructor of a Form.
UserControl c;
public Form1()
{
System.Reflection. Assembly assembly;
assembly = System.Reflection. Assembly .LoadFrom( "File with UserControl" );
Type t = assembly.GetType( "The type of the Control" );
c = ( UserControl ) Activator .CreateInstance(t);
c.Locati
-
- Display additional cells on edit
by JBomb
- 0 Replies
- Last post
by JBomb
- We have a grid view that shows the primary information the user needs to see. I need it to display a 2nd row when they click on the row and allow them to edit other cells of information. Very similar to MS Money or Quicken in that you're looking at a summary view but when you click on the row, it drops down to show and expanded view with additional cells that can be edited.
It seems somewhat s
-
- Design Time or Compiler Bug? Form Resizing But Not Resizing Anchored Controls
by RHartness
- 4 Replies
- Last post
by JOZZ
- I'm pretty sure this is either a bug but just in case I figured I'd ask my fellow developers.
I have a WinForm that has a max size (735,1200) and a minimum size (735, 554) specified. On this form is a series of panels that contain all of the user modifiable contols. These panels are anchored to the various sides of the form and when the form grows or shrinks the anchoring works properly.
-
- Reusing Pen with DashStyle set to other than Solid sometimes results in OutOfMemoryException when Graphics is rotated
by efbiaiinzinz
- 6 Replies
- Last post
by nobugz
- We are currently developing an application for shape manipulation on a canvas, where objects are drawn on the surface of Control in OnPaint method. At the beginning we didn't include shape rotating possibilities and all was working well when drawing any amount of objects at any locations. Then we added rotation possibilities by using Graphics.RotateTransform and Graphics.TranslateTransform.
All
-
- Remove rows in datagridview and save the dataset xml file
by Yustme
- 6 Replies
- Last post
by Yustme
- Hi, I made an even handler for removed rows in the datagridview. The datagridview gets its data from an xml file. When a row is removed in the datagridview, the row should be removed in the dataset as well. This is my event handler in constructor: this.grdTest.RowsRemoved += new DataGridViewRowsRemovedEventHandler(grdTest_RowsRemoved); This is the code in that event handler: void grdTest_RowsRemov
-
- Custom Updates Problem
by jaime.rq
- 14 Replies
- Last post
by SLang
- I am using ClickOnce, but the application checks for updates by it self, using manual update check. The problem is that if the user doesn't update the application; the next time, when the application starts, it starts like be configure to check for updates before start, so the user get a message from ClickOnce that tells to him that a new version is avaible. How can I avoid this behavior and confi
-
- Adding a TableAdapter to DataSet
by bpeikes
- 2 Replies
- Last post
by bpeikes
- Several questions: 1) If I have a Typed Dataset as part of my project, is there anyway to add a Table Adapter to an existing DataTable in the visual designer It seems to be greyed out. 2) I would ideally like to separate my dataset and tableadapters in separate classes. It there any way to do that using the visual designer 3) I drag a stored procedure onto the dataset and it creates a table and a
-
- Data Forms Wizard is missing
by SANDYROSENBERG
- 2 Replies
- Last post
by SANDYROSENBERG
- I am using Visual Studio 2005 with Tools for Office. I have installed service pack 1. I would like to use the forms wizard, but it isn't where it is supposed to be. I create a new project as a Windows application. Then I click on Add New Item. The window that comes up has many templates, but not the Forms Wizard. Can anyone help me to find or install it
-
- RichTextBox Scrollbars
by Demitrius Wheelwright
- 2 Replies
- Last post
by Demitrius Wheelwright
- Ok. Is there any Event Handler to check to see if the RichTextBox Scrollbar is visible Or anyway in that matter to check to see if the scrollbar is visible