|
Also means that the support is limited to that subset. Compile me a vbs without an IDE, build me an AdventureWorks interface using VBS. You could, but please do, and then build a business around that.
The flowers on its grave have withered and died by now. Meaning only banks and governments will probably use it. Aw, and hospitals.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
vbOK.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
OutOfRangeException
Either 0 or non-zero is expected.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: Either 0 or non-zero is expected. VB doesn't know what 0 is.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Probably true
|
|
|
|
|
I really wanted to do this with vb.net. But the problem here is that, am unable to solve the problem with my vb.net which is "error running project, could not load file or one of its dependencies. The project was expected to contain an assembly." After so much struggle and researched, formatting, uninstall and restall, and yet no positive result, I decided to use vb6 and netbean for developing desktop applications. So any help will be welcome.
|
|
|
|
|
Really, the best thing to do is scrap the VB6 code and just rewrite it by hand in VB.NET and ADO.NET.
Copying and pasting the VB6 code just gets you into trouble in VB.NET. The two languages are semantically similar but function very differently. VB.NET has huge advantages over VB6 because of OOP and the .NET Framework.
|
|
|
|
|
Otekpo Emmanuel wrote: I really wanted to do this with vb.net Ah. Sooo, if I help you to build this in VB.NET succesfully, you'd be equally happy?
Otekpo Emmanuel wrote: So any help will be welcome. You've got the VB.NET IDE installed?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Hello !
I have a BindingSource , and some control bound to it.
Sometimes the data on bindingsource is changed
How can I do that when the data of current object on bindingSource is updated , the corresponding controls in the form bound to changed fields change the background color for example to Red?
I know that there's an event BindingSource.CurrentItemChanged that is fired when the changes are made.
But how can I find the fields that have changed , and the control that is bound to this field ?
Thank you !
|
|
|
|
|
dilkonika wrote: the corresponding controls in the form bound to changed fields change the
background color for example to Red? What did you bind to? A TextBox? Does that have something like a "TextChanged" event?
Color the sender.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Thank you , but the situation is different.
I have Textboxes, Comboboxes , ...etc bound to bindingsouce.
But the changes are made directly to bindingsource and not to controls bound to it. so when the binddingsourc is changed , I want to find the field that has changed , after I want to find which control is bound to that field and after I want to change the color of that control.
|
|
|
|
|
dilkonika wrote: I want to find the field that has changed I'm not even sure whether or not the BindingSource exposes that information. The DataMemberChanged[^] event looks promising. It might not express "what" has changed, but you could always compare the old version to the new one, provided you have access to those.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I wrote a windows service, and used the event log to log messages to the Applications event log.
But I would like to complete the project with a companion DLL file that contains the error codes and messages, so the messages output clean, and that I have a list of valid error codes to go with them
I've been googling this, but can't seem to find anything for doing it in VB, a class DLL.
I saw the messages.mc file examples, a gave it a whirl in win32, but that's alot of work, and I think there was some restrictions because I did it in VB.
Is this even possible to do?, what keywords would be used for finding some examples.
modified 10-Oct-14 13:12pm.
|
|
|
|
|
You could build an assembly with a single resource-file. A dictionary of strings.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I can do that in the new DLL, or the windows service exe?
|
|
|
|
|
You could also add it to the Windows Service
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Quick-guide;- Right-click solution in solution-explorer, add item
- Tab "General", choose "Resource File".
- Name it "Errorz.resx".
- Click on "String1", rename to a192432.
- Click on value, add "Ants ate your harddrive."
- Hit Ctrl-Shift-S and go to code
Console.WriteLine(global::YourNameSpace.Errorz.a192432);
If it is in a different assembly, then you'd need to add a reference of course. That way you could also easily translate the messages. There's a project here on CP that does that autmatically using Google Translate. It does not do perfect translations, but it is easier to correct a few sentences than it is to type a lot of them
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
OK thanks!
I spent more hours last night on it, researching what Eddie suggested.
I made a DLL in VB, but it failed. Oh Well. Think I might give the .mc file a manual compile using the command line.
But I will read the articles first.
|
|
|
|
|
|
I'm the beginner. I want to make a dictionary program using MS Access and VB.Net. I want to be in my program when type a word in text box 1 to search then show the meaning in another text box 2. That's all. I don't know how to search and call from Access database. Please help me. I need first. Please. That's my project for my school.
VB.Net, Access
|
|
|
|
|
|
|
Try this out!
At the top most of your code window, type these name spaces
Import System.Data
Import System.Data.Oledb
double click on the search button and type or copy the below code
Dim con As New Oledb.OledbConnection("Provider=Microsoft.Ace.Oledb.12.0; Data Source = theDatabasePath")
Dim cmd As New Oledb.OledbCommand("select * from tblname where srchName = @srchName", con)
cmd.Parameters.AddWithValue("@srchName", txtsrch.Text)
Dim dr As Oledb.OledbDataReader = cmd.ExecuteReader
if dr.HasRows Then
dr.Read()
txtresult.Text = dr("srchName")
else
MsgBox("Name not found")
End if
dr.Close
cmd.Dispose
con.Dispose
con.Close
//////
Explanation
the srchName, I assumed to be your field name.
Table name is the name you gave your table at the backend
databasepath is the path that lead to your database. You can get the db path by right clicking on the database tehen select properties
|
|
|
|