|
Would you mind explaining what you mean by "checking the credentials of the user" and how that relates to emails??
|
|
|
|
|
I am confused about the data binding in the vb.net 2005.
I don't know how to use the below properties to bind with the database data and after adding and editing the data save back to the database.
[code]
Public ReadOnly Property CustomerID() As String Implements ICustomer.CustomerID
Get
Return mstrCustomerID
End Get
End Property
Public Property CompanyName() As String Implements ICustomer.CompanyName
Get
Return mstrCompanyName
End Get
Set(ByVal Value As String)
mstrCompanyName = Value
End Set
End Property
[/code]
Is there is any link where I can understand the complete usage of classes and data binding.
Thanks In advance
|
|
|
|
|
You would need to supply the code to read/write the data back to the database. If I understand your implementation (you're leaving out a lot of information!), you would possibly have a Customers collection class that holds these Customer (???) objects. This Customers class would be responsible for iterating over the items in its collection and updating the database with any changes, as well as retrieving customer records from the database and creating new Customer object from it.
This has nothing to do with data binding, which means that controls are bound to a data collection, like a DataTable or some other collection.
Or did I miss the point of the question??
|
|
|
|
|
Did someone say blatant plug?
Diamond Binding[^] will perform that task for you, and also keep those property definitions synchronised with your database with a handy VS addin.
If you want to do it yourself, which is extremely boring, repetative, and likely to break every time you change the database, then there is a quite a few articles on Data Access Layers (DAL) on codeproject. Everyone seems to love doing it the hard way :P
|
|
|
|
|
I am using vb.net 2005 as front end and Oracle 8.0.5 for back end.How I can add oledbdataadapter and configure this to Oracle database.Whenever I tried to configure the oledataadapter and try to select the connection it shows only two data sources in the list
1. Microsoft Access Database File
2. Microsoft SQL Server Database File.
Any Idea how I can configure this to Oracle Database?
Thanks in Advance.
|
|
|
|
|
You shouldn't need to select anything, just enter the connection string in code.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
In code I can enter the connection string but what about if I want to bind controls at design time?
|
|
|
|
|
I don't know how to really start this kind of project. I have never tried to manipulate another .exe with vb.net. I would like to click on a place where you could type and have my program type something preset like "Hello, this should be auto typing."
|
|
|
|
|
Hi,
I´d like to create a XML Header like this:
<?xml version="1.0" encoding="utf-8"?>
<XDOMEA xmlns="http://www.xdomea.de" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xdomea.de xdomea_root_1_0.xsd" XDOMEA_Version="1.0">
All I´ve tried gave not that result or ends with an exeption or error.
w.WriteStartDocument()
w.WriteStartElement("XDOMEA")
w.WriteAttributeString("xmlns", "http://www.xdomea.de")
w.WriteAttributeString("xmlns", "xsi", Nothing, "http://www.w3.org/2001/XMLSchema-instance")
w.WriteAttributeString("xsi", "schemaLocation", Nothing, "http://www.xdomea.de xdomea_root_1_0.xsd")
w.WriteAttributeString("XDOMEA_Version", "1.0")
What´s wrong?
Thanks, Daniel
|
|
|
|
|
Hello Daniel,
In regards to your query I would like to mention that you are trying to bind "xmlns" prefix to "xsi" namespace URI, it is not the correct procedure because "xmlns" is a special reserved attribute name and cannot be bound to any namespace URI other than "http://www.w3.org/2000/xmlns/".
w.WriteAttributeString("xsi", "noNamespaceSchemaLocation", "http://www.xdomea.de xdomea_root_1_0.xsd")
I hope this helps.
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
I need to read the physical drive sectors and use them can I do that using vb.net or do I have to use VB6.
I don't want to read the logical drive I want to read the physical drive.
i.e.:
010 editor (software) lets u read either the logical drive of a physical drive or the physical drive itself.
thx for ur help.
BiG RaLpH
if you don't have an answer don't answer it will be better.
|
|
|
|
|
You have to use the Win32 API to do this. There are no classes built into the .NET Framework to do it for you. Even if you use VB6, you still have to use the exact same technique.
Google results for "vb.net read disk sectors[^]".
|
|
|
|
|
Hello
I need to split the words in a way that each should be meaning ful. For Example we have word "codeproject" , this consist of two words Code and Project. I want to split the words like this . Another Examples would be
somehow= Some How.
thisis = this is
whatisyourname= what is your name
Any help would be appreciated.
Regards
Rizwan Bashir
Rizwan Bashir
<a href="http://www.alm-soft.com/">ALM Soft</a>[<a href="http://www.alm-soft.com/" target="_blank" title="New Window">^</a>]
|
|
|
|
|
Well you will need a dictionary to start
The you will need to reconstruct the text whilst attempting to match words in the dictionary.
Good luck, you will need it.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
i have built a nice webbrowser with visual basic 6
new downloads are open and and are linked to the application so
if i close the application the download is closed with the application
in the middle of the download i need help to solve it with of one of this options if possible 1.find a way for the download windows not to be linked to the application without using download manger (download mangers have problem with downloading from storage web sites like rapidshre)
2. does anybody have away to check if there are downloads in Progress so the application will not close if there is a download in Progress
|
|
|
|
|
MEIRB111 wrote: 1.find a way for the download windows not to be linked to the application without using download manger
Write a small, seperate application and launch it for each download, passing in the URL as a command line parameter.
MEIRB111 wrote: 2. does anybody have away to check if there are downloads in Progress so the application will not close if there is a download in Progres
If you have number 1 written, this becomes pointless. If not, all you have to do is add a counter in your code that get incremented for each download that starts and decremented for each download that finishes. If the counter is 0, then you can safely close the app, if not, well...
|
|
|
|
|
you did not give any way to do this where would i get the download url visual basic 6 webbrowser doesnt have file download url so you answerd without the place or code in the visual basic 6 webbrowser.
|
|
|
|
|
OK, I see what your getting at now.
You have two problems.
1) The webbrowser control doesn't expose any methods to get the URL of a file download in progress, nor does it doesn't expose any methods to know that a file download is currently in progress.
2) If you close your app, all the child windows close with it, even the file downloads. You cannot prevent this.
Under the .NET Framework 2.0 and above, there is a FileDownload event that tells your code when a seperate file download starts. I don't think event exists in the version you're using.
|
|
|
|
|
Hi,
I have a common mousemove/down/up handler for any control placed on the panel at runtime .It's Working fine .
I need for moving and resizing controls (labels/textboxes/checkboxes/etc) and shape controls (LineShape ,RectangleShape, OvalShape which are from powerpacks.dll ) which i place on the Panel which are generated at runtime .
Is there any Class for creating Control Selection and Resizing Handles for my controls which are present on the panel at runtime ??????
I want to show the selection if user presses the control and able to resize those controls with resizing handles for Any Typeof control (Textbox,Label,.... LineShape,RectangleShape ,OvalShape ) ????
If i release the mouse button after resizing it has to update the size or location of that control same like in vs2005 design time environment but here at runtime .
plzzz ,
Thanks & Regards
For1206
|
|
|
|
|
for1206 wrote: Is there any Class for creating Control Selection and Resizing Handles for my controls
No, there isn't. This functionality has to be built into the controls themselves, as well as some additional functionality added to the container you put them in.
You're going to have to extend the existing controls classes (Label, TextBox, ...) to make your own versions that support being moved around at runtime as well as containter controls to add support for drawing handles and resizing.
This is not something that can be explained in a few forum posts. It's rather complex and a bunch of points have to be covered to get basic functionality to work. You can learn more from these articles[^].
|
|
|
|
|
|
hi All
i want to Control the Concurrency in my Vb.net Application that is Connection to a SQl table. this is my thought and am open for suggestion. Firstly i want to Add an bit Field in my table and named it "Locked" e.g
Customer
+++++++++++++++++++++++++++++
pk_ID | Cname | Lastname | Locked |
+++++++++++++++++++++++++++++
if its "1" in the Locked field then its locked. So i want to have a Function in my DAL that returns a dataset, but when selecting records it should exclude those are not null in the "Locked" field, that means we don't select records that use locked. In my system we don't select Data for only viewing the, i was gonna create another object for Reader, but it was unnecessary. So when the user selects the records that are not locked, i want to have a Function that will locked those that are selected, so that another user cannot select them.
After the user has Finish with the Updating then the Lock is released , by setting the records that has been "locked" to Null.
My Question is this the good way to handle Concurrency ?
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
What happens if there is a crash while the user is editing a record? What happens if one user opens a record and then goes off and leaves it for a couple of hours?
|
|
|
|
|
hi Paddy
you are right, but now,my users share data amongst themselves, so if one open the record and go without releasing the lock, it wont be a Problem , because him alone can work on that record. the is a rule, and the Rule is that every should log off the system at the end of the day, and all the Lock will be released. if it crashes i will roll back the data and unlock them manualy.
please give more Suggestion.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Vuyiswa wrote: i want to Control the Concurrency in my Vb.net Application that is Connection to a SQl table.
Then you're going to have to understand what concurrency really means. It isn't solved by locking records like this.
How you handle concurrency issues depends on your business rules. There is no single hard and fast strategy that works in all situations. Since I can't get to MS's Pattern & Practices site (there's a design guide that explains a bunch of this - I think it's call the .NET Data Access Architecture Guide), this[^] is about the best I can do right now.
|
|
|
|