|
This should work, pls try and let me know.
private m_NetworkStream = new NetworkStream();
public override long Length
{
get
{
return m_NetworkStream.Length;
}
}
Regards,
Bhupi Bhai
|
|
|
|
|
Should I put this code in my code? If it is so, "private m_NetworkStream = new NetworkStream();" it gives compile error.
Can you give detailed information please?
|
|
|
|
|
Friends,
Is it possible to generate source code (say for example C#) using Visio?
Thanks.
|
|
|
|
|
I really don't think so.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Well, I think we can.
Visio for Enterprise Architects comes free with Visual Studio.NET Enterprise Architect edition. It has extra tools that the standard edition of Visio does not have. These tools enable forward and reverse engineering of databases and code. Visio can actually generate skeleton C# or VB.NET code based on the documentation created with it. Even applictions with unique structures can be generated because the code templates Visio uses can be customized to fit almost any need. For a large project, the boilerplate code it generates can save weeks of tedious coding, allowing you to move onto the more interesting business logic code.
For more info visit : "http://steveorr.net/articles/VisioCodeGen.aspx"
Regards,
Bhupi Bhai.
|
|
|
|
|
It is possible to generate source code from the class diagrams drawn in visio. But you need .net enterprise architect and visio enterprise architect editions.
|
|
|
|
|
I want to use and active X control. That was created with a different(C++) programming language in C#. I tested its methods methods on a windows aplication form they do work fine. But when I wan't to add it to a webForm I am not able to acces it's methods method. I am able to add it using
<object
id="Object1" border="0" name="Any" classid="CLSID:27A4643-14B3-1d6-A3DC-00C7CAA476" style="z-index: 102; left: 521px; position: absolute; top: 177px; height: 226px; width: 270px;">
But when I use
function MyButton_onclick()
{
Object1.Method();
}
it does not even give an error it is just quiet. my email addres is lungiez@yahoo.co.uk
1234
|
|
|
|
|
Wow - did you mean to post this in response to a question about Visio ?
Christian Graus - C++ MVP
|
|
|
|
|
Thanks friends,
I got good enough idea from link above. Its good article.
Thanks again.
|
|
|
|
|
Hi All,
This is Pratik here.
I am creating a RichTextBox using C#, wherein I m facing a problem.
I have specified some text in the RTF textbox with the same font.
Now, I want to make the entire text as bold. Hence i do Ctrl + A.
So at the time of Ctrl + A action, the entire text gets selected, but it also selects one extra blank space, which has a font of "Microsoft sans Serif."
The entire text that is selected is in Arial, but the extra space that is being selected is "Microsoft sans Serif", as a result of which, the richTextBox.SelectionFont property is set to null (since more than one font is included in the selection).
I don't understand as to how to get rid of this extra space selection.
Pls help me out.
Thanking you in Advance
Pratik Shah
|
|
|
|
|
hi
i want to know
how to override ondatabinding in case of binding data to a datagrid?
where i can do it?
thnx in advance
soori
|
|
|
|
|
Hello Friends,
I have completed a project and i want to give multiple
language support to it. That is i want to give options of selecting
language(English, Hindi,..etc.).
I have seen cultureinfo class. But in that i have to set
text of each control manually. Is there any alternative method to
set text of appropriate language to all controls.
Need a help.
Rahul Kulkarni.
|
|
|
|
|
|
In case you're using VS.NET 2005 your can set the culture info of each form, and change the texts on controls. Also, you can use resource files in order to change messages for your messagebox (for example). You only need to change the app's culture an you're done. Pretty simple, only I experienced some performance problems on the resource files, they're a bit slow.
[Optional mode]
I created a datatable which contains the same information and stores values when I need them from the resource file in the DataTable object. When I ask for the same resource value again, i check in the datatable if the value exists, and then return from the datatable, which is a lot quicker. This is optional though
[/Optional mode]
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
I need to filter rows on the view of the parent table of a relationship shown on a datagrid based on a RowFilter set on the view of the child table.
I tried deleting all the rows in the parent table and the reset the row state back for each row that is a parent of rows in the child table that are not hnidden but deleting parent rows apparently deletes rows in the child table also.
Not sure if there is another way to do this.
|
|
|
|
|
Have you tried reading all data into a dataset? You can then create a constraint between your two tables (or more) and find parent and child rows using a certain datarelation between those tables.
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Is there a Winforms version of the MembershipProvider services, or do I just use ASP.NET's?
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
|
In continuation with this [^]
i just work out a solution
1)create the arrays of the textures required make it shared as property and assign it to new texture[0];
or
2)save it in variable and assign it null after use
i want to know which will be better in regards of performance
** in this way i will use the merits of them being static and free resources as soon as their work is over ( yes i do have to create a class handling loading and unloading textures )
// i dropped passing it to lower class because it will create multiple instances of the texture require a multiple amount of ram
Last modified: 14mins after originally posted --
|
|
|
|
|
hello guys in this great forum.
i just need to know one thing .
I got dsl 256kpbs alone in my house , and i need to configure my router to accept connections from the outside world cause it is only one way connection .
i connect to outside world but peer can't connect to me , how can i configure my router to be accessible from outside world , giving my ip address to a peer and connect to me , please it is urgently
thanks folks.
Human knowledge belongs to the world.
|
|
|
|
|
snouto wrote: i just need to know one thing .
You mean besides which forum to post your question in?
Just guessing I would say "Operating Systems / SysAdmin"
led mike
|
|
|
|
|
very thx for any one can help me.
=========
Create class SavingsAccount. Use static variable annualInterestRate to store the interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount the saver currently has on deposit. Provide method CalculateMonthlyInterest to calculate the monthly interest by multiplying the savingsBalance by annualInterestRate divided by 12; this interest should be added to savingsBalance. Provide a static method ModifyInterestRate that sets the annualInterestRate to a new value. Write a driver program to test class SavingsAccount. Instantiate two savingsAccount objects, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Set annualInterestRate to 4%, then calculate the monthly interest and print the new balances for each of the savers. Then set the annualInterestRate to 5% and calculate the next month’s interest and print the new balances for each of the savers.
===========
I WANT THE IDEA ONLY NOT SOLVE THE CASE, IDEA OR WHAT HE WANT HEAR
tamer
-- modified at 16:51 Wednesday 22nd November, 2006
|
|
|
|
|
tamerana2004 wrote: very thx for any one can help me.
Maybe your professor can help you.
led mike
|
|
|
|
|
Help you with what? All you've done is post a copy of your assignment. What part of this are you having a problem with?
Are you looking for someone to write it for you? If so, you've most assuredly come to the WRONG place.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Are you looking for someone to write it for you?
I think it is a kind way of demanding someone do the homework for him. Will get him really far in a job.
|
|
|
|