-
- Adding up
by Morn
- 5 Replies
- Last post
by Bruno Yu - MSFT
- Hi there and first of all Merry Christmas and Seasons Greetings to you all! I am having a mental blank which is hindering my completing a project that I am working on for uni. I am developing a travel agent booking system that allows a customer to register and book themselves and multiple other people to go on holiday. The cost of the destinations are all the same however costs do vary depending o
-
- How to add Image property to a TextBox please?
by John Oliver (UK&am
- 0 Replies
- Last post
by John Oliver (UK&am
- Hi,
Excuse my ignorance about custom controls but as a label and a textbox are under
System.Windows.Forms how can i add the IMAGE property to a textbox please
I tried.>>
Public Class custTextBox
Inherits System.Windows.Forms.TextBox
Private someImage As Image
Public Property immage() As Image
Get
Return someImage
End Get
-
- Windows Service Monitoring Problem On Vista
by Samer Selo
- 8 Replies
- Last post
by Samer Selo
- I've built a small utility to monitor the status of SQL Server Express and start/stop it and it works nicely on Windows XP SP2 and fuctioning great but when I've tested it on windows vista it monitors the service ok but I can't start/stop the service any more unless I use the Run as administrator command to start my tool
I've used the folowing code to test my rights on windows
My .User.IsIn
-
- How to get computer name
by Penicillin
- 13 Replies
- Last post
by Le Quang
- Hello
How can I get my computer name
Thanks
-
- charts charts charts
by MarkH001
- 2 Replies
- Last post
by JohnWein
- I got excited about Visual Studio .net 2005 until I couldnt find a way to make chart (without spending an additional 800 bucks on a add on). I just want to make xy plots. This cant be that hard. With all this fancy software links and lingo ... what is so hard about an xy plot Can i just use the office chart 10 like I do in vba and excel Is this a trick what am I missing here.
Thanks for a
-
- Complex Structure at Design-Time
by XGuarden
- 14 Replies
- Last post
by Spidermans_DarkSide - VSIP
- Hi, I have a little problem. I declare my variable like this....
Private mysize As size Public Property ThisSize() As size Get Return mysize End Get Set(ByVal value As size) mysize = value End Set End Property
That work weel and add size property to my control at design time. I look on msdn and I see that size is a structure. I try to make my own structure or
-
- VB Variables (Reference)
by LJM89
- 5 Replies
- Last post
by Alex Moura
- not sure how to put this, but if i do a
Code Block
Dim xNode As XmlNode = xmlDataDoc.SelectSingleNode(XPath) when i do
Code Block
xNode = Something xmlDataDoc.SelectSingleNode(XPath) does not change right (think so) so i must do this right
Code Block
xmlDataDoc.SelectSingleNode(XPath).Value = Something but what can i do if i want to do it dir
-
- Help Please
by SparkyCH
- 4 Replies
- Last post
by Chris Dunaway
- [First Project]
This stores information about a book. Have created an object that contains the appropriate fields. Using a binary formatter save the information to a text file.
Code Snippet
Option Strict On
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Public Class Form1
Inherit
-
- Problem during testing VB in Visual Studio 2008 Beta 2
by RichParker
- 0 Replies
- Last post
by RichParker
- I am having a strange problem using a split container in VB 2008.
I am trying to use a double-click on Panel1 and Panel2 of a Split Container to either colapse or expand Panel1 of the Split Container. The code actually works OK, but the Forms Designer displays error messages when the code is in the program. If I comment the code out, the error messages goes away, but then I lose the code's
-
- Dynamically load class library (.dll)
by Alastair Q
- 6 Replies
- Last post
by nobugz
- Hi there, I currently have a a button and when you click the button it trys to load the class library which is referenced. This is how I currently load a class library in hard code:
Code Block
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Load Library from a reference
Dim obj1 As New MyAssembly1.Class1()
End sub I
-
- In gridview how to update recorde in gridview and specific record also delete!!!!UrGent Reply needed
by Painless
- 1 Replies
- Last post
by DigBoy2000
-
- Lost the Fixed3D border style
by Pomchip
- 8 Replies
- Last post
by Pomchip
- Hello everyone, I am a little puzzled about the appearance of the forms of my VB applications. It looks to me as if my computer has lost the ability to display the Fixed3D border style in all my textboxes, datagridview, listviews, etc... This is strange because the display was OK a couple of days ago. Does anyone has an idea about how to solve this problem Thank you in advance.
-
- Add a shape to a form
by GrandpaB
- 3 Replies
- Last post
by JohnHart_MSFT
- Good afternoon,
I'm having difficulty adding a shape to a form. Here is my code:
Code Block
Dim Tkn As Microsoft.VisualBasic.PowerPacks.OvalShape
With Tkn
.Size = New Size(50, 50)
.FillColor = Color.Azure
.BackStyle = PowerPacks.BackStyle.Opaque
.Location = New Point(55, 75)
End With
In the "With Tkn" statement, VB whin
-
- Deleting Rows in a Datatable
by mikescode
- 4 Replies
- Last post
by mikescode
- I have a datagrid bound to the datatable in .net 1.1.
In the code I have a 'Delete Row' context menu pop up when the grid's row header is right clicked. In the mouse event I capture the grid's row number. In the context menu click event I ask if the row should be deleted. When the user responds 'Yes', I delete the row using the datatable.delete(Row) method.
Problem is, after an initi
-
- rich text box control cannot paste.
by Rajesh batchu
- 14 Replies
- Last post
by Rajesh batchu
- rich text box control cannot paste
when i select any thing(it may be image or text from internet explorer) and paste it in a msword it has got pasted including image and text
when i do the same copy paste in my application which contain the richtextbox control i am unable to paste the images and i can paste only the links of the images
can any one help me in pasting the images and tex
-
- Questions about label
by Penicillin
- 14 Replies
- Last post
by onh1986
- Hello
In VB6, I can make label transparent and I can put label in picture box so label can't get out of it.
How can I make that in VB 2005
Thanks
-
- how to prevent the delete key in combobox
by GRK
- 2 Replies
- Last post
by GRK
- Hi
can any one suggest how to prevent the user from deleting the text in the combobox by pressing the delete key.
I tried with e.handled= true in keypress event and others also but it is not working.
regards
GRK
-
- Faied to import the ActiveX control. (Load Macromedia Flash)?
by cROCKed
- 10 Replies
- Last post
by Yan M Aung
- i have some problems about to import Shockwave Flash Object. I can adding to shockwave flash object to toolbox. But When i try to Drag and drop flash object to my winapp project, i get this error msg " Faied to import the ActiveX control. "
i search abouth some things about this error. i find some answers samples Start>Run> Regsrvr dll registering and AxShockwaveFlashObjects bu
-
- MSChart in VS/VB.Net 2005
by John Howard
- 4 Replies
- Last post
by AdeptBlue
- How do I get the MSChart control into my tool box in VS/VB.Net 2005 I don't see it in the .Net or COM references. TIA John
-
- Getting a System.StackOverflowException without any recurrsions
by dare0021
- 11 Replies
- Last post
by dare0021
- When I run my software, it compiles, and displays the message "Build successful" on the status bar, and then plops this error message on my screen.
Title: Microsoft Development Encironment
Message: An unhandled exception of type 'System.StackOverflowException' occurred in Unknown Module.
Options: Break Continue Ignor(grayed) Help
So I looked at MSDN and Google
-
- IO.streamreader =O ?????
by -ande-
- 2 Replies
- Last post
by -ande-
- i am trying to read a stream from a image file and i know how to do it and i have used streamreader and writer for a long time but now am stuck... my code:
Code Snippet
PictureBox1.Image = Clipboard.GetImage
PictureBox1.Image.Save( "..\bilde2.gif" , System.Drawing.Imaging.ImageFormat.Gif)
Dim a1 As IO.StreamReader = New IO.StreamReader( "..\bilde.
-
- FileSaveAs preloading a URL
by DL Posey
- 0 Replies
- Last post
by DL Posey
- I open a template using
dim strTemplateFullName as string
dim strDocumentFullName as string
strTemplateFullName=" \\192.168.2.5\DocumentTemplates\Template.doc "
strDocumentFullName=" http://192.168.2.5/DocumentArchive/Test1.doc "
oWord=CreateObject("Word.Application")
oDoc=oWord.documents.open(strTemplateFullName)
This works and I am able
-
- please help me
by deviderx_ddr
- 5 Replies
- Last post
by JohnWein
- I wan't to know how to detect physical Cdrom/dvd from virtual one
API like Getlogicaldrives dosen't distinguish between them
-
- Check that a online file exists (EG: 'www.files.com/file.html') and returns a True or False answer...
by James883
- 8 Replies
- Last post
by nobugz
- I was wondering if theres a simple code which checks if a file exists and returns a result 'True or False' the below code does not work of course but is there a a code like this one
------------------------------------------------------------------------------------------------------------------
Private Sub Label5_Click( ByVal sender As System.Object, ByVal e As Syst
-
- ComboBox
by GerardL
- 7 Replies
- Last post
by GerardL
- Hi, Is it possible to use the values in the Items Collection of one combo box to determine the values in the items collection of another combo box. For example, I have two combo boxs on a form: cmbApplications has an Items collection: Access, Excel, Outlook, Word cmbFeatures has an Items collection: Sends e-mail, Spreadsheets, Displays Graphs, Pivot Tables, Word Processing, Mail Merge, Functions,