|
thanks again for your response but i have a few comment about what you wrote,
1-If about searching the web i can search the web its not a problem, but here i didnt search instead of that i put my question here and there is alot of programmer here and maybe i can find a solution for my question.
2-If my question is very wide you can put a points that facilitate the things that are wide and to clarify for the questioner the points that he must take into consideration.
Thanks alot again for your response
with best wishes
|
|
|
|
|
smart_sdr wrote:
If my question is very wide you can put a points that facilitate the things that are wide and to clarify for the questioner the points that he must take into consideration.
What do you think I did in response to your first post?!?!?!?!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
oooohhhh don't be upset my fellow i didn't want to upset you but understand this, i will give an example for this :
if someone said that he want to make database system and he want to use this with the vb.net and he asked about how to do it ?
this is also a wide question cause what type of a database he want to use and about what he want to make his database system through the internet or just by using a local area network ?
and you can give this answer :
my friend i saw your question but if you want to make a database system you must take this into consideration :
1- you can use access database or sql server 2000 or oracle .
2- you can make your system working through the internet and you must use asp.net or if you like php with mySQL .
3- you can make your system work only on the lan (local area network) and in this situation you need vb.net and one of the database that i mentioned it into the point 1.
4- and for now i will give some info about using vb.net with sql :
4a- you must know the vb.net syntax and object oriented programming and about to connect with the database.
for example i mention you this book "Visual Basic.Net programming with Peter Aitken" at http://bookpool.com/sm/1932111166
4b- you must know about the sql server and for the beginning i mention you this book "Wrox - Visual Studio .NET - Beginning Visual Basic .NET Database Programming"
at http://support.apress.com/books.asp?bID=1861005555&s=0&Go=Select+Book
and in this book they will use sql server 2000 Desktop that you can download it from the internet from the microsoft site.
this is just afew info to give a start point for what you want.
thanks.
----------------------------------
this is an example, Dave let us to see what you wrote to me :
"Well, knowledge of TCP/IP would help alot. How to write clients that communicate using sockets, and most of all how to write a multi-threaded socket server. Just search the articles for "CHAT" and you'll come up with a bunch of examples.
I fail to see how an SQL Server figures into this, unless you're going to be logging everything everyone says."
1-"Well, knowledge of TCP/IP would help alot"
*this is a wide info, what you mean with this about studying the networking (network programming or just networking theories ) ?
2-"How to write clients that communicate using sockets"
*without specification about how to make it or if there's a book that talking about that ?
3-"and most of all how to write a multi-threaded socket server"
*also like the point 2
4-"Just search the articles for "CHAT" and you'll come up with a bunch of examples."
*i wrote the "CHAT" in the google and i got 98,600,000 pages !!!
and i wrote it in the yahoo and i got 438,000,000 !!!
5-"I fail to see how an SQL Server figures into this, unless you're going to be logging everything everyone says."
*this is your sight about this.
Dave don't be upset and thanks again for your response i want you for me to be my friend.
im a programmer also since 1995 and i used the assembly programming on motorola processors like amiga 500 and amiga 1200 and also with the processor 68030 accelerator and i was a cracker on the amiga computer. and then i moved to the pc and i studied the reverse engineering and i became a cracker on the pc also but now i left this side and i made a cd copy protection program by using VC++,and about the structure of the pe (exe file portable executable) and also about the data structure of the cd image file format and also about what i knew from the cracking part and also about aspi (advanced scsi II programming interface).
then i tried to make a 3d game and i studied the VC++ (api mode) Application Programming Interface and Direct X 7 and then i moved to the DirectX 9 but i left it also cause i was alone (programmer) and my brother knows about 3d studio max but also its hard to make a 3d game without a team cause there is a lot of studying that i must make about
physics for games and mathematics for games and AI (Artificial Intelligent) and also about alot of stuff.
and then im using the vb.net and sql server to make a business
and i learned about the sql server since afew months.
again nice to meet you
and im sorry if i made you upset
with best wishes
smart_sdr
|
|
|
|
|
Ok, here we go...
smart_sdr wrote:
1-"Well, knowledge of TCP/IP would help alot"
*this is a wide info, what you mean with this about studying the networking (network programming or just networking theories ) ?
Yes, TCP/IP theory covers entire books. Amazon.com is a good place to start. Without this knowledge, you can't even begin to understand the programming required to make your application work. Especially when dealing with firewalls and NAT's.
smart_sdr wrote:
2-"How to write clients that communicate using sockets"
*without specification about how to make it or if there's a book that talking about that ?
Again, an entire book. I defer to Amazon and your ability to evaluate your own experience and skills to pick an appropriate book for yourself.
smart_sdr wrote:
3-"and most of all how to write a multi-threaded socket server"
*also like the point 2
Same book as 2...
smart_sdr wrote:
4-"Just search the articles for "CHAT" and you'll come up with a bunch of examples."
*i wrote the "CHAT" in the google and i got 98,600,000 pages !!!
and i wrote it in the yahoo and i got 438,000,000 !!!
I said search the ARTICLES, not Google. Let me make it easy for you, click here[^].
smart_sdr wrote:
5-"I fail to see how an SQL Server figures into this, unless you're going to be logging everything everyone says."
*this is your sight about this.
I still have no idea how you're going to use an SQL server in a Chat application. You never said what you wanted to do with it in relation to chat.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks again my friend for your response
about the sql server i want to save all the info about the chatters and who is online and offline and etc... .
i saw this book on the net and i want to take your opinion about it
"Network Programming in .NET" at
http://www.webtropy.com/
thanks again
with best wishes
smart_sdr
|
|
|
|
|
Awsome book. I have it myself.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i'm reading it now it's very interesting book, i like it.
dave if you have a an yahoo id and wanna chat with me so this is my yahoo id and also my msn id :
smart_sdr78@yahoo.com
smart_sdr@hotmail.com
with best wishes
smart_sdr
|
|
|
|
|
Guys,
I need to export an access database table to a txt file within the code
how can i do that? please any help
|
|
|
|
|
Somthing like this:
Private Sub MSAccessToTextFile()
Dim dbConn As OleDbConnection
Dim dbCommand As OleDbCommand
Dim dbReader As OleDbDataReader
Dim swFile As StreamWriter = File.CreateText(Application.StartupPath & "\myfile.txt")
Dim ConnectString As String = "Provider=Microsoft.Jet.OleDB.4.0; data source=" & Application.StartupPath & "\Books.mdb"
Try
dbConn = New OleDbConnection(connectString)
dbConn.Open()
Dim lcSQL As String = "select * from Books"
dbCommand = New OleDbCommand(lcSQL, dbConn)
dbReader = dbCommand.ExecuteReader
Do While dbReader.Read
swFile.WriteLine(dbReader.GetValue(0).ToString() & "," & dbReader.GetValue(1).ToString())
Loop
swFile.Flush()
swFile.Close()
If Not dbReader.IsClosed Then
dbReader.Close()
End If
If Not dbConn.State = ConnectionState.Closed Then
dbConn.Close()
End If
dbCommand.Dispose()
dbReader = Nothing
dbCommand = Nothing
dbConn = Nothing
Catch oErr As Exception
MessageBox.Show(oErr.ToString())
End Try
End Sub
|
|
|
|
|
Thanks for your response
but isn't there a way to export all fields without having to pass the index for each one using GetValue(i) ..?
Sorry if my Q seems silly, but i'm wondering if it could be done in a more general way so it can be used to export different tables with different fields
Thanks
|
|
|
|
|
hi guys,
I met this problem with VB.Net 2003 :
Dim st1 As String
Dim blnResult As Boolean
st1 = "Hello World"
blnResult = st1.StartsWith("lo") 'it must return true but it returned false !!!!!!
is there any info about that ??
thanks
|
|
|
|
|
StartsWith determines whether the beginning of the string matches the specified string
"lo" is not the start
For your case you might wanna use IndexOf
|
|
|
|
|
thanks alot for your response
with best wishes
|
|
|
|
|
how to make a keypress event in vb.net, in the case i am using keypress if i am pressing the number key means that number key is unlocked and other key will be locked
|
|
|
|
|
The standard textbox control comes with a KeyPressed event, just subscribe to it.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
how to arrange the grid control display in the input order using ole db
|
|
|
|
|
Hi,
I have a visual Basic 6.0 project and wanted to add to it couple of ActiveX Dlls.
But when running the Project (Group) the forms that were created in the DLLs, open outside the Main MDI parent.
How can I set these DLLs as MDI children of this main MDI.
|
|
|
|
|
.DLL's as MDI Child??? Forms are MDI Children, not .DLL's.
Of course the forms created in the .DLL's are created outside the MDI Parent. You didn't set the MDI Parent property of the child forms to anything, so they are not children of any form.
You have to add this functionality into your .DLL's so you can set the Parent property from outside the .DLL's.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello All,
I need help to import sub into application.
First i will give a little detail how my application is set so you can help me (And so if i ask this question wrong you may be able to sift through the newbieness)
I have a componts folder that holds all of my class files (Like my comtrols, alot of my controls have their own namespace, class file)
My connection string is in my web.fig file so when ever i create a connection in my class files in my componets folder i write it like so--->... Dim cnn As New SqlConnection(ConfigurationSettings.AppSettings("cnn")) ...
When ever i call the function that returns a result for my control i do it like so-> ... Dim GetCompanyProductsFromTopMenu As New ConstructionSuperCenterCom.WindowTreatmentByCompany
dlCom16.DataSource = GetCompanyProductsFromTopMenu.DataListForProductDisplayFromTopMenuSelection(IDCompany, IDCompanyProductCategory)
dlCom16.DataBind()...
Now, My question here is, how do i get to this sub and correctly implement it?
What i am doing here updating, editing, deleting info from a datagrid and i want to move all of this code to my componets folder and make a call from the behind file to the componts in the folder where needed in the behind file.
============Here is a piece of the code from the behind file that i am wanting to move to the componets folder,-----
Sub dgProducts_Edit(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
dgUpdateProductRestrictions.EditItemIndex = e.Item.ItemIndex
BindData()
End Sub
Sub dgProducts_Cancel(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
dgUpdateProductRestrictions.EditItemIndex = -1
BindData()
End Sub
Sub dgProducts_Update(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
'Read in the values of the updated row
Dim iProductID As Integer = e.Item.Cells(1).Text
Dim dblPrice As Double = CType(e.Item.Cells(2).Controls(0), TextBox).Text
Dim strName As String = CType(e.Item.Cells(3).Controls(0), TextBox).Text
Dim strDesc As String = CType(e.Item.Cells(4).Controls(0), TextBox).Text
**How would i call the sub dgProducts_Update from the behind file?
Like This----> Dim MyUpdate as new (This would be namespace --->ConstructionSuperCenterCom)
MyUpdate.dgProducts_Update <----------????? i tried this but did not all the way work..
Can anyone help me on this???
Thank you...
Erik.,,..
|
|
|
|
|
Hello All,
I am following an example from an online how to datagrid, bla, bla, anyway, i have a question related to formating money
Here is the datacolumn that the formating is taken place in
<asp:boundcolumn headertext="Price" datafield="UnitPrice" itemstyle-horizontalalign="Right" dataformatstring="{0:$#,###.##}">
**My quesion here is, what is the difference between {0:c}, and DataFormatString="{0:$#,###.##}???
They both seem to produce the same result...
Thanks again,
Erik,,,,,
|
|
|
|
|
{0:c} will use the currency format specified by the CurrentUICulture's NumberFormatInfo which is determined by the Windows locale settings. For U.S. English it would be equivalent to the {0:$#,###.##} literal specification, but if your locale was different, it would format according to the appropriate currency for that locale (Pounds Sterling, Euros, Yen, etc. and would adjust the puctuation as appropriate (some exchange the roles of , and .). Your literal specifier would give the same results regardless of locale setting.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
Thank you,
I will store this information up in my folder vb.net collections,..
|
|
|
|
|
i had made an active x controll that rool the dice on mouse click. now i want that it should be added to the web page tell me how to add any good article or the website.
ddd
|
|
|
|
|
How to gettickcount?
In VB 6.0 ,we could use API of windows by dll.
Now it is impossible in vs.net.
Thanks!
|
|
|
|
|
The System.Environment.TickCount is the property you are looking for.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|