Vb 2008 Not Getting In Proper Way?

Feb 13, 2011

why vb 08 help are not getting in proper way. instead getting help for vb 2005 which is not compitable with vb 2008. i m user other vb 8 user must be facing similar problem

View 9 Replies


ADVERTISEMENT

VS 2008 Proper Syntax To DELETE?

Dec 21, 2010

Is this the correct syntax to delete a record from a dataset? [code]

View 4 Replies

VS 2008 Proper Use Of Resources For A Class?

Jun 8, 2010

I am not sure of the proper, or best, way to use Settings and Resources. For now I use the default project wide My.Settings and My.Resources. I have a class that I would like to reuse in other projects, so adding project wide settings or resources in each project doesn't sound proper, nor does creating constants and variables within the class itself.I'm guessing there is a way to give a class its own resource file, and maybe even settings file, but I'm not sure how to do it. I tried adding a resource file with the same name (but with .resx extension) and I got a weird error saying I was trying to edit a resource that is apart of another project. I continued, but it didn't seem to be what I wanted and I wasn't sure how to access that new resource.

View 3 Replies

VS 2008 RichTextBox The Proper Solution?

Jun 20, 2009

I want to display some text for a user - blocks of text about "vendors" - that can be scrolled.

I might want the first vendor to be a different color - or be bold.

I might want certain fields in the "text blurb" about each vendor to be bold - or underlined - or a different color.

In VB6 I would have used a RTB - would that still be the solution??

View 4 Replies

VS 2008 Exiting The Event In The Proper Time?

Sep 19, 2010

I had designed a simple form with Groupbox and some checkboxes (colors)where I need to program the following :When I checked one checkbox in this collection I need the previously checked checkbox to be unchecked and the new one to be checkedbut what I'm getting is not like this where after writting the following code :

Private Sub obj_checked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkred.CheckedChanged, chkblue.CheckedChanged, chkbrown.CheckedChanged, _
chkgreen.CheckedChanged, chkwhite.CheckedChanged, chkyellow.CheckedChanged

[code].....

View 1 Replies

VS 2008 How Many Proper Payloads Server Received

Aug 24, 2009

I took a look at System.Security.Cryptography.MD5 class about using a checksum for a UDP program i am making.Basically i want to use it, to ensure the server is receiving what the client sends it, in a way that the server can make note of it receiving properly without having the client keep track of how many proper payloads the server received. The reason i need a checksum is because the client is sending a random hex payload, so i cant have the server predict what it should receive the same way as i have it working with the sequence number.I dont fully understand how i could implement this to my code. I believe i should make a public property in my packet class, but im having trouble implementing it with the way i coded my program. [code]

View 39 Replies

VS 2008 Proper Way To Pause/resume A Thread?

Oct 6, 2011

I have a thread running on my application that checks a database every so often to decide whether or not to update nodes in a treeview.

Each treeview node represents a document and I have an open button that opens the document for the user.

When the document is opened, I wanted to suspend the thread that refreshes the node list until the document is closed.

I have MyThread.Suspend and MyThread.Resume. But the document viewer is on another thread.

I created functions for suspending/resuming the thread in the application. I have delegates in the viewer to call those functions from another thread. But I'm still getting an Error. "Thread is not user-suspended. Cannot be resumed" or something of the like.

But I realize that Suspend and resume are obsolete functions, so what class or objects should I be looking into and if it didn't take up too much of your time, a small example as well?

View 6 Replies

VS 2008 - Displaying Proper Columns In Console Game?

Jan 17, 2010

I'm making a console game that shows some data:
#: Item Name Item Slot Cost Item Price
in that order. The thing I want to do is to make it come out in nice even columns...but I can't seem to make it do that. It comes it out in nasty uneven rows that don't look attractive...

Basically, here's what it looks like now:
1. Sword Slots: 2 Price: $40
2. W. Stick Slots: 4 Price: $1
I want to get each column to line up nicely with the other (since I control the size name).

View 9 Replies

VS 2008 Proper Way Of Working With Percentages And DataGridView And Dividing By Zero

May 31, 2011

What is the proper way of working with percentages and DataGridView and dividing by zero..In my code I am attempting to divide two numbers, sometimes one of the numbers is zero..Then I need to add a column to my datagrid, I think i need it to be decimal? So i can sort it later. I had it as a string and everything worked fine excpet i couldnt sort properly.[code]If I change column to Double it handles it fine, then i am not sure how to read the value as a percentage?

View 12 Replies

Adding Proper Number Of Pictureboxes To Array Control [VB 2008]

Aug 10, 2009

My application has no static number of pictureboxes. I want to add picturebox to array control.

