|
prince nani wrote: any sample programs on wrapper classes.
A wrapper class is usually where a piece of non-OO functionality is wrapped encapsulated in a class so that the callers of the class don't have to deal with the non-OO implementation. There are many classes in the .NET Framework that are wrapper classes around parts of the Win32 API.
You can also get wrapper classes where the class encapsulates complex, but repeated, set of functionality from one or more other classes into a single place. In this case, it would more accurately be called a Façade. The My namespace in VB.NET contains many façade classes.
|
|
|
|
|
To furher add an item to the list, let's mention the Adapter pattern, that is, at the end, a wrapper class.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
I have question regarding the datarow(might be silly one)
1) When we create a datarow object from database with certain data, how can we verify that the data is properly loaded in datarow object.
2)In window application, I am filling up a listview with data from DB, Now database is updating regularly. So, i also want that listview reflect the chages accordingly.(like refresh)
How can i acheive this in window application?
|
|
|
|
|
using i want to restrict entering symbols except the "." (dot) how acn i do this ?
|
|
|
|
|
use key handler
regards sindhu tiwari
its me sid
|
|
|
|
|
What? How does this answer the OP? He's asked for a regular expression not gibberish.
|
|
|
|
|
The regular expression "^[^\.]+$" matches a string that is at least one character and has no periods.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
This regular expression gets all ordinary characters plus the . character.
\w*\.*
|
|
|
|
|
|
|
if (char.IsNumber(e.KeyChar) == false)
{
e.Handled = true;
}
write this in the key press event on a textBox then it will allow only integers
i hope it is useful to u.....
its me sid
|
|
|
|
|
Hi,
Consider the following class:
class A{<br />
private int i;<br />
private int j=8;<br />
private int k;<br />
{<br />
int i =j;<br />
}<br />
public Test1a(int k)<br />
{<br />
this.k=k<br />
}<br />
}
...
program is not complie why?
|
|
|
|
|
Because you missed a semicolon after this.k=k ?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
this.k=k; ......... now
I AM WORKING ON "PLOTTER ROBOT"(FYP).
|
|
|
|
|
Just curious: But didn't the compiler tell you that there was a missing semi-colon? If not what did it say?
|
|
|
|
|
Argghhhh - it was an examination question. Really, do we want numpties like this unleashed on the workforce if they can't spot something simple like this?
|
|
|
|
|
Pete O'Hanlon wrote: Really, do we want numpties like this unleashed on the workforce if they can't spot something simple like this?
In the OP's defence *takes own temperature*, before the compiler warned about missing semi-colons I could be looking at the screen for ages before spotting it. This was especially true in Borland's Turbo C++ (The fist C++ compiler that I used which was DOS based) as it would find fault with everything after the line with the missing semi-colon because it would just get really confused. And I spent ages tracking down dozens of errors that didn't exist.
However, given the small size of the code, it should be easy to spot a missing semi-colon.
|
|
|
|
|
Colin Angus Mackay wrote: This was especially true in Borland's Turbo C++ (The fist C++ compiler that I used which was DOS based) as it would find fault with everything after the line with the missing semi-colon because it would just get really confused. And I spent ages tracking down dozens of errors that didn't exist.
Ah, but experience in those days used to show that clearing one error would normally clear a couple of hundred errors, which was why I always used to start at the errors at the top of the failure to see if they could be the culprit. 9 times out of 10, the error was in the top 2.
|
|
|
|
|
put semicolon at the end of the statement
this.k=k;
dhans
|
|
|
|
|
it is my exam's question
I AM WORKING ON "PLOTTER ROBOT"(FYP).
|
|
|
|
|
HI ,
i want to know how to create a class which has an INSERT method for several forms.
for example: i have 3 forms , FORM1,FORM2 FORM3.
FORM1 has 3 textboxes.
FORM2 has 7 textboxes .
FORM3 has 20 textboxes.
Each textbox contrl has datas with differen datatypes.i want to create a common class with INSERT method which inserts data in different table for its corresponding calls made by every forms.
i had already done this task but seperate INSERT methods for individual forms.
now if i try to user a common insert method for the 3 form with diff contrls and datatypes, i cant get a clear idea to accomplish this task.
can anybody give me solution.
thanks
KSSK
|
|
|
|
|
|
First "Happy new year to all"
I am using listview control of c#.net 2003,
And when i am updating the list with data from database it giving the
System.NullRefrenceEXception error.
What can be the problem?
Is the data not fetching up from DB, or I am not linking it properly?
And How can i analyse this?
|
|
|
|
|
happy new year to u to .......>
its me sid
|
|
|
|
|
sindhutiwari wrote: its me sid
thanks for wishes
I know its only u
It will be more helpful if u had reply the query
|
|
|
|