|
Christian Graus wrote: These are easily answered with google - VB.NET 2005 is the latest version of VB
yeah I tried the question in google and was referred a whole lot of stuff I just didnt get including talking about VB7 which I hadnt heard of before!! So it wasnt really good info for beginners but I take your point
So VB.NET it is...and by the sound of it in another post SQL (sounding complicated)
To be part of the community you have to know what kinds of questions to ask and unfortunately my confusion has led me to the point of not even knowing that!!! My point being that I dont wanna hold anyone to a guarantee that their suggestion as to which route to take is right or wrong.
So, now you have given your suggestion AND answered the vb/vb.net question I can at least head down a path with some comfort I am perhaps on the right track
Christian Graus wrote: I've looked on Amazon and I can't find a single book that teaches VB.NET instead of teaching the forms designer
hehe, this is what Ive found....dam I can design a very nice form with heaps of controls, all looks great but it just wont do anything!
So thanks for the reply....Im gonna try the O'reilly Book Programming Visual Basic 2005 first, it seems ok in the reviews, was suggested by another post on this forum and ISNT from Sam's! so Im happy
Cheers
|
|
|
|
|
idyot wrote: So it wasnt really good info for beginners but I take your point
VB6 was a different basic language, and Microsoft moved to VB.NET ( which is VB7 ), in 2002. There was Visual studio 2002, 2003, and 2005, but 2003 was 7.1, and .NET 1.1. 2005 is .NET 2.0, and, I guess, VB8. So, it's a little convuluted, but it doesn't matter, 2005 is what you want to learn.
idyot wrote: and by the sound of it in another post SQL (sounding complicated)
SQL is a simple enough language, it's only use is to provide access to data in databases. Learn VB.NET first, then move on to SQL, but SQL is a lot easier ( because it does less )
idyot wrote: To be part of the community you have to know what kinds of questions to ask and unfortunately my confusion has led me to the point of not even knowing that!!!
Generally speaking, any question that starts with 'I want to know how to do x, and these are the things I've tried, but instead of doing what I hoped, I got this error/this happened', are always well recieved. Questions like 'I wrote some code and it doesn't work - why', or 'I need the code to do x' are not, because they don't show any indication that the person asking has done anything to try and solve their own problem.
idyot wrote: My point being that I dont wanna hold anyone to a guarantee that their suggestion as to which route to take is right or wrong.
Well, that's the nature of online forums. I correct advice that's well meaning but wrong, all the time. I also see a lot of smart, committed people offering very good advice here.
idyot wrote: So thanks for the reply....Im gonna try the O'reilly Book Programming Visual Basic 2005 first, it seems ok in the reviews, was suggested by another post on this forum and ISNT from Sam's! so Im happy
O Reilly books are good, and Jesse Liberty is a good writer, but I thought that book seems forms oriented, so I didn't recommend it. It could well be good tho, I can see that fewer and fewer books have the guts to teach command line programming first, they just wouldn't sell.
Good luck !!
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
(1) Beginning Web Programming using VB.NET and Visual Studio .NET by by Daniel Cazzulino.
(2) An Introduction to Object-Oriented Programming with Visual Basic .NET by Dan Clark.
(3)Learning Visual Basic.NET Through Applications by Clayton Crooks II.
(4) An Introduction to Programming with Visual Basic .Net by David I. Schneider.
(5) Introduction to Visual Basic Using .NET by Robert J. Oberg, Dana L. Wyatt
Hope these books will help you.
But Sams Teach Yourself Visual Basic .NET in 21 Days and Sams Teach Yourself More Visual Basic .NET in 21 Days by Duncan Mackenzie, Kent Sharkey by Lowell Mauer is just the old story.i won't prefer that book for VB.Net.
Regards,
Satips.
|
|
|
|
|
Hi,
I am using VS2005 and when I was trying to put a template Item to a data grid I am getting this error " Option Strict On disallows late binding " Not sure what it means can some one help me in fixing this error.
The code I used was
<asp:templatecolumn headertext="Status">
<itemtemplate>
<asp:label id="lblLabelName" runat="server" text="<%# Container.DataItem("AwardDesc") %>">
Thanks,
Uday
Uday
|
|
|
|
|
You need to re-post your code with the
"Ignore HTML tags in this message" checked so your code shows up.
Thanks,
Ben
|
|
|
|
|
What is three tier architecture in VB.net
|
|
|
|
|
|
Three Tier Architecture were:
User tier – This tier presents the user interface (UI) for the application, displays data and collects user input. This tier also sends requests for data to the next tier. This tier is often known as the presentation layer.
Business tier – This tier incorporates the business rules for the application. This middle tier receives requests for data from the user tier, evaluates them against the business rules and passes them on to the data tier. It then receives data from the data tier and passes this back to the user tier. This tier is also known as the business logic layer.
Data tier – This tier communicates directly with the data store (SQL Server database, other type of database such as Oracle, Exchange data store, Excel workbook, etc.) and passes data between the data store and the business tier. This tier is also known as the data layer.
Regards,
Satips.
|
|
|
|
|
three tier architecture has nothing to do with VB.NET, it's a general principle of software design. If you google for n tier, you might get more hits, that's what it's generally referred to. Drop VB.NET from your search, it's irrelevant.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
what's the source code for shutting my pc using the vb?
or opening my dvdr?
thankz,
|
|
|
|
|
shdtwen wrote: what's the source code for shutting my pc using the vb?
Whatever the code is that you come up with. But, in the end it's going to involve calling ExitWindowsEx[^].
If you want examples of it's use, all you have to do is Google for "vb.net ExitWindowsEx[^]".
|
|
|
|
|
or you could use the ms-dos's shutdown command
shutdown -s -f
where:
-s shutdown computer completly
-f force to close applications
|
|
|
|
|
Shutdown doesn't come with all flavors of Windows.
|
|
|
|
|
Dave Kreskowiak wrote: Shutdown doesn't come with all flavors of Windows.
I was going to say that. It has odd variations in Linux depending on what distribution...
|
|
|
|
|
Can someone tell me the difference between these similar dataset writing routines?
The data writing subroutine:
Private Sub New_Bindings(ByVal intOrdinal As Integer, _
ByVal strCode As String, _
ByVal strName As String)
drCurrent = MyDataSet.Tables("tblBindings").NewRow()
drCurrent!Ordinal = intOrdinal
drCurrent!BindingCode = strCode
drCurrent!BindingName = strName
MyDataSet.Tables("tblBindings").Rows.Add(drCurrent)
Call Show_Changes("Sub New_Bindings", MyDataSet)
End Sub
After each row is written into the dataset I have another subroutine that prints out the results called Show_Changes.
Case one – The data is placed directly into the subroutine call.
I’m writing 5 rows to the dataset like this:
Call New_Bindings(1, "TST1", "Record 1")
Call New_Bindings(2, "TST2", "Record 2")
Call New_Bindings(3, "TST3", "Record 3")
Call New_Bindings(4, "TST4", "Record 4")
Call New_Bindings(5, "TST5", "Record 5")
Output screen results after each row addition:
Sub - Sub New_Bindings
TableName: tblBindings
1 TST1 1 Record 1
Sub - Sub New_Bindings
TableName: tblBindings
1 TST1 1 Record 1
2 TST2 2 Record 2
Sub - Sub New_Bindings
TableName: tblBindings
1 TST1 1 Record 1
2 TST2 2 Record 2
3 TST3 3 Record 3
Sub - Sub New_Bindings
TableName: tblBindings
1 TST1 1 Record 1
2 TST2 2 Record 2
3 TST3 3 Record 3
4 TST4 4 Record 4
Sub - Sub New_Bindings
TableName: tblBindings
1 TST1 1 Record 1
2 TST2 2 Record 2
3 TST3 3 Record 3
4 TST4 4 Record 4
5 TST5 5 Record 5
This works just fine. All the records have been written to the dataset and I can use the BindingNavigator control to go from record to record.
Case 2 – The data is placed into the subroutine via variables.
Call New_Bindings(CInt(txtOrdinal.Text), txtBindingCode.Text, txtBindingName.Text)
Output screen after the same five rows are added using the data entry form.
Sub - Sub New_Bindings
TableName: tblBindings
1 TST1 1 Record 1
Sub - Sub New_Bindings
TableName: tblBindings
1 TST2 2
2 TST2 2 Record 2
Sub - Sub New_Bindings
TableName: tblBindings
1 TST3 3
2 TST2 2 Record 2
3 TST3 3 Record 3
Sub - Sub New_Bindings
TableName: tblBindings
1 TST4 4
2 TST2 2 Record 2
3 TST3 3 Record 3
4 TST4 4 Record 4
Sub - Sub New_Bindings
TableName: tblBindings
1 TST5 5
2 TST2 2 Record 2
3 TST3 3 Record 3
4 TST4 4 Record 4
5 TST5 5 Record 5
As you can see the dataset is not the same. The method of data entry is the same, except that case 2 uses variables instead of literals. Obviously .NET handles these two similar data entry methods differently, but I haven’t a clue as to how or why this occurs.
Thanks,
Quecumber256
|
|
|
|
|
Will you post your current iteration of the New_Bindings method?
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Cleako:
I'm not sure if I understand you. The current method is the New_Binding subroutine I had at the beginning of the post.
Do you want the whole form class? Code and all?
Thanks,
Quecumber256
|
|
|
|
|
hi,
good people.
I try to convert a database access in mysql server I create a dump file where I keep all the information from the access database.
When I want to create this dump file I get this error:
"The CLR has been unable to transition from COM context 0x1a6e78 to COM context 0x1a6d08 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations."
please help.
thanks
|
|
|
|
|
We'd need to see the code that is generating the error. Not the whole app, just the section where the error is being thrown.
|
|
|
|
|
Hi,
this piece of code:
sqlcode = sqlcode & "'" & conv_str(System.Text.Encoding.Default.GetString(crs.Fields(cfieldix).Value), "mysql") & "'"
return the information from a blob field
and the function where the error is being thrown is:
Private Function conv_str(ByVal str As String, ByVal provider As String) As String<br />
<br />
Dim i As Integer, nlstr As String, rstr As Object<br />
' string validation check the string for invalid characters<br />
' keep characters that have the Asci code 32-165, 192-255 and 0,8,9,10,13<br />
' fix here the euro_symbol probleme :p<br />
' provider can either be MySQL or MSSQL<br />
Try<br />
str = str.Normalize()<br />
Catch ex As Exception<br />
'remember to make a detailed report of the error here<br />
conv_str = "NULL"<br />
<br />
Exit Function<br />
End Try<br />
<br />
Dim chrCode As Long, j As Long<br />
For j = 1 To Len(str) Step 1<br />
chrCode = Asc(Mid(str, j, 1))<br />
If chrCode < 32 Then<br />
If chrCode <> 0 And chrCode <> 8 And chrCode <> 9 And chrCode <> 10 And chrCode <> 13 Then<br />
str = Left$(str, j - 1) & " " & Right$(str, Len(str) - j)<br />
End If<br />
End If<br />
If chrCode > 165 And chrCode < 192 And chrCode <> 180 Then<br />
str = Left$(str, j - 1) & " " & Right$(str, Len(str) - j)<br />
End If<br />
<br />
Next j<br />
<br />
nlstr = ""<br />
rstr = ""<br />
i = 1<br />
<br />
If (provider.ToLower() = "mysql") Then<br />
While i <= Len(str)<br />
<br />
Select Case Mid$(str, i, 1)<br />
Case Chr(0) ' ASCII NUL<br />
nlstr = ""<br />
rstr = "\0"<br />
Case Chr(8) ' backspace<br />
nlstr = ""<br />
rstr = "\b"<br />
Case Chr(9) ' tab<br />
nlstr = ""<br />
rstr = "\t"<br />
Case Chr(180)<br />
nlstr = ""<br />
rstr = " '' "<br />
<br />
Case "'"<br />
nlstr = ""<br />
rstr = "\'"<br />
<br />
Case """"<br />
nlstr = ""<br />
rstr = "\"""<br />
Case "\"<br />
nlstr = ""<br />
rstr = "\\"<br />
Case Chr(10), Chr(13) ' line feed and carriage return<br />
If nlstr <> "" And nlstr <> Mid$(str, i, 1) Then<br />
' there was a previous newline and this is its pair: eat it<br />
rstr = ""<br />
nlstr = ""<br />
Else<br />
' this is a fresh newline<br />
rstr = LINE_BREAK<br />
nlstr = Mid$(str, i, 1)<br />
End If<br />
Case Else<br />
nlstr = ""<br />
End Select<br />
<br />
If rstr <> "" Then<br />
str = Left$(str, i - 1) & rstr & Right$(str, Len(str) - i)<br />
i = i + Len(rstr)<br />
rstr = ""<br />
Else<br />
i = i + 1<br />
End If<br />
End While<br />
<br />
End If<br />
<br />
<br />
conv_str = str<br />
<br />
End Function
thanks
|
|
|
|
|
generally we write
private sub abc
end sub
In an article i read(in C#)
class class1
{
public enum one
{
g=0
}
}
then
private class1.one enum()
{
}
I was trying to do the above thing in vb.net
like
class class2
private class1.one enum()
end class
but there occured an error
End of statement expected.
|
|
|
|
|
Nilish wrote: private class1.one enum()
enum is a reserved word. I think you're looking for
Private Sub SomeMethod(ByVal var As one)
|
|
|
|
|
hi all!
Does the call of dll in multi-threading creates another thread automatically.
i have a method which is being called by a thread and in that method i am calling a function from a dll. but before the process of the dll is finished the thread goes ahead and the second thread starts which messes up the running of the program. its like.
sub method()
monitor.enter
somecode
call to a dll method
somecode
monitor.exit
end sub
Whats happening is that the dll method is doing something which takes time. but the execution of the program goes ahead and exits from the monitor, there by giving access to the next thread. which is causing problem
Regards
|
|
|
|
|
hi friends,
i am currently working on a com Addin to excel using VBA programming.
by default the excel applicaton object has no of columns as 256.
but microsoft says that no of columns is increased to 16536
i want to set the Application object property to 16536
how to do it.
thanks and regards
prashant
|
|
|
|
|
I cant reproduce this on my development machine but there is an issue on the user's machine. They will choose to edit values which sets the databinding to the textboxes and comboboxes on the form. Then they can change a value and the next row receives that ONE changed value so say there are 20 columns, the user will change column 5 and update that row and the next row also receives that one changed value.
I update the row by finding the ID in the selected row and finding that row in the datatable and updating it which works GREAT on my side and I watched the user reproduce this issue over and over and I tried it over and over on my box and nothing.
I would think that when I update the row and it also updates the one row below that it would change the entire row to match the current row but it only changes the one thing that differs.
Any ideas???
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|