|
<br />
Using System.Reflection.
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Are you asking how inheritance work in runtime?
If it creates an instance of both the baseclass and the subclass?
In that case, no, it doesnt create an object per class.. it creates only one single object.
You can think of it as if all the code in the base class is copied into the subclass when you compile.
(this is not quite how it works, but it might be easier to grasp the concept if you think of it like that..)
"this" and "base" are the same object, its just that when writing "base" you can reffer to methods that was defined in the baseclass... but its still the same object, just a different method you are using.
|
|
|
|
|
hi ,
I'm in a little trouble these days ... as im wokirng on a new project and needed help.
Lets first go thru wat's troubling me :
A hierarchy will be set up for the ordering process of Hierarchy users. The order process will work from level 3 to level 2 to level 1. Please note that any level has the ability to order/quote products but can only be submitted to checkout from level 1.
The process can begin from level 3 when they log into the system and at this point they will then be able to search the catalog by clicking through the category, subcategory, and product pages to purchase/quote a product. Once they determine the product to purchase by going to the product detail page that item will then be sent to the shopping cart.
The user can either have the choice to proceed to checkout or continue shopping. Once they are complete and their shopping cart is up to date, they will then submit the order for processing. The email will at this point be sent to the Level 2 that is assigned to be above the level 3 user for them to approve. The level 2 users will have the ability to add, edit, or change the order by adding or deleting products as well as change the quantity of the product. Once they are satisfied with how the order looks they will be able to approve or disapprove the order. If the order is disapproved, they order will be deleted from the site completely and email will be sent to the users of level 3 that submitted the order letting them know it was disapproved.
If the order is approved an email will be sent to the user of level 1 that is assigned to the level 2 user through same department. Once the order has been approved by each level then they will not have the ability to make changes to that order. Level 1 will be responsible for all departments . When the level 1 user receives the email they will be able to log into the system and view the order status window. The level 2 users will have the ability to add, edit, or change the order by adding or deleting products as well as change the quantity of the product. Once they are satisfied with how the order looks they will be able to approve or disapprove the order. If the order is disapproved, they order will be deleted from the site completely and email will be sent to the users of each level that previously viewed or submitted the order letting them know it was disapproved
This is the scenario .how to make such a hierarchy ,,any ideas ,,any starter kits recommeded that resmbel to this scenario ,,or ur thought will be a realy BIG contribution.
im using ASPDOTENT 2.0 and sqlserver 2005 , c# as the language.
waiting for some replies ,
Fad.
Fad .
|
|
|
|
|
|
hi mike ,,
I was thinking that isnt there anything in aspdotnet 2.0 through which i can create and manage such hierarchies and roles ?? plz any help will really give me relief ..
thanx.....
Fad .
|
|
|
|
|
Hello all :
How can I make a simple descending timer???
Thanks in advance
The way of Professional softwares start in two:
Simple codes and develop it.
Simple but effective ideas.
|
|
|
|
|
Funnily enough, the Timer[^] Class.
The timer counts-down to a given interval that you set (in milliseconds) and when 0 is reached an event is fired.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
search at google, i sure that you will find alot of examples
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi ZaidIT
can you tell me y you r wish count down timer?
becuase o9f we can use increment timer many ways.
thanks
|
|
|
|
|
Why does it matter? It is surely a requirement. There are many reasons to have a decending timer. Most of them have to do with UI stuff. Such as informing the user that a certain event will fire in, well, lets say 30 seconds, for example.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hello all:
Thanks for your answers...I'm really thankful that
Thanks
The way of Professional softwares start in two:
Simple codes and develop it.
Simple but effective ideas.
|
|
|
|
|
Creating a control at runtime with out using its class name directly?
For Example
label LB = new label(); // I does not want to use label directly.
I what to use as (what I need)
String k = "label";
k LB = new k(); // I know it is wrong . It is what i need
that how I what to create controls
Plz any body help me.
B V KIRAN KUMAR
|
|
|
|
|
you question is strange,
As far as i understand that you want to add control at runtime,
You can add controls at runtime like this.
Label L = new Label();
L.Name = "L";
L.Location = new Point(0,0);
L.Text = "ABC";
L.Size = new Size(75, 23);
this.Controls.Add(L);
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thanks for your response,
My problem is
From the XML file I will read the controls Names and I will create them at the runtime.
This is what I need
Thanks for your respnse
kk
B V KIRAN KUMAR
|
|
|
|
|
i dont think it can be done, however you can try on google
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Use reflection.
Not at office so can't paste some codes to show you.
Edit: Example[^]
|
|
|
|
|
Thanks for your response,
My problem is
From the XML file I will read the controls Names and I will create them at the runtime.
This is what I need
Thanks for your respnse
kk
B V KIRAN KUMAR
|
|
|
|
|
how secure is the key container?
are there a better solution?
any artickle on the matter will be great help
|
|
|
|
|
The standard 'key container' is a folder under your user profile, under Application Data\Microsoft\Crypto\RSA. Each file represents an issued key. The file itself is encrypted with your master key, which is itself protected by a key derived from your logon password.
The folder is protected by an Access Control List which permits only Administrators, yourself, and the system (represented by the LocalSystem or SYSTEM security principal) to read and write to the folder.
So the ultimate security of the key container is based on the strength of your logon password.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
I am using a datastructure that represents a triangle mesh. It contains a list of 3D-vertices, a list of triangles (indices of the vertices used for the triangle), a list of edges (also indices) and some additional data. Each triangle has a 3D-vertex attached to it (the normal vector), so does each vertex. The angles and the area are also stored with every triangle. And every vertex stores the principal curvatures and their directions (as 3D-vertices). Every vertex stores a list of adjacent triangles and a list of neighboring vertices (also as indices).
All of that is not a problem for serialization. But I also need to store the distances from every vertex to every other vertex (to calculate the curvatures). I do this by storing the distance from one vertex to every vertex preceding it in the list of vertices with that vertex, so there is no redundance. (I tried a single array for all the distances, but it was too much and I got an OutOfMemoryException.)
My sample mesh contains 11703 vertices, 23402 triangles and 35103 edges, but the program should be capable of handling meshes a lot larger. I originally used doubles, as most of the "Math" methods return doubles. But I switched to float to save memory.
Now the program uses about 500MB of my 2GB of memory.
The distances are still too much for the serialization. (I tried storing just the distances using a StreamWriter and WriteLine and got a txt-file larger than 1GB, which is way too large.)
Serialization always throws an OutOfMemoryException. (I used binary serialization and GZip-Compression.)
Does anyone know a way of serializing such large datastructures?
|
|
|
|
|
i'm trying to set focus on selected item but the way i'm using isn't working completely.
i wrote :
listView1.Items[a].Selected = true;
then that item on a(th) index gets selected but everytime i need to scroll down/up to search that item,
how can i set focus on that item?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Try this:
listView1.EnsureVisible(a);
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
yeah, it works, thanks
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
The process cannot access the file 'D:\MyDataBase\69.jpg' because it is being used by another process.
if (PicName != null)
{
if (File.Exists(DBPicPath))
{
sr.Close();
if (File.GetAttributes(DBPicPath) == FileAttributes.Hidden)
//if (File.GetAttributes(DBPicPath) == FileAttributes.ReadOnly)
File.SetAttributes(DBPicPath, FileAttributes.Normal);
File.Delete(DBPicPath);
//File.Replace(DBPicPath, completePath);
}
File.Copy(PicName, completePath);
}
plzzz help me how to delete this file
|
|
|
|
|
Neetu Maheshwari wrote: plzzz
"plzzz" is irritating. The word is "Please". Please use it.
Neetu Maheshwari wrote: help me how to delete this file
If another process has a handle on the file then you cannot delete it because it is in use. It is as simple as that. The operating system is protecting one process from interference by another process.
If you want to delete the file you must get the other process to release the file.
This error can also happen when another part of your program opens a file and does not close it properly.
|
|
|
|