|
Hi, Sir.
I convert vb 6.0 project to vb.net.
The problem is UserControl in vb 6.0 has AsynReadComplete event but vb.net is not.
Do you know how to solve this problem.
Thank You.
|
|
|
|
|
hi to all
i am new to vb.net.i need some help in binding the controls to the dataset in ado.net.
i want to attach comboboxes in my form with the through displaymember and valuemember properties to the tables.
suppose as a test case if i have 2 combos for dept,desig. when ever i select a particular dept then the desig combo should show only the designations in that dept dynamically.
i can't attach the original table directly as the rows in the original disig table changes dynamically ...
for this if i manually add these values dynamically through a datareader into these combos then settng the valuememeber values will be difficult (may not be possible).and these combos are not bound then the changes to the table will not be refreshed automatically.
At present i am creating one temporary table for each of these combos (here it requires 2 tables) and fill the data rows that match the crieteria through an adaptor.(not attaching the original tables)
its working fine. "but i am concerned about the performance and optimization of my application.
Is this approach is correct. or is it better to use views in place of tables.
will it consume less memory than the tables cosume ?.
Or is there any other way to achieve this task ?
any body please help me out.
thanx in adv.
Mohan G
Mohan G
|
|
|
|
|
Does anyone have any sample code which will show me how to load all the Microsoft exchange 2000 servers within the organisation into a dropdown combo box?
Thanks
Regards
Mohammed
|
|
|
|
|
Okay, I've not done any Visual Basic programming for the longest time and can't realy remember much in the way of technique, but I do remember the OLD functions: PEEK and POKE. I didn't realize till just the other day that VB.NET dosen't have them. SO... I did as every person with common sence would do: Search the internet. All I've found were sources/help/etc. on older versions of VB. I only have .NET since I got Studio .NET for school. Other than the older VB code and help, I've found nothing else on workarounds for those two commands.
If any of you have a good work around I could use or help me out w/ developing a DLL (or OCX, if that's what VB uses if I remember correctly) in C/C++ (I can do C/C++ but to an extent, I'm fairly new and well, the college I'm going to isn't too helpful on advanced things. They seem to focus more around database development) so that I could use PEEK and POKE as functions in VB.NET, it would be GREATLY appreciated.
|
|
|
|
|
PEEK and POKE were wrappers around memcpy , what do you need this for?
- Nick Parker My Blog | My Articles
|
|
|
|
|
Me and a bunch of friends used to make little simple games and we'd have little challenges to see who could make a trainer for it first. It was pretty fun. We had 2 teams and each one made a game and tried to hide their vars as well as they could and the other team had to kinda make a trainer without cracking the game. ANYWAY, I only have VB.Net to write the little trainer-type programs. I also want to try my hand at writing a game trainer in VB.NET. I like the idea of having it in a nice windows GUI (and I don't know how to do that in C++.NET yet).
|
|
|
|
|
There's a few articles on CodeProject about something like that. It's used with Minesweeper...just search for Minesweeper in the Articles section and you'll find them.
RageInTheMachine9532
|
|
|
|
|
I am a beginner in VB. I want To use Crystal report.where from I access it?
|
|
|
|
|
Add a new item to the project, and it's one of the options....
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I have an application which works fine on my home computer, however when I try to run the same application over the network on the computer in the office I get an error
An unhandled exception of type system.security.securityexception occurred in MSOTest001.exe
Addtional information:System.Security.Permissions.SecurityPermission
This error is driving me nuts...I hope there is someone who can advise me as of what to do.
Thanks
Regards
Mohammed
|
|
|
|
|
Hello,
Does your test app access the file system or anything else like that? Running an app from a network share is a security risk. So .NET sandboxes the app and doesn't let it do certain things. If you try copying the application to the harddrive, does it still cause the security exception?
To fix the problem of sandboxing you will need to grant the application permissions to run from the network.
Hope this helps,
Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
im trying to catch the way to start, im coming from Borland programming style, i want to start an application that uses SQL Server and VB.NET (C#) but reading tutorials i have noticed that people talks about ADO.NET, i thinks its an intermediate between the app and the server. my question is if ADO.NET is necesary? or are another way to work (like Delphi and Interbase direct connection)
thanks
Markitoz
|
|
|
|
|
ADO.NET is the way to go to get your app talking to an SQL Server and is absolutely necessary.
Here is a little snippet from the SQL class for a website I'm working on:
Public Shared Function GetGameStatus() As GameStatus
Dim sConnectionString As String
Dim oConnection As SqlConnection
Dim oCommand As SqlCommand
Try
sConnectionString = ConfigurationSettings.AppSettings("DataConnection")
oConnection = New SqlConnection(sConnectionString)
oCommand = New SqlCommand
oCommand.Connection = oConnection
oCommand.CommandText = "SQLGetSystemParameter"
oCommand.CommandType = CommandType.StoredProcedure
Dim sqlParam As New SqlParameter("@ParmName", SqlDbType.NVarChar, 25)
sqlParam.Value = "GameStatus"
oCommand.Parameters.Add(sqlParam)
sqlParam = New SqlParameter("@ParmValue", SqlDbType.NVarChar, 255)
sqlParam.Direction = ParameterDirection.Output
oCommand.Parameters.Add(sqlParam)
sqlParam = New SqlParameter("RETURN_VALUE", SqlDbType.Int)
sqlParam.Direction = ParameterDirection.ReturnValue
oCommand.Parameters.Add(sqlParam)
oConnection.Open()
oCommand.ExecuteNonQuery()
oConnection.Close()
Dim iReturnCheck As Integer = Integer.Parse(oCommand.Parameters("RETURN_VALUE").Value)
If iReturnCheck = 1 Then
GetGameStatus = GameStatus.Invalid
Else
GetGameStatus = iReturnCheck
End If
Catch ex As Exception
GetGameStatus = GameStatus.Invalid
Finally
If Not oCommand Is Nothing Then
oCommand.Dispose()
End If
If Not oConnection Is Nothing Then
If Not oConnection.State = ConnectionState.Closed Then
oConnection.Close()
End If
oConnection.Dispose()
End If
End Try
Return GetGameStatus
End Function
RageInTheMachine9532
|
|
|
|
|
Dave Kreskowiak wrote:
ADO.NET is the way to go to get your app talking to an SQL Server ...
Not only SQL Server, ADO.NET can work with many more data sources such as Microsoft Access and Oracle to name a few.
Thank you,
Gurmeet S. Kochar If you believe in God, it's because of the Devil
My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control
|
|
|
|
|
markitoz wrote:
my question is if ADO.NET is necesary?
Yes, ADO.NET is the part of the .NET Framework that deals with databases. Just as ASP.NET is the part that deals with Web Applications.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
Does ADO .NET work with a site built in php and MySQL. ?
|
|
|
|
|
Hello,
I am not very familiar with the VB products available. In our office we have VB6 so I decided to build an application, only to find out that I couldn't link into an access 2000 database, only '97. Is my next step to get VB.net or can I upgrade my VB6 (I already have service pack 6)?
Thanks in advance for any help.
Dave
|
|
|
|
|
use the last service pack (SP6) for Visual basic 6 if you want to use access 2000 with dat acontrol.
I use SP5 and works fine with access 2000 format
if you use ADO to connect to databases download the last MDAC from microsoft (version 2.8 as i recall)
|
|
|
|
|
hi
i want to convert my english format keyboard to urdu format when i type in my programm in console or Gui. plz give me the code that convert english format to urdu in visual basic.net.
thanx
best regards.
tenzeel.
tenzeel
|
|
|
|
|
I take it the symbols on the keyboard and it's layout are much different than an English keyboard. First, your going to have to replace the keyboard. Second, go into the Region and Language Options control panel and select the language you want. It's MUCH MUCH easier than writing a keyboard translator.
RageInTheMachine9532
|
|
|
|
|
I am receiving the following error when I try to open an existing VB .NET solution in the .NET IDE
Object reference not set to an instance of an object
The solution was copied from its existing location on the network, to my home network drive. I am able to see the form's code, but I can not pull up the form design view. I can run the project, change code, etc but I can not access the form.
When I click on the error, I jump to the first line of code for the form class. When I ask someone else to copy the master to their network drive or a removable drive, they do not receive the problem. This has happended in two separate instances this week.
|
|
|
|
|
My first question would be are you running the same version of the .NET Framework at home as your are at work? Are you running 1.0 at home and 1.1 at work?
RageInTheMachine9532
|
|
|
|
|
I am new to vb.net and crystal reports, so i don't know where to go to ask this question so if anyone could tell me a better forum to go or help me out I would greatly appreciate it. I am trying to create a report with two sections and totals for each the way i set it up is like this:
page header
'this part has the column names
Details
'this part is where the info form the database is shown(multipleEntries)
report footer
'this part is where the totals are shown
Now i want to put a section just like this one under it. so I add more sections to the footer but when it gets the info from the database i only get one entry back and there are many.
Thank you,
Santana
|
|
|
|
|
If you use the XP theme in your VB6 app, I have noticed:
(1) OptionButton background (i.e. where the caption is) is totally black!
(2) If CommandButton's are contained within a Frame they have a black thin border!
Does anyone know of anyway to stop this unwanted 'features'?
|
|
|
|
|
I have an array made up of a cutom structure called sl1. How can I find the index of the sl1 object, in the array, that has a name property equal to value I'm searching for?
|
|
|
|