[Code]...

View 4 Replies

VS 2008 Proper Syntax To Identify A Text Document For SAVEAS Method?

Dec 10, 2009

Using Excel Automation classes I am seeking to save an Excel file as a delimited text file. The examples given in the MSDN library refer to versions older than Express 2008 with (apparently) different syntax options for FileFormat.Based on the snippet shown, I get a COM exception error (800A03EC). Other variations produce the same error.

Am I improperly applying the Automation features?
Imports System.IO
Imports Microsoft.Office.Interop

[code]....

View 2 Replies

SHDocVw.ShellWindows Not Giving Me The Proper Result For The Internet Explorer In Windows Server 2008?

Jun 18, 2009

I found one problem Windows Server 2008. please refer the following code. it gives me the "ieplorer.exe" while i am running this code in XP or 2003, but while I am running this code in Windows Server 2008 it is not giving me the proper result. it gives me Explorer.EXE" insted "ieplorer.exe".before run this command you have to add reference of shdocvw.dll in your project. i am using the VB 6.0

Dim IE As SHDocVw.InternetExplorer
Dim MainIE as SHDocVw.InternetExplorer
Dim sws As SHDocVw.ShellWindows

[code].....

de my MainIE Object will set to my Previously stored handle( In TmpStoredHandle) . Does anybody know that how can i get the existing IE(Opened Internet Explorer) detail with the help of SHDocVw.ShellWindows in Windows Server 2008? with this API i can get all the opened windows with Its handle

View 1 Replies

Proper Update And Delete Code For SQL Express In 2008 Express Edition?

Oct 3, 2011

I'm just using the default SQL Server Express in my vb 2008 express edition as my database server for my database operation. When I tried to update the records on my table I got a runtime error which indicates the error on this line 'myCommand.ExecuteNonQuery()'and it highlights a yellow background on it. The runtime error says "SqlException was unhandled: An expression of non-boolean type specified in a context where a condition is expected, near 'Number'. ".

Imports System.Data.SqlClient
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim myConnection As New SqlConnection
Dim myCommand As New SqlCommand

[code]....

View 3 Replies

DB/Reporting :: Proper Use Of ADO.NET?

Nov 18, 2009

Whenever I work with applications involving database I have this habit of declaring a global variable that holds reference to a Connection object and keeps it open throughout the lifetime of the application and closes and disposes it accordingly at program exit.I've been doing this since my VB6 days and still doing it now in dotNET. I've read a lot of articles regarding this practice and most of them states that it has great impact on connection pooling. Does this also mean something when my application connects to a database file (i.e. MS Access, flat text files)? Is it true that the DataAdapter and Command objects open and close the connection?

View 2 Replies

How To Get Proper IP Address

Apr 26, 2011

I am running a ASp.Net mvc app in localhost - dev server given with visual studio. I want to get the IP address. I tried

Request.UserHostAddress
and
Request.ServerVariables("REMOTE_ADDR")

In both cases, I am getting ::1 as the result. What is it? Why am I getting it? How can I get 127.0.0.1 or 192.168.1.xxx?

View 3 Replies

Proper Two Way Binding?

Mar 21, 2010

The problem I am experiencing has to do with using DataGridView.Member to access a BindingList.

My app has a UserControl called MaterialsControl, on it lives a DataGridView name dgvLineItems. Using the designer, I've set the DataSource for dgvLineItems to the MaterialsControl. MaterialsControl also has a "Items" Property. "Items" is a BindingList(Of LineItem). dgvLineItems.Member is set to "Items." The LineItem class implements INotifyPropertyChanged

Presently, when I add anything to Items, the DataGridView does not show any changes.Alternatively, when dgvLineItems.DataSource is set to Items (which to my knowledge can only be done manually), anything added to Items appears in the dgvLineItems.

Just for clarification, the DataGridView I'm using is for output primarily, the user will be able to delete values from the view, but not edit them. Insertion is done through an event handler.

View 11 Replies

Proper Use Of IndexOf

Sep 2, 2009

I'm working on some code that was developed by the previous developer of an application and I don't understand why he used a certain syntax for IndexOf().This is the code (MyString is just an example of the string being searched for): [code] I can't seem to find any documentation for this unless it's inside of a loop where the number after the comma is incremented.

View 3 Replies

Proper Way To Use Activex?

Mar 5, 2011

I use thrid party activex control/ dll/ocx file. I add them by using choose items and browse the desire file. When i deploy the application is that works?If not where i add these files which are use at any system where i install my application.

View 2 Replies

Proper Way To Use Resources?

Jun 8, 2010

