|
Hi Friends
i Created 1 application of Three -tier Architecture. all three layers are running well on My Single PC but when i kept 2 layer(Business and Data Layer) on server then My User Interface Layer Cant connect Those layer on Server because of Port. so Please Help me to solve this Problem and Please Give me information about Port.
Dilip
|
|
|
|
|
I set ListView.ShowGroups=TRUE but i couldnt see the groups on listview at Windows 98 client
W H Y ?
H
Y
?
|
|
|
|
|
Are you use using vb.net 2.0,I dont see ShowGroups method in vb.net 1.1. Try setting ListView.View=details.
|
|
|
|
|
|
Hi
I am using AppUpdater [http://windowsforms.net/articles/appupdater.aspx] in my windows based application, I am looking for a feature where in when the application encounters new update in the server; Right now if the Application is running it will display a message “An update to this application is available. Would you like to start using the update now?” if we press yes the application will install new version and if we press no the application will not install at that time but it will install when the application is started again.
I need a option where in when the message is displayed as “An update to this application is available. Would you like to start using the update now?” if I press yes it should download the files from web server and install it and if I press no the application should not download the files from the web server to the application folder. As it is component I could not find the solution where to write the code. please do reply me if you have any solution.
J.R.Sreenivas
[ jayanthisreenivas@batishtechnologies.com]
|
|
|
|
|
If you take a close look into the advanced sample, you could find these events
this.appUpdater1.OnCheckForUpdate += new Microsoft.Samples.AppUpdater.AppUpdater.CheckForUpdateEventHandler(this.appUpdater1_OnCheckForUpdate);
this.appUpdater1.OnUpdateDetected += new Microsoft.Samples.AppUpdater.AppUpdater.UpdateDetectedEventHandler(this.appUpdater1_OnUpdateDetected);
this.appUpdater1.OnUpdateComplete += new Microsoft.Samples.AppUpdater.AppUpdater.UpdateCompleteEventHandler(this.appUpdater1_OnUpdateComplete);
You can use the event OnUpdateDetected to proceed or cancel update.
|
|
|
|
|
Helo
Has anybody an existing Demo for the in VB2005 existing Serialport-Class?
thank you and greeting from upper austria
tom
|
|
|
|
|
hi..
i have a problem in access to show a picture in vb..
can someone please help me..
thank u
areon25
|
|
|
|
|
|
hi..
i have a problem in programming barcode using vb and access as my database..
can someone help me solve this problem..
areon25
|
|
|
|
|
Define your problem. The hardware should be converting your barcode into a text string for you to access just like any other entry.
If it's relating to printing a barcode, you need to have a print driver that supports it.
|
|
|
|
|
Hello frds,
i have created a Databse in MS access through VB.
i also created a table and inserted a column in that table.
but now problem arises that how to insert the values in that columns!
i.e how to insert a record in that table
thanks in advance
bye
Rahul here
|
|
|
|
|
The easiest way is to you a T-SQL Insert command. Using ADO.Net you can do the following
(assumes connection to database is already set)
cmd = cn.command
cmd.commandtext = "Insert into Table ([Column1]) Values('Information')"
cmd.executenonquery
cmd.dispose()
****This is not the RECOMMENDED method of inserting data. The recommended way is to create named variables. I chose to just show this to keep it simple. If you're going to be passing variables into the table, then you need to set up named variables. There is a vulnerability called SQL Injection that can cause major problems.
ADO and ADO.net are very powerful. I'd recommend getting a reference book taht covers the version you want to work with. Since you're just now starting down the ADO path, I'd recommend ADO.Net if you're using VB 2003 and ADO.Net 2 if you're using VB 2005. They're all fairly similiar so there's no need to compound your learning curve by not starting with the latest version available.
|
|
|
|
|
i have filled a dataset.it's getting only one row.that mean only one row on db according to query.
now i want to get values from dataset to text field.
can anyone help me
|
|
|
|
|
TextBox.Text = DataSet(0).items(Fieldname).value
|
|
|
|
|
Hi all,
I have seen many applications having the "Back" and "Next" button (go next or back to the previous form).
Can you tell me how to do that? I think they use panel to do that, is it right?
Thanks,
Hung
|
|
|
|
|
There are several possible solutions. As you said panels can be used to exchange the content of the form. It would also be possible to show another form when clicking next.
There are several articles[^] here on CodeProject which deal with creating wizards.
|
|
|
|
|
Hi!! I am Priya here. I would like to know how to know how to use Visual Basic 2003 to accept input from an excel file and convert it to a graph.
I need to know it fast as I have a deadline to meet. All your comments and help is MUCH appreciated.Tks!!
|
|
|
|
|
You should take a look at ksgopal's ExcelExportControl. See the article "Export excel data to a Dataset" at http://www.codeproject.com/dotnet/ExportExcelData.asp
The control is written in C#, but you can use it in a VB-project if you like.
I have myself used the essential of the code in a class that I have translated to VB.NET. If you'd like to have a copy of this, just send me an email at "jan[a]jl.no" and I'll send you a test project.
As with the graph-thing, I can't help you there. Just search CodeProject, and you'll find several articles concerning graphs.
Good luck on your project!
|
|
|
|
|
I have a plugin to IE. Now I want to get the query string of the address bar, how can I do this?
Thanks,
Hung.
Hung
|
|
|
|
|
Hi all,
I used the LoadLibrary(...) (Win32 API function) to load a library to memory but now I want to load a library "*.dll" to the memory with managed code. How can I do that?
Thanks,
Hung
|
|
|
|
|
Hi, can someone explain to me how I could make a program to be able to send voice over the internet (not VOIP, but something like msn messenger), or tell me where I could find this information?
|
|
|
|
|
Hi Folks!
This is my problem.
When I'm fetching data from a "box" via COMport it present the values that I need like this:
452F4AF6,
452E9548
439570B7
The 1. line is 2804 in decimal
The 2. line is 2793 in decimal
The 3. line is 298.9 in decimal.
In the manual this format is described as Ascii Hex IEEE Float.
If someone could't tell me how to convert from 452F4AF6 to 2804, 452E9548 to 2793 and so on, I would be very happy.
If you throw in a VB-Code as well, it would realy make my day
Have a nice day
RonnyK
|
|
|
|
|
The string is the hexadecimal representation of four bytes of data, but you have to find out if this is little-endinan or big-endinan format, and if it is four bytes, two words or one quadword, e.g. if it should be read as "45 2F 4A F6", "2F45 F64A" or "F64A2F45".
Either way you have to put those four bytes into a byte array in the correct order, and convert it to a Single. One way to do that would be to make a MemoryStream from the array, make a BinaryReader from the MemoryStream, and read the Single from the BinaryReader.
---
b { font-weight: normal; }
-- modified at 17:33 Monday 22nd May, 2006
|
|
|
|
|
Turns out I've already written code that does exactly this. I'm feeling like a nice guy today so I think I'll give you some of it.
(I don't normally do this.)
First you need to convert the ASCII string into integers. The below code will convert a portion of a string into an array of short ints.
''' <summary>
''' Extracts the ASCII characters out of string "sBuf" and returns them
''' as a zero based array of short integers. Each short holds 2 characters.
''' </summary>
''' <param name="sBuf"> The string to be converted to a short int array. </param>
''' <param name="iCharFirst"> Zero based index to 1st char to extract from "sBuf". </param>
''' <param name="iCharLast"> Zero based index to last char to extract from "sBuf". Must be >= iCharFirst. </param>
''' <returns> Returns short int array containing ASCII codes. </returns>
Public Shared Function StrToShorts(ByVal sBuf As String, ByVal iCharFirst As Integer, _
ByVal iCharLast As Integer) As Short()
Dim siArray() As Short
Dim iStrLen As Integer
Dim iIndex As Integer
Dim siValue As Short
' Validate arguments. (Okay if string is empty.)
If ((sBuf Is Nothing) OrElse (iCharFirst > iCharLast)) Then
' Invalid arguments. Return a NULLed array.
ReDim siArray(0)
siArray(0) = 0
Return siArray
End If
' Convert given string into an array of ASCII integer values.
iStrLen = sBuf.Length()
ReDim siArray((iCharLast - iCharFirst) \ 2)
For iIndex = 0 To (iCharLast - iCharFirst) Step 1
' Get next ASCII character in string.
If ((iIndex + iCharFirst) < iStrLen) Then
siValue = CType(Asc(sBuf.Chars(iIndex + iCharFirst)) And &HFF, Short)
Else
siValue = 0 ' Exceeded string length. Set NULL.
End If
' Push character's ASCII value into 2 byte integer array.
If ((iIndex Mod 2) = 0) Then
siArray(iIndex \ 2) = siValue << 8
Else
siArray(iIndex \ 2) = siArray(iIndex \ 2) Or siValue
End If
Next
Return siArray
End Function
You can combine 2 shorts into 1 Integer by using this code. This is also where you can swap words depending on endianess.
''' <summary> Combines two 2 byte integers into 1 long integer. </summary>
''' <param name="siHigh"> Will be the returned int's high word. </param>
''' <param name="siLow"> Will be the returned int's low word. </param>
''' <returns> Returns a 4 byte integer made up of siHigh and siLow. </returns>
Public Shared Function ShortsToInt(ByVal siHigh As Short, ByVal siLow As Short) As Integer
Dim bytesHigh() As Byte
Dim bytesLow() As Byte
' Get high bytes.
bytesHigh = System.BitConverter.GetBytes(siHigh)
If (bytesHigh Is Nothing) Then Return 0
If (bytesHigh.Length < 2) Then Return 0
' Get low bytes.
bytesLow = System.BitConverter.GetBytes(siLow)
If (bytesLow Is Nothing) Then Return 0
If (bytesLow.Length < 2) Then Return 0
' Combine to form a 4 byte integer.
Return System.BitConverter.ToInt32(New Byte() {bytesLow(0), bytesLow(1), _
bytesHigh(0), bytesHigh(1)}, 0)
End Function
Next, you'll need to convert that integer into a float. I recommend that you use the System.BitConverter class as shown below.
''' <summary>
''' Converts an integer into a float without changing bits.
''' </summary>
''' <param name="iValue"> Integer value to be converted to float. </param>
''' <returns> Returns a single precision float representation of given value. </returns>
Public Shared Function IntToFloat(ByVal iValue As Integer) As Single
Dim bytes() As Byte
'
bytes = System.BitConverter.GetBytes(iValue)
If (bytes Is Nothing) Then Return 0
Return System.BitConverter.ToSingle(bytes, 0)
End Function
|
|
|
|