|
Interesting, thanks I will look into your suggestions.
|
|
|
|
|
Sounds easy but, I am having troubles.
I can't seem to get this to work.
How do you load an exe in the shadow cache?
As in the case of .net Reflector I am trying to solve this
using a single exe.
|
|
|
|
|
hi all i want help plz.i am writing a program and i want the user to select a file.i think the OpenFileDialog control is the key to my problem but i dont know how to use.i have a button and i want the user to click on it and then select the file.any help is appretiated thanks to u all.
Best Wishes
|
|
|
|
|
It's all in the docs. The OpenFileDialog MSDN topic[^] contains an example that is very similar to your situation.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hello, use the following. This open file dialog is for xml files only. Similarly use the file extensions that u use. Use *.* for all files.
OpenFileDialog ofn = new OpenFileDialog();
ofn.Filter = "XML Files (*.xml)|*.xml";
ofn.Title = "Type File";
if (ofn.ShowDialog() == DialogResult.Ok)
{
}
Keshav Kamat
India
|
|
|
|
|
Hi,
I am in the process of building business objects for a database driven application. Most of the entities in the application have a single column primary key (identity value) for each object of its type. For e.g. the Report object, would contain reportId as its primary key column in the database. Most of the entities would contain common Methods like, GetItem, GetItems, Delete, Create and Update.
With the above similarity of CRUD (insert, select, update, delete) operations in my entities, I am following a Attribute based programming model to handle these CRUD operations. I have one common object "BusinessObject". All my business object inherit from this "BusinessObject". The "BusinessObject" would be able to handle all the CRUD operations - GetItem, GetItems, Delete, Create and Update, as long as the child objects inherit from the "BusinessObject" and provide some functionality and methods in them which the "BusinessObject" would need. For e.g., Report class would inherit from BusinessObject. Report class would provide a ConstructItem method that would build the items from the dataset supplied from the BusinessObject.
Protected class BusinessObject
{
Static T GetItem<t>()
{
T instance;
MethodInfo method = T.GetMethod(“ConstructItem”);
Instance = method.invoke(null, dataset) as T;
Return instance;
}
}
Public class Report:BusinessObject
{
Public Report(…)
{}
[Persistent (“paramName”, “DBType.Int32”)]
Int id;
Static Report ConstructItem(Dataset ds)
{
Report r
//Build the report object from the instance
Return r;
}
}
But, I am noticing with this pattern that the all my objects would get tightly coupled with "BusinessObject". The advantage is that there is lot lesser code and the individual objects need not worry about the mundane activities and rather focus on the business calculations. But the disadvantage is, if say a few months down the lane, if we happen to make any updates to the "BusinessObject" then the change would affect all objects which can be a very huge change and might affect all objects. This could become a testing and dev nightmare.
What do you think...
Thanks
|
|
|
|
|
I need code uploade file video same youtup.com
home_alone
|
|
|
|
|
Please don't keep posting the same question.
Also, your question doesn't make sense.
Hopefully any code you produce will be easier to understand.
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog
|
|
|
|
|
I need code upload file video same yuotup.com
|
|
|
|
|
Search for it, and if there is any problem send it here.
|
|
|
|
|
Hello all,
my question is sooo simple
i need to use the event in the datagridview buttons delete and edit
how can i find it?
thanx
|
|
|
|
|
Isn't there an event that gets fired to delete and edit ? Is this a web or windows form ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Is it a windows or a web form ?
also please could you tell if the buttons are within the datagrid, or u want something to be deleted from the datagrid, when the delete and the edit buttons are clicked on the form
Keshav Kamat
India
|
|
|
|
|
i am designing a 3-d choreographer for which i need to hav songs in my music libraray....i want to get the c#code on importing a music file.
parth
|
|
|
|
|
Importing to where ? Do you mean having the file in resources ? Do you mean playing it in your program ? Do you mean adding it to your WMP library ?
You can import WMP as a control and use it to play files.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi guys
i have a custom type object named Person, in my data access layer i fill this object from data adapter and send this object to my presentation layer where there is a datagrid view to display the contents of this object, but i want to make updations based on delete, update and add new actions performed on this object from data grid view , if i am using dataset so i can do that from data adapters update method passig it the changed rows of the data set, but i am not using any data set , so what is most appropriate approach to do that ?
thanks in advance
hello
|
|
|
|
|
You should be calling methods on your Person class, which then call methods in your data layer to insert, update or delete your data.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
but the problem is that how i will get the updated rows from datagrid view ,,
than to send these new updated rows to my business layer to perform action ,
hello
|
|
|
|
|
hello
am using C#.NET 2005
I want to save word document to Html file
I used :-
using Word = Microsoft.Office.Interop.Word;
using System.Reflection;
...
bject oMissing = System.Reflection.Missing.Value;
object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */
//Start Word and create a new document.
Word._Application oWord;
Word._Document oDoc;
oWord = new Word.Application();
oWord.Visible = true;
oDoc = oWord.Documents.Add(ref oMissing, ref oMissing,
ref oMissing, ref oMissing);
object fileName = "d:\\Try.doc";
object falseValue = false;
object trueValue = true;
object missing = Type.Missing;
oWord.Activate();
oDoc = oWord.Documents.Open(ref fileName, ref missing, ref trueValue, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
but it dosent work ???
anyboday know how to do that
AMR-CIS
|
|
|
|
|
|
hi all,
please tell me how to restrict the ButtonClick event for the second time..
here my requirement is FOR THE FIRST TIME I SHOULD ALLOW THE BUTTON_CLICK EVENT FUNCTIONALITY and from the SecondTIme onwords i neeed to restrict the the functionality by poping a message.
hope u got my question,
bye byes thnx in advance,
Prashanth
|
|
|
|
|
Have a global integer available to all events set as 0.
In Class:
int x = 0;
In Button Click Event:
if (x == 0)<br />
{<br />
x += 1;<br />
}<br />
else<br />
{<br />
return;<br />
}
Posted by The ANZAC
|
|
|
|
|
Use a flag (as member variable of your form). On Form initialization set the flag (say alreadyClicked ) to false . Then in the button click event handler, first check the flag, if it is false set it to true and, finally, do whatever is needed in the handler (on the other hand, if it is true simply return).
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.
|
|
|
|
|
well if u want to restrict the functionality then why dont u disable the button rather than popping a message and then restricting its function
you can do it by adding this to the click event
button1.Enabled = false;
but you'll need to have some mechanism to enable it again once its disabled. if this is in your req. offcourse
Rocky
|
|
|
|
|
Hello!
Can anyone tell me how to get the number of objects that are located in serialized file (Soap method).
I need it, because i cant create array before i know the number of elements.
One nation - underground
|
|
|
|