I'm using VB.Net 2008 .NET 3.0.I am not sure of the proper,or best, way to use Settings and Resources. For now I use the default project wide My.Settings and My.Resources.I have a class that I would like to reuse in other projects, so adding project wide settings or resources in each project doesn't sound proper, nor does creating constants and variables within the class itself.

I'm guessing there is a way to give a class its own resource file, and maybe even settings file, but I'm not sure how to do it. I tried adding a resource file with the same name (but with .resx extension) and I got a weird error saying I was trying to edit a resource that is apart of another project. I continued, but it didn't seem to be what I wanted and I wasn't sure how to access that new resource.I'm not currently concerned with internationalization, but it wouldn't hurt to understand how that would affect what I'm trying to do.

View 6 Replies

How To Manage Proper Code

Jul 7, 2010

I have data source and table that I can bind to my controls and datagridview. I can add records to data table and i can view on datagridview but I can't update and Delete records using datagrid. I have following code.[code]

View 1 Replies

Proper Close A Process?

Aug 10, 2011

I have a process, that when you manually closing it. its closing another processs with him. but when you kill it, the process is still open..

i want to know how to Proper exit a process.

View 11 Replies

Proper Creation Of Usercontrols

May 6, 2010

When we create an inherited control then is the Designer still needed or not? Should usercontrols be disposable?What is the difference of using Base and Me when we are setting default properties of our usercontrols?[code]

View 4 Replies

Proper Formatting For Datagridview?

May 18, 2010

I am fixing up a visual basic program using visual studio 2005, specifically in visual basic. I am currently attempting to format the datagridview used to display data from a database. The values from the database being displayed are a mix of integers (used for displaying information such as number of units sold) and floating point values (used to display revenue, etc). I need to format all the values to display as integers (by simply truncating the decimal places, not rounding) as all (including the values that should already be integers which are appearing with two 0s following the decimal place). I have used the round function as follows round(value, 0, 1) which as I understand should get rid of all decimal places by simply truncating them, however I am still left with two 0s after the decimal place. Next, I went to the designer view and edited the columns property of the datagridview so that they are all set to be numeric with zero decimal places, yet the decimal still remains. I followed that by going back into the code and change any CType() that were decimal to Integer and still no change.

View 5 Replies

Proper Separator For Split?

Jan 20, 2012

i need to comfine 3 string after i need to split it my problem is the 3rd string inside contains ,(Comma) so how to seperate by comma

View 16 Replies

Proper Type Casting?

Jun 18, 2009

Delegate Sub UpdateTextHandler(ByVal recbuffpass() As Integer)

Private Sub someSub()
Dim f As frmMain = My.Application.OpenForms("frmMain")
f.Invoke(New UpdateTextHandler(AddressOf f.UpdateTextMethod), New Object() {recbuf})

[code].....

View 2 Replies

.net - Proper Structure Of AJAX Handler?

Jun 1, 2011

My .NET project handles AJAX requests. There are no UI controls at all, it simply responds with text to every AJAX post.

This is my current structure:
<%
SynchLock DBNull.Value
Main
End SynchLock

[Code]...

View 2 Replies

.net - The Proper Way To Dispose Excel Com Object?

Apr 25, 2012

I have following code (obtained from online tutorial). The code is working but I suspect the way to dispose the Excel com object is somewhat not proper. Do we need really need to call GC.Collect? Or what is the best way to dispose this Excel com object?

Public Sub t1()
Dim oExcel As New Excel.Application
Dim oBook As Excel.Workbook = oExcel.Workbooks.Open(TextBox2.Text)[code]............

View 1 Replies

Converting String To Proper Datetime Value?

Jun 15, 2009

I have a datareader reading Date feild from the CSV file as string. it retreives the first record as "03/06/2009" successfully. My system datetime format is dd/MM/yyyy when I insert these values to an access table it put 06/03/2009 i.e makes it 6th March 2009 instead of 3rd June 2009 and so on for the values upto 12th June....after that it starts treating the date monthly correctly..

View 11 Replies

Find The Proper DLL With The OpenSqlFIlestream API Objects?

Oct 2, 2009

find the proper DLL with the OpenSqlFIlestream API objects so i can sue them in VBA/Access. trying to import either sqlnclient.dll or sqlncient10.dll both produce a "Can't add reference to the specified file." error. How do I get these objects into my environment so VBA recognizes and can use them?

View 6 Replies

Get Proper Time Format From DateTimePicker?

May 12, 2012

I have a DateTimePicker to display time (for example) as 05:00:00 AM or something like 07:00:00 PM. When I save my form's data, I'd like to save the time as 05:00:00 or 07:00:00, dropping the AM/PM extensions.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved