|
If you used XML documentation tags in the code you can generate a helpfile using nDoc http://ndoc.sourceforge.net/[^]
WM.
What about weapons of mass-construction?
|
|
|
|
|
Dear Friends
I am making an application and need to capture the event when RichTexBox control's vertical scrollbar's values changes. There is an event named VScroll but it is fired when mouse is first time clicked on scroll bar. I need the event when the value of scroll bar changes like when we drag the bullet on the scroll bar or when we manually press the down/Up arrow button when the textbox is in focus and text is scrolled up or down.
Any help will be highly appreciated
Thanks in advance...
|
|
|
|
|
Hi,
You can capture it in the VScroll event itself
When u press the Up/Down arrow keys the VScroll event is fired when the cursor moves out of the Current visible part of the RichtextBox.
Regards
Pramod
|
|
|
|
|
Thanks Dear
But How can I get the value of scrollbar when the event is fired?
Please Reply as soon as possible
Thanks and Regards
|
|
|
|
|
Also It doesn't fire when the bar is pulled....
|
|
|
|
|
Hi,
ya even i tried that,
Try one thing hide the ScrollBar of the Richtext and place a Vertical scroll
separately next to the richtext and synchronise the scroll event of the Scrollbar with the Richtext's Scroll
i think u can get the values for the ScrollBar.
Regards,
Pramod
|
|
|
|
|
Yes I have already tried that Placing a separate scroll bar as well but that doesn't synchronize with the text scrolling.
|
|
|
|
|
y cant u synchronise the scrolling
just call the scroll event of the Richtext when the scrollnbars scroll event is fired.
|
|
|
|
|
Cant Do that because richtextbox has only one method to scroll text and its scrolltocaret(). Have tried using it but id gives a little different effect. It doesnot scroll text until the caret(blinking cursor) reaches at the bottome) plus there are a few more problems in it.
sorry for disturbing you again and again
Thanks alot for taking interest in my problem
|
|
|
|
|
Hi friends..
hope you know about text qualifiers....
It's used to represent columns in textfiles....like..
"ItemNo","ItemName"
0,"Knorr"
firstline represents the fieldnames and the nextline their datas...
Comma represents the column delimiter and double quotes represents the textqualifier....
In my application,am creating a textfile.for that,i have to represent the textqualifiers and delimiters...How to do it programmatically....
That is,if i want to define my custom delimiters and TextQualifiers,how can i do them in coding?
Is there any option to do them via registry?Kindly help me...
I need it urgently...
Thank you....
|
|
|
|
|
at the time of form load the no of rows in confirmed so based on that we have to create table in c#
Shipra Pandey
Software Developer
Solversa Technology Pvt Ltd.
|
|
|
|
|
Is it for a Desktop Application?
Can u tell me which table u want to create?
Regards,
Pramod
|
|
|
|
|
tell me the real application and what actually u want!
it is easy to do at run time
using DataTable
but you have to do a lot of work for this
not a good way to Add a table
u can do one thing
create a stored procedure for your temperoray table
and create it whenever needed!
and using another sql query you can populate dataset!
and make it available
when ever u need a table just call the stored procedure and create a temporary table!
and use it
if this will not solve yur problem let me know what actually u want
cheers
nitinbourai
|
|
|
|
|
hello there is another method to do this
create a dataset and at runtime u can make a datatable like this
DataTable dt = new DataTable["Supplier"];
and add colums to it using the column propreties
and add into the data set
ds.Tables.add(Supplier);
find the appropriate function for adding table to a dataset
use intellisense!
i am confuse about the actual syntax
nitinbourai
|
|
|
|
|
I'm trying to inherit a class from Collections.Generic.List<T> , and override the Indexer, specifically the this[index].set method
I am trying the followingthe follwoing:
public class NodeList<T> : List<Node<T>>
{
public Node<T> this[int index]
{
get { return base[index]; }
set
{
base[index] = value;
}
}
}
And I don't seem to get the "bolded" part right
We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
boost your code || Fold With Us! || sighist
|
|
|
|
|
You cannot get the behavior you are looking for that way. List<t>.this is not marked as virtual so you will need to change your definition to include the "new" keyword.
I strongly recomend that you do not do this. Shadowing a method in this way will make you're code very difficult to read. For instance.
<br />
public class Dog<br />
{<br />
public void Bark() { Console.WriteLine("Dog"); }<br />
}<br />
<br />
public class Lab : Dog<br />
{<br />
public new void Bark() { Console.WriteLine("Lab"); }<br />
}<br />
<br />
public class Program<br />
{<br />
public static void Main()<br />
{<br />
Lab l = new Lab();<br />
Dog d = l;<br />
<br />
l.Bark();<br />
d.Bark();<br />
}<br />
This will unexpectedly (unless you know that Lab is shadowing Bark) will print
Lab
Dog
I would go with overridng one of the collection bases instead.
Jared Parsons
jaredp@beanseed.org
http://jaredparsons.blogspot.com/[^]
|
|
|
|
|
I guess I am missing a fundamental C#/C++ difference here - I thought it is virtual since it's part of the IList<t> interface.
With Colleciton base, you mean the non-Generic collections?
I initially worked with a List<node<t>> member, forwarding almost all methods. However, I would also have to mirror the non-generic / generic relationship (i.e. I need generic access to this, otherwise *everything* including client classes turn into generics (without any benefit).
(I'd have to figure out how to do this anyway).
Is there a way to do that (easier)?
We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
boost your code || Fold With Us! || sighist
|
|
|
|
|
|
Just wanted to say thanks - that was the bit of information I desperately needed
We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
boost your code || Fold With Us! || sighist
|
|
|
|
|
|
I am working on a simple project that requires the end user to upload files to a web server and specify some keyword and other document information. I have been researching what is the most effective way to accomplish this that is 1. Simple, and 2. reasonably secure. Here are my thoughts to date:
Option 1 - Web Application:
This option would allow the user to select a file on the local machine and upload it to the server. This would (I believe) require a client side ActiveX component as well as it would require a user database to restrict the uploading of undesireable content to the site. Neither of which my client really want to do.
Option 2 - Clientside Application:
Store encrypted FTP credentials on the client and use FTP (or alternative? help here!) to send the files from the client to the server. This is simple and requires no user database. However the call to the FTP server is in clear text which theoretically could be packet sniffed. Apparently FTP transmissions can now be encrypted with SSL (and supported under .NetFramework 2.0) but I am not sure how this is configured and whether this is setup under IIS. There does not seem to be any option to EnableSSL under IIS (for FTP) for Windows XP (is this a Windows 2003 option only?)
Is there another protocol (say http) that can be secured under SSL to upload files? Suggestions (samples) on how I would how would connect to an IIS server? I would prefer to not have any server side components or web services and connect to the server directly from the client.
Any suggestions on approaches to address this problem would be appreciated.
Cheers,
David
-- modified at 17:14 Sunday 1st January, 2006
|
|
|
|
|
Hello,
i have a (probably) very basic design question.
I need to create a Person Object which holds information like Name, Email, Age, and Gender.
The problem is the Gender information.
There can only be "Man" and "Woman".
Soo i could either create a Man and Woman object which inherits from the Person object, or i could maybe store the information as an int, boolean or maybe even better as an Enumeration ?
But i cant decide which is the "correct" way to do it.
The Man and Woman object will be completly identical except for their type (how they are declared - new Man() and new Woman() ..).
Or should I in this case go with the other option and store the information as an int/boolean/Enum in the Person object ?
And is that how it is done when you have a value than can only be a certain different set of values ?
Or something completly else ?
There is no really difference as far as i can see, as i will either have to do checks like -
if (myObj.Gender == "Man"), or
if (myObj is "Man")
of course i could do some overloading of the methods soo i dont even have the if else - like HandleThis(Man obj) and HandleThis(Woman obj).
Maybe for the scalability, escpecially if it had been other information i had to store which could change by time it would probably be best to go with the inhertiance example.
or maybe i should always go with that solution ?
To some of you this might be a stupid question, but i cant really decide.
Soo i hope someone can help me to tell me what is the "correct" way to do it and why.
Martin
Happy New Year everyone !
|
|
|
|
|
just use and enumeration, inheritance from a person object would be too much normalization...its very unlikely humanity will converge into anything other than a man or woman, so a simple enumeration would be perfect. You might consider not having a default constructor and instead have a consturcture that requires a gender initialization.
normailization is good, but there is always to much of a good thing...
|
|
|
|
|
I'd think you need to look to whether the Gender object will have any responsibility. If you are handling any methods such as:
if (myObj.Gender == "Man"), or
if (myObj is "Man")
you might want want to utilize the state or strategy patterns (GoF) instead. http://ootips.org/[^] or http://www.dofactory.com/Patterns/Patterns.aspx[^]
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
hello everyone and happy new year
i`ve got a task to write a client-server game (web application)
i`ve succeded if writing clent-server part and data tranfer (as an xml web service)
so, now i need actually game. and here is the problem!
how could i make a game field? i mean some kind of a board for example for chess, so that i could get event by clicking specific cell? suppose there is some easy way to do it, not making hundred of image buttons
what could you reccomend?
P.S. remember, THIS IS A WEB APPLICATION
|
|
|
|