|
Hi to all,
do you remember when we could make an easy UDP connection with VB 6.0?
we needed only to drag and drop the winsock... one minutes of codes and... we could make two applications "talk together"!!!
Now i have a problem!!!
I want to do the same thing with "Microsoft Visual Studio 2005"... but there is a new way to program that i don't know... even i don't know what is the name/identifier of this new language... (maybe "VB.NET 2005"?)
I have found, on this site, articles/source on UDP connection... but "Microsoft Visual Studio 2005" say that this code is old so it make a convertion... EVEN THOUGH I DON'T UNDERSTAND THE SOURCE!!!
There are a lot more lines of code...
Please Help Me... I NEED A SMALL EXAMPLE (SOURCE FOR "Microsoft Visual Studio 2005") LIKE TWO FORMS THAT CAN CHAT BETWEEN THEM!!!
THAKN YOU ALL!!!
And excuse my english
|
|
|
|
|
Hello!
I developed an application but I intend to write an uninstall app for it. I don't know how I could remove the software from Add/Remove programs section in the control panel with my code.
Any idea would be very helpfull
Thanks.
Bedri.
bckurd@e-kolay.net
|
|
|
|
|
|
|
B Journey wrote: I developed an application but I intend to write an uninstall app for it.
Do you develop your application in vb.net? As far as i know, when you build an installer for vb.net application it also has a property that ask you to allow to have uninstall feature or not. If you allow, after you install an application, the name of your application will appear in the ADD/REMOVE PROGRAM dialog box.
|
|
|
|
|
when u create a dataset at design time the xml schema gets automatically generated. i want to generate that schema in code so that the dataset i am creating comes in the project data of available datasources in the database expert dialog box of the crystal report. can anyone tell me how to do it?
thanks in advance,
lavanya
|
|
|
|
|
I Want to deploy my application through No Touch. But i have two projects client and server which has to be deployed in a single click .I don't know how to implement this pls help me
Regards
Johny
-- modified at 6:00 Monday 23rd January, 2006
|
|
|
|
|
It is simillar to the answer file for windows 2000 and windows xp or an INF file for microsoft batch when you need to install windows 98 with less administrative support. I do not have any code for you but i just give me some idea about this application.
You need to build a single form of collecting an information from the user (name, organization, serial number) and save it to another file after user enter into a specific form. Then write your own setup file to read an information this file. So everything might work fine.
I can't guarantee that it is working or not but I hope it is working like windows does when you need to install by using the answer file.
|
|
|
|
|
Hi Roath Kanel!
My application has these two projects one is windows services and other is outlook Add-inn and now i want to use the one touch deployment to implement my application.When i click the link these two projects has to be deployed
I don't know how to implement this if you have any idea or sample code how to implement this pls fwd it
Thaks in Advance
Johny.R
-- modified at 23:24 Monday 23rd January, 2006
|
|
|
|
|
Hi
How to insert line number in VB6.0.
Ex:
1010 msgbox("Hi")
1020 msgbox("Hello")
1030 msgbox("Hello2")
Paritosh
|
|
|
|
|
Why??? It's such an outdated concept. You really shouldn't be doing it.
In properly written code, you just don't need them at all.
Labels, still an outdated concept, can be done like this (IIRC):
code
code
code
Label3:
code
code
code
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Guy's
I want to Filter the time which is not between given two Times.
i mean i want to filter the Time which is not between 07:00:00 Am and 10:00:00 am.
Sasmi
|
|
|
|
|
think this is your answer.
select field from table where time(field) between parameter1 and parameter2
try this out.
regards,
Lavanya
|
|
|
|
|
I'm guessing that the column storing the time is a datetime or smalldatetime. Also, as you didn't say, I'm assuming you are using SQL Server 2000. In this case you need to extract out the time portion from the date portion and filter on that.
Something like this might work:
SELECT * FROM MyTable
WHERE ((datepart(hours, timeColumn)*3600)+(datepart(minutes, timeColumn)*60)+datepart(seconds, timeColumn))
NOT BETWEEN 25200 AND 36000
The calculation in the WHERE clause represents the timeColumn being converted to seconds since the start of the day.
"timeColumn" is the name of the column that contains the time information.
The numbers after the BETWEEN represent 7AM and 10AM in seconds since the start of the day.
Does this help?
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
-- modified at 13:45 Monday 23rd January, 2006
|
|
|
|
|
I'm currently developing a application where the end-user must be able to arrange "fields" in a "panel" via drag'n'drop much like columns are often re-arranged in grid header at runtime.
The "panel" must support arranging the order of the "fields" by the end-user and also support adding and removing "fields" from the "panel" from a "stock panel" which contains all available "field"-items.
I must be able to implement my own "Field"-item control so I can't just use a normal grid.
I'm currently looking into using the new FlowLayoutPanel control but it doesn't support drag'n'drop of items in runtime.
Any advice how to implement such a feature ?
I'm open towards commercial 3. party components but if this feature can be done for free, it would be best
|
|
|
|
|
"problem" solved.
I have implemented my own drag'n'drop functionality into the FlowLayoutPanel.
|
|
|
|
|
In my application,
All the controls in the form is setted to Arial, 8.25pt.
But one of user computer set the DPI setting to Large, 125DPI.
But not normally 96DPI.
All my font in the form is enlarged.
Most of text of controls are outside the boundary.
How can I set the form will not affect by this factor like all window application ?
|
|
|
|
|
Have you found a solution to this issue? I am running into the same issue myself. Any help will greatly be appreciated!
|
|
|
|
|
Hello everyone,I'm new to VB.NET. I am having problem with migrating the following code from VB to VB.NET.I'm a new beginner on this VB.NET. This code doesn't run at all in VB.NET. Anyone can please give me a solution to change it to VB.NET?
VB Code:
Private Sub Spam()
Set con1 = New ADODB.Connection
con1.Open conStr1
Set rs1 = New ADODB.Recordset
Set rs1.ActiveConnection = con1
Set rs2 = New ADODB.Recordset
Set rs2.ActiveConnection = con1
sql1 = "SELECT TOP 20 * FROM TT_Member WHERE Reminder = '0' AND Status = '1'"
rs1.Open (sql1)
If rs1.EOF And rs1.BOF Then
Label1.Caption = "Finished - " & Now
Else
Do Until rs1.EOF
Label1.Caption = "Spamming - " & Now
OriginatingAddress = rs1.Fields("Mobile_No").Value
If Mid(OriginatingAddress, 1, 3) = "601" Then
Telco = 2
ElseIf Mid(OriginatingAddress, 1, 3) = "013" Then
Telco = 3
End If
Reminder_Msg = "You are charged $2."
MT_Msg = Reminder_Msg
MT_Msg = Replace(MT_Msg, "datedate", Renewal_Date3)
rs1.MoveNext
Loop
End If
End Sub
Hope someone can give me a solution here. Thank you so much~!
|
|
|
|
|
vb and vb.net are like a mango and a mango tree. pls familarize yourself with the concepts of ado.net.
this is a sample code. this is for insertion. try this out.
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlDbType
Public Function inserttotables()
Dim sqlcon1 As New SqlConnection(constr)
Dim sqlcon As New SqlConnection(constr)
Dim strq1, strq2 As String
sqlcon1.Open()
sqlcon.Open()
strq1 = "insert into BillCommonDet(BillNo,BillDate,Customer,Doctor,Pharmacist,GrossTotal,Discount,NetTotal,AmtReceived,Balance)values(@BillNo,@BillDate,@Customer,@Doctor,@Pharmacist,@GrossTotal,@Discount,@NetTotal,@AmtReceived,@Balance)"
strq2 = "insert into BillProductDet(Billno,Billdate,PID,PName,BatchNo,MfgDate,ExpDate,UnitPrice,ReqQty,Tax,Amount) select billno,billdate,pid,pname,batchno,mfgdate,expdate,unitprice,reqqty,tax,amt from TempCustBill"
Dim cmdstring As New SqlCommand(strq1, sqlcon1)
Dim cmdstr As New SqlCommand(strq2, sqlcon)
cmdstring.Parameters.Add("@BillNo", TextBillNO.Text.Trim)
cmdstring.Parameters.Add("@BillDate", DateTimeDate.Text.Trim)
cmdstring.Parameters.Add("@Customer", TextCustomer.Text.Trim)
cmdstring.Parameters.Add("@Doctor", doctor)
cmdstring.Parameters.Add("@Pharmacist", pharmacist)
cmdstring.Parameters.Add("@GrossTotal", Val(TextGrandTotal.Text.Trim))
cmdstring.Parameters.Add("@Discount", Val(TextDiscount.Text.Trim))
cmdstring.Parameters.Add("@NetTotal", Val(TextNetTotal.Text.Trim))
cmdstring.Parameters.Add("@AmtReceived", Val(TextAmtRec.Text.Trim))
cmdstring.Parameters.Add("@Balance", Val(TextBalance.Text.Trim))
Try
cmdstring.ExecuteNonQuery()
cmdstr.ExecuteNonQuery()
cmdstr.Dispose()
cmdstring.Dispose()
sqlcon1.Close()
sqlcon1.Dispose()
sqlcon.Close()
sqlcon.Dispose()
Catch x As SqlException
MessageBox.Show(x.Message)
End Try
End Function
|
|
|
|
|
Hello there,I am sorry because I'm really a beginner. I think your code doesn't really help me because I need to select the data row by row inside the dataset. And used movenext function with loop together.I found that there is no more BOF and EOF function. Can you give me a better solution code? Any other example which is more similar to what I need can show me please?
Thank you ~!
Regards
Drexler
|
|
|
|
|
|
I couldnt find the VB6 Message board hope u wudnt mind asking question here.
I want to create vb6 forms dynamically . i have form names in database and i want to create form of that specific name on fly
R A M
|
|
|
|
|
I don't think it's possible in VB6 because it doesn't support reflection.
In VB.NET, this is not a problem.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I think an array of type Forms could be helpful (if I have got you correctly):
dim forms() as Form
....
redim preserve form ( ubound(forms) + 1 )
set forms ( ubound ( forms) ) = new form
...
hope it helps
|
|
|
|