Static Proerties in C#
I'm trying to work with STATIC properties in C#. I have some properties I
get from the registry, so I don't want to instance the class.
I have something like this, but I cannot get it to work. Whenever I try to
access these properties from other classes or project in the same solution
(referenced, of course), I cannot find them...
Would anybody be so kind to give me a hand?
Thanks a lot!!!
----
namespace MyLibrary
{
public static class Config
{
private RegistryKey regMySoft =
Registry.LocalMachine.OpenSubKey("SOFTWARE\\MySoft");
public static String MailServer
{
get
{
return regSoft.GetValue("mailServer").ToString();
}
set
{
regSoft.SetValue("mailServer", value);
}
}
}
} Tag: Awesome Tag: 111850
Finding the currently actrive window from a background application
In C#...
I need to create and application that will run in the background and listen
for user mouse clicks anywhere on the desktop or any open application. When a
mouse click happens, it will catch that event and get a reference to the
active application...
Is this possible?
Can anyone give me an idea on how I would acheive this?
Thanks
--
Bill Tag: Awesome Tag: 111845
Issue getting the value from a Row["Column"]
Hi guys,
Fighting with C#...
I have this code, and I can't find what I'm doing wrong... Any hint, please?
foreach (DataRow myRow in myDataSet.Tables[0].Rows)
{
strMyString = myRow["MyColumn"];
}
Error: Cannot implicitly convert type 'object' to 'string'. An explicit
conversion exists (are you missing a cast?)
Thanks a lot! Tag: Awesome Tag: 111843
Why is a sound played when I press alt-enter on a form?
The subject's the tl;dr version.
The situation is that I'm zooming my form to fullscreen when I hit alt-
enter (kinda like media player behavior). Now my code to go to
fullscreen does not cause the windows "default beep" sound to play.
But when I hit alt-enter on the form that sound is played. And it
only plays when zooming to fullscreen; pressing alt-enter when in
fullscreen does not cause the sound to play.
I've got a tool strip on the form; could it possibly be something to
do with it? Tag: Awesome Tag: 111841
Object reference not set to an instance of an object
Please I am trying to understand the arraylist.
Please anyone help; why I am getting this message "Object reference not set
to an instance of an object" when line no (13) get executed in the following
code:
1- ' Create a new ArrayList to hold the Customer objects.
2- Dim customerArray As New ArrayList()
3- 'Add customers to the ArrayList of Customer objects.
4- Dim x As Integer
5- For x = 0 To 999
6- customerArray.Add(New Customer("Customer" + x.ToString()))
7- Next x
8- ' Add orders to each Customer object in the ArrayList.
9- Dim customer1 As Customer
10- For Each customer1 In customerArray
11- Dim y As Integer
12- For y = 0 To 14
13- customer1.CustomerOrders.Add(New Order("Order" +
y.ToString()))
14- Next y
-----------Customer & Order Classes-----
Public Class Customer
Private _CustomerOrders As ArrayList
Private _Name As String
Public Property Name() As String
Get
Return _Name
End Get
Set(ByVal value As String)
_Name = value
End Set
End Property
Public Property CustomerOrders() As ArrayList
Get
Return _CustomerOrders
End Get
Set(ByVal value As ArrayList)
_CustomerOrders = value
End Set
End Property
Public Sub New(ByVal Name As String)
_Name = Name
End Sub
End Class
---------------
Public Class Order
Private _Name As String
Public Property Name() As String
Get
Return _Name
End Get
Set(ByVal value As String)
_Name = value
End Set
End Property
Public Sub New(ByVal Name As String)
_Name = Name
End Sub
End Class
------------------
Thank you Tag: Awesome Tag: 111840
Determining when value changed in DataGridViewCell from derived cl
I am not seeing a clean way from a derived DataGridViewCell to determine when
the value is changed. The value changed event gets thrown in the
DataGridView not the cell. What am I missing? Tag: Awesome Tag: 111838
MI5 Persecution: Goldfish and Piranha 29/9/95 (5512)
I just thought I'd let you know what I've been reading into the
"Crusader" spam. I don't want to post this to usenet because somebody
might try to tie that in to my posts in some way (someone already has, in
uk.misc).
First of all, I'd like to ask you to believe that my phone line in my
apartment is bugged, and has been for many months. I have moved a couple
of times this year, but "they" have faithfully been on my trail.
Anyway, let's suppose my phone line is bugged. Now, when I talk to my
internet service provider, it's over a SLIP (now PPP) connection. So if
you wanted to bug what was said, either you'd listen in over the line and
have to decode the transmission, or you could go to the service provider
(more difficult) and ask them to decode a particular user's connection.
OK, so now they're listening to everything I do over my SLIP/PPP
connection. A couple of months ago I was messing around with faking
articles through nntp servers and through anonymous remailers. I chose a
nice inconspicuous newsgroup for my little tests, something no-one would
ever notice. Guess which newsgroup I chose??? Yes, _FISH_!!! or
rec.aquaria to be precise
And guess what articles I tried to post? Goldfish, Koi carp and, you'll
never guess... PIRANHA!!! The goldfish article and the Koi went through,
but the piranha didn';t appear.
by now you probably think this is too silly for words. But if you look in
the papers a few eeks ago you will find John Major, Tonny Blair and Paddy
Ashdown sharing a "private joke" about Major's sunburnt goldfish. We
haven't had anything about Koi yet (they must be too dull ). Now, sent by
someone who clearly knew what they were doing (they chose an Italian
backbone site for their launch point) we have many thousands of messages
to people all over the globe. All about piranha, and with the punchline
"that gives you something to think about, doesn't it?"
The way it works is that they're trying to kill two birds with one stone
again. I don't knoiw why they should be against these national alliance
people, but my interpretation is that they simultaneously try to
discredit them, and stem the flow of Corley articles.
=================================================================
In article <DFnE55.8tF.0.bloor@torfree.net>,
Mike Corley <bu765@torfree.net> wrote:
>
>John J Smith (J.J.Smith@ftel.co.uk) wrote:
>
>: b) we do know who you are. Or are you someone else we don't know about?
>: You are currently known as "That bloody persistant net nutter, who's
>: expanding from uk.misc to the rest of the world".
>
>I think the point I was trying to make is that I could tell you things
>from my personal life, at home and at work, which would add credibility
>to my story. But if I named people, then (a) they would object violently
>to being included in this shenanigans, and (b) I would be revealing my
>identity which would be bad for my personal life and my work life. Of
>course some people in my personal life, and at work, do know who "mike
>corley" is. But at least we're observing a studied silence for now.
:People can always be called "MR X", to save them being named.
:
:I'm completely perplexed as to what you mean by b). Revealing identity?
:To who? And why would this be bad for any part of your life when you
:already have a less than respectful reputation here?
I'll just enumerate one or two things that I can still remember. Sometime
around August/Sept 1992 I was living in a house in Oxford, and coming out
of the house was physically attacked by someone - not punched, just grabbed
by the coat, with some verbals thrown in for good measure. That was something
the people at work shouldn't have known about... but soon after a couple of
people were talking right in front of me about, "yeah, I heard he was
attacked".
Again, one I went for a walk in some woods outside Oxford. The next day,
at work, someone said "you know he went to the forest yesterday".
I don't want to put details on usenet of what happened because to do so
would be to risk it happening again. If you put ideas in peoples' heads
then you can find them reflecting back at you, and I don't want that.
Also I can't remember that much from three years ago. From november 1992
I started taking "major tranquilizers" and just blotted the whole thing
from my mind.
>This is a feature time and time again, that the security services
>(presumed) get at you by manipulating other people around you to get at
>you. If you have their contacts, manpower, resources and technology then
>you can do that sort of thing.
:But why? Are you a threat?
They pretend they "have" to get at me. After the first few weeks they had
to find a reason to spy and abuse. You can't abuse someone unless they're
in the wrong in some way. What I did "wrong" was to be ill. So it became
"nutter" and "monster" and "he's going to attack us" coupled with
"ha ha ha, he can't do anything to defend himself, it was so funny". That
obvious contradiction within their propaganda is something they
blithely ignore.
:So, the Security Services never *actually* appear, and you assume that
:they get someone else to do your dirty work. This is a bit of a big
:logical step, here: That person doesn't like me, or is causing me trouble,
:it's not because they've got problems themselves, it must be the "Security
:Services". Yes. Because people are infallible. Or is there more?
A single source is indicated because of the range of harassment.
BBC + Capital + manipulated_public_at_large + set_up_situations,
what does that add up to? Add in the technology to carry out the
covert spying and the manpower and knowhow to follow you around for
five years without being spotted. It smells very much of the security
services, because there is no other organization (to my knowledge)
which does the things I've seen these people do.
Remember, they have deliberately chosen the softest of soft targets
to victimize. They purposely chose a mentally ill person who they thought
would be likely to kill himself anyway, so that they could get away with
murder.
And in all likelihood it will have started as a personal vendetta by someone.
Who could that be? I don't know, but I can give you some clues.
The first possibility (deep breath) is that someone from my college set me
up. Six years ago I graduated from university in the UK, during the last
year there I was steadily getting more and more ill. I know that I was
talking in my sleep; although I don't know what I was saying, it got
me a reputation, and if someone from my college talked afterwards to
the "wrong" people then that could be the reason for all that has followed.
I think that's the strongest contender for source. Directly beneath my
room lived another bloke who frequently had his friends round late at
night, after the time that I went to sleep. So they could have heard what
I was saying in my sleep, and that could have got me the reputation for
"talking to myself".
What I don't know is why that should have rebounded a year after I left.
You'd think it would have happened sooner; it's a bit odd to wait for a
year and then start abuse. That leads me to question what in particular
happened around May/June 1990 for them to start then.
>What I don't know is how it looks from the other side, from the side of
>the people who are being manipulated to get at me. On a couple of
>occasions I have challenged people to tell the truth of the matter, but
>they have alwats ducked the challenge.
:Have you ever considered the possibility, that you have made a mistake, and
:the people don't know what you are talking about?
Yes. I am currently considering the possibility that some people around me
know only what is being posted on Usenet, and have not been "contacted"
by "them". But I _know_ that others have been contacted.
:What words? Are they in common use? Could they be a catchphrase of a
:popular comedian?: "Nice to see you, to see you nice"?
In England the all-time No. 1 is "nutter". Easter this year, returning home
from Clapham police station to report five years of harassment ("we're not
saying it's happening and we're not saying it isn't happening"), another
"not happening" incident of harassment when a cowardly little slut did her
country proud by yelling "nutter, nutter, nutter" in the face of the
hated enemy.
What can you do about that? You can't yell abuse back in their face, because
they know they're supported by their peers, by the media, by the murderers in
the security forces. You can't put them down when the fascist establishment
is on their side. You can't hit them, because they would deny their abuse,
they would deny knowing anything, and bring charges against the "nutter"
who attacked them "at random".
>You know, you're
>passing saomeone, they're hardly going to construct an argument for your
>benefit, so they work a word of abuse into the conversation which they
>can giggle at.
:Abuse such as what? We're all adults here, we can take it. Is this abuse
:aimed at you? How can you tell it is?
I think I've said already what the words are. Thing is, at any given time
the language is consistent. In January everyone's calling you X, then a
few weeks later people stop calling you X and start calling you Y.
You can tell it's aimed at me, because when people repeatedly say the same
words are you walk past, then laugh, you would have to be hard of
understanding not to recognize it.
>Or they repeat something that's been said somewhere else... the PE thing
>being a case in point. PE says it, then other people pick up the refrain.
:Remind me who PE is again.
PE = "Private Eye"
>: >To give you an example, which I mentioned in another posting. In around
>: >October 1992, Private Eye ran a cover with the heading "Major's support
>: >lowest ever", with John calling to Norma on the cover "come back, Norma".
>: >Only one obvious interpretation to that, isn';;t there? I certainly
>: >thought so when I saw that cover. Wrongo!! Down the pub with people from work
>: >Simon says to phil, "don';t you think it's wrong then?" phil says, "well
>: >private eye are usuallyright"..."hislop strikes again..
>
>: Erm. Mike? Heeeelllllooo? What are you on about. What is the other
>: interpretation then? Norma having an affair? Seems a bit wrong, with the
>: heading "Majors support Lowest ever"...
>
>No, this one isn't obvious , it really does need to be explained. I
>certainly didn't understand it when I first saw it. You see, the kernel
>of vitriol is in the words "come back". At the time, the themes of
>abuse were centred around interpretations of those two words (stretch your
>mind a little bit, I don't have to spell it out for you, surely).
:You did in your mail item.
:
:You seem to be scouting about something called a "Double Entendre". The
:inference being "Come" = Ejaculation, "Back" = Anus (not the first part
:of the body I would have went for, I would have foolishly gone for "Back",
:silly old me).
:
:You see to have picked a sodomy double entendre out of a Private Eye
:headline. They are everywhere. The English language has much double
:meaning in it, and if you put your mind to it, you could pull a double
:entendre out of a randomly chosen page of the bible. So what?
>The point is that when Simon pointed it out to Phil, he did recognise
>what it meant after a moment's thought... and so did I... and so did the
>people who repeated it several times later... so however murky it may
>seem to you, that is the meaning they intended it to have...
I still don't really know if the meaning was intended when that headline was
written, or if it was simply "found" after the fact. The reason I think it
might be the former is that I got quite a lot of abuse along the lines of
"sound-alike" or "double-entendre" at work, in particularly from Steve.
So "double" inevitably came to mean split-personality, "two people in one";
"back" inevitably came to mean "backside", "come" inevitably meant you-know-
what, "split" (well, we'd better split now) again you can guess, "bent" (of
a similar bent), the list goes on forever. These aren't "nice" double-
entendres intended for comedy, they're nasty words to humiliate and cause
pain. If I could turn the clock back three years then I would sue my
former employers for harassment and I would almost certainly win. I had to
take pills after a year of Oxford, so they wouldn't be able to lie their
way out of it. Actually, I could still take them to court - the main
obstacle being that three years after the fact is a bit late and much
of what happened, the details that would be necessary for a case to go
to court, has just been obliterated by time.
: Smid
==============================================
From: flames@flames.cityscape.co.uk (Peter Kr|ger)
Newsgroups: uk.misc,soc.culture.british,alt.conspiracy,uk.media,uk.legal
Subject: Re: Mike Corley - a (helpful) suggestion
Date: Mon Oct 2 05:43:42 1995
In article <812551172snz@objmedia.demon.co.uk>, Snail <snail@objmedia.demon.co.uk> says:
>Indeed, I feel that my Usenet access is censored simply because I don't want
>to download groups he is partaking in, because of his behaviour.
>
>I wasn't that bothered, but I am starting to get seriously pissed off
>with him. Which takes a lot.
Hi Snail
This person Corley seems quite interesting for three reasons. I put the
following at the end of a post in another thread just to see if he was
reading any other threads in uk.media.
It seems he is probably not.
-----------------------------------------------------------------------
Heres an interesting little story from back in the early days of CCD
technology. There was this miniature camera which was designed to fit
behind the infrared receiver lens of the remote control system (just
beside the IR sensor itself) the camera clocked out the data in 256 lines
of 256 pixels from a Fairchild chip and fed it out, a line at a time,
into the VBI within the TV set itself. The signal could be picked up
remotely from a standard license detector van from where it was stripped
out of the surrounding RF signal and relayed back to the TV station where
it was displayed as a slowscan monochrome image in a corner of the news
readers monitor.
5512 Tag: Awesome Tag: 111837
MI5 Persecution: Watch Out, Forger About 27/9/95 (3998)
From: ray@ultimate-tech.com (Ray Dunn)
Newsgroups: uk.misc,soc.culture.british
Subject: Re: An apology from Mike Corley
Date: Wed Sep 27 14:20:36 1995
In referenced article, David Wooding says...
>Well, Mike Corley might or might not have written the apologies, but I
>think not. I thought the following line both witty and imaginative.
>
>>>It was the razor blades stuffed down between the keys that told me.
Corley himself denies posting this "apology", but I'm impressed if it
is a forgery.
Here's the header of my received email. It looks very genuine except
for the fact that postings to newsgroups are directed through demon's
mail to news gateway, which is strange.
Also the message id is <m0sxbx2-000JEeC@bloor.torfree.net> which seems
to be in a different format from previous Corley postings, e.g.
<DFJJB3.6Ft.0.bloor@torfree.net
The mail seems to have been received directly from mail.torfree.net.
One way of telling for sure would be if anyone on the recipient list
contacted torfree, but did not publish any complaints on the newsgroups
- he would not have had access to their address in that case.
>Received: from SpoolDir by ULTIMATE (Mercury 1.20); 26 Sep 95 12:00:14
+0500
>Return-path: <bu765@torfree.net>
>Received: from mail.torfree.net by smtp.ultimate-tech.com (Mercury
1.20);
> 26 Sep 95 12:00:04 +0500
>Received: from bloor.torfree.net ([199.71.188.18]) by mail.torfree.net
> (/\==/\ Smail3.1.28.1 #28.6; 16-jun-94)
> via sendmail with smtp id <m0sxbyy-000LXSC@mail.torfree.net>
> for <ray@ultimate-tech.com>; Tue, 26 Sep 95 11:31 EDT
>Received: from torfree.net by bloor.torfree.net with smtp
> (Smail3.1.28.1 #6) id m0sxbx2-000JEeC; Tue, 26 Sep 95 11:29 EDT
>Message-Id: <m0sxbx2-000JEeC@bloor.torfree.net>
>Apparently-To: bu765@torfree.net, snail@objmedia.demon.co.uk,
> ray@ultimate-tech.com, Frank@acclaim.demon.co.uk,
> p.marshall@axion.bt.co.uk, me93jrb@brunel.ac.uk, >
mikeh@mordor.com,
> michael@everyman.demon.co.uk, tim@xara.co.uk,
> Alan.Holmes@brunel.ac.uk, uk.misc@news.demon.co.uk,
> uk-misc@news.demon.co.uk, uk-media@news.demon.co.uk,
> uk.media@news.demon.co.uk, uk.legal@news.demon.co.uk,
> uk-legal@news.demon.co.uk, alt-conspiracy@news.demon.co.uk,
> alt.conspiracy@news.demon.co.uk,
> soc.culture.british@news.demon.co.uk,
> soc-culture-british@news.demon.co.uk,
> soc-culture-canada@news.demon.co.uk,
> soc.culture.canada@news.demon.co.uk
>Newsgroups: uk.misc, uk.media, soc.culture.british,
soc.culture.canada, uk.legal, alt.conspiracy
>From: bu765@torfree.net (Mike Corley)
>Subject: Oops! Sorry!
>Organization: Toronto Free-Net
>X-Newsreader: TIN [version 1.2 PL2]
>Date: Thu, 26 Sep 1995 01:23:45 GMT
>Lines: 27
>X-PMFLAGS: 33554560
--
Ray Dunn (opinions are my own) | Phone: (514) 938 9050
Montreal | Phax : (514) 938 5225
ray@ultimate-tech.com | Home : (514) 630 3749
3998 Tag: Awesome Tag: 111831
MI5 Persecution: Question and Answer 27/9/95 (2484)
In article <DFGxnF.Cr8.0.bloor@torfree.net>
bu765@torfree.net "Mike Corley" writes:
>>> ##: There were also a few other things said at the trial
>>> ##: relating to this which I won't repeat here; it was in the papers
>>> ##: at the time anyway. This quote and others said by and about this
>>> ##: witness were repeating things that had been said by and about
>>> ##: me at around that time.
When, where and by whom ? Let's have some details
that can be checked.
I'm not going to repeat them. They're hurtful to me because they contained abuse that was
directed against me by someone else at the time and which got picked up and thrown again
in the trial. It is a matter of record but I won't repeat it here.
>>> PM: >Who's character is being assassinated? It isn't clear from the post.
>>> PM: >Are we talking about Grenville Janner? I thought he was a spook
>>> PM: >himself? He's certainly able to hold his own on the issue you cite.
>>> ##: Mine, mainly. The reason for putting that episode at the top
>>> ##: of the posting is that they tried to kill two birds with one stone
>>> ##: at the Beck trial - they simultaneously put words into the mouth
>>> ##: of their invented "witness" to smear Janner, and repeated exactly,
>>> ##: word-for-word, stuff which had been said by and about me.
Why would "they" wish to assassinate your character?
Well, let's put it this way - just because this is the first time it's happened in this way,
from these people, on this scale, doesn't mean that it hasn't happened before, on a lesser
scale. At university there were people who quite overtly hated me and would have wished
something nasty to happen to me. Because of where I went making the wrong sort of enemies
is pretty deadly.
"They" would wish to assassinate my character because it had all been done before, and
because they knew I would not be able to react in any other way than I'd reacted previously.
>>> ##: They invaded my home with their bugs, they repeated what I
>>> ##: was saying in the privacy of my home, and they laughed that it
>>> ##: was "so funny", that I was impotent and could not even communicate
>>> ##: what was going on. Who did this? Our friends on BBC television,
>>> ##: our friends in ITN, last but not least our friends in Capital
>>> ##: Radio in London and on Radio 1.
Please give details of when, where and by whom these
comments were made, so that they can be checked.
This was four, five years ago... sorry, I don't remember. I can remember individual incidents,
words which were repeated by different people at different times in different locations.
Around the end of 1992 Private Eye rtan a front-cover with John and Norma Major, with
the title "Major's support lowest ever" and John saying to Norma "Come back norma" on the
front cover. What can you read in to that? Not a lot, seems like standard fare for PE.
The first time I saw it I was in the pub with some people from work. One was expressing doubts
to the other (let's call the first one Simon, shall we? and the second one Phil?) about
whether what was going on was right. Phil's answer was that if Private Eye was doing it
then it must be ok, "they're usually right".
A few days later, again near work, there were some students laughing in the street,
"Were you COMING BACK later? But I thought you said you were COMING BACK ha ha ha?"
Play on words, you see. Not very nice, either. I had start medication soon afterwards.
Clever people, these chaps who think up PE titles. Just slightly lacking in any
sense of morality.
>>> ##: How did they do this? I'll give you an example. About a year ago,
>>> ##: I was listening to Chris Tarrant (Capital Radio DJ among other
>>> ##: pursuits) on his radio morning show, when he said, talking about
>>> ##: someone he didn't identify, "you know this bloke? he says we're
>>> ##: trying to kill him. We should be done for attempted manslaughter"
>>> ##: which mirrored something I had said a day or two before.
>>> ##: Now that got broadcast to the whole of London - if any recordings
>>> ##: are kept of the shows then it'll be there.
What was the date of the broadcast ?
Out of 2 million plus listeners, why should you be
the only one that Tarrant was allegedly referring to ?
Sometyime in spring 1994. I can't remember the date, I heard the broadcast in the
car - I was going into the office from London that day and just happened to snap
on the radio, and hey presto! Mr Tarrant gives us the benefit of his excellent
understanding.
>>> ##: That's exactly what we did. We went to a competent, professional
>>> ##: detective agency in London, paid them over 400 quid to debug our house.
>>> ##: They found nothing.
What was the name of the detective agency and their
address ?
I don't see why I should tell you that, but they're in Yellow Pages; they're
a well-established outfit.
>>> PM: >What? Spend a quarter mil. a year to amuse themselves? And why not
>>> PM: >change every now and again? Why keep watching you? (Unless you _are_
>>> PM: >doing something, and I don't think you are, though you may have some
>>> PM: >deep, dark secret in your past.)
>>>
>>> ##: See the above.
Is there a deep dark secret in your past ?
Apart from "it's all happened before in a different way", no.
>>> ##: In a couple of cases people have even known my name - when I was in
>>> ##: London over Easter somebody (no idea who they were, just some bloke with
>>> ##: his girlfriend) called me by name - quite clearly, and my name is
>>> ##: distinctive.
Is your name truly Mike Corley, or are you using it as
an alias ?
It's an alias. I'm not English by ethnic origin. If someone manages to pronounce
my name as well as that guy did then they must have been really trying.
>>> ##: There's a little story behind this. First of all, in 1992 I worked
>>> ##: for a company where the people made clear they knew what was going on,
>>> ##: first of all directly (the very first evening I was there I went out to
>>> ##: the pub with them and the Technical Director said to another guy,
>>> ##: "is this the bloke who's been on TV?" "yeah, I think so")
Have you appeared, or been reported by name on TV ?
When, where and by whom ?
No. Never. Not directly.
>>> ##: Also, in summer 1992 I went on a trip abroad to Europe by coach,
What was the name of the coach company and your date
of departure ?
It was a national express coach. At dover we boarded a ferry for Holland somewhere.
The company that organized the trip went out of business some time ago, so they won't
have records of passengers - so we can't get any corroboration from anyone else
that way. We tried all that last summer, ran into a brick wall.
The other thing is in summer 1992 I was visibly ill, so other people in the
party might remember that more than anyone getting at me on the coach trip.
>>> ##: >>Yes, this gets me. I think the answer is that I was set up by
>>> ##: >>someone. I was very aware when this started back in 1990 that I
>>> ##: >>was being painted as a "threat" to which people had to "react"
Why were you being painted as a "threat"; is this related
to a "deep,dark, secret" ?
Aaaarrrrgh. I think I should make clear that that's their created justification
rather than the real reason. They started harassing first and then came up with the
reasons for it.
>>>
>>> ##: I think I know who set me up.
Who ?
Someone who knew me some time ago. Someone who would have been able to talk this
little campaign into existence.
>>> ##: The bloke can't even control his own mind without medicine.
Is this true ? What is the medication and dosage ?
Yes, I'm afraid so. Sulpiride, 200mg a day. It's designed to stop people
coming up with the sort of ideas you've heard here for the last few weeks.
Give him a higher dose!!
In the long term it causes tardive dyskinesia, tardive dementia and general
nasty stuff to your brain. So it's three years of sulpiride talking to you here.
>--
>john heelan
2484 Tag: Awesome Tag: 111830
MI5 Persecution: Options 21/9/95 (970)
From: john heelan <john@lorca.demon.co.uk>
Newsgroups: uk.misc,alt.current-events.net-abuse,alt.journalism
Subject: Re: CENSORHSIP IS IMMORAL, UNJUST AND WRONG
Date: Thu, 21 Sep 95 19:17:30 GMT
Organization: (Private)
Lines: 65
Message-ID: <811711050snz@lorca.demon.co.uk>
References: <DF8DMu.Dqu.0.bloor@torfree.net> <43qpdh$iki@news3.digex.net>
Reply-To: john@lorca.demon.co.uk
X-NNTP-Posting-Host: lorca.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.29
You have to admit that Mike is persistent and obviously feels
deeply that he is being hounded by the "Security Services" and
there is a Conspiracy out to get him personally. If that is true,
then we should be concerned; if he is just paranoid, then we should
empathise with his sickness. What we should not do is to invite
censorship....that just could be implicitly joining in the
putative Conspiracy.
Let's look at Mike's potential options (and the alleged responses
he has received):
> 1. Complain to the Police: (their alleged response
> "Don't be silly, Sir"; Mike's rationale "They are part
> of the Conspiracy")
>
I don't think the police as an organisation are part of it. They're
certainly not the source.
The officer I spoke to at Easter clearly didn't know anything about it.
And that was at my local police station in London - if anyone in the
police knew you would think the people at your local cop shop would.
A couple of years ago I had to go into the station after a motoring
infraction, the guy I spoke to then said something about "brain like a
computer sir" which my suspicions latched on to - (I'm alleged to be a
programmer as some people reading this know) - but as per the usual
"can';t prove nuthin" and you ask yourself if you're just being stupid
suspecting on the basis of a straw
> 2. Complain to a Member of Parliament (Mike's rationale: "Can't
> because they are part of the Conspiracy")
>
I could do that actually. But he would probably tell me to go see the
police, for which see above.
> 3. Make it visible through the UK Press. (Mike's rationale:
> "Can't because they are part of the Conspiracy")
>
They are actually. There's a difference though in the way journalists
react to this stuff when they're "got to" by the security service.
This is completely giving the game away, but the trouble originally
started with my reading into stuff that was being written by Times
columnists, in particular our antagonistic friend Mr Levin.
But you see that some journalists are taking part in the conspiracy and
others are only doing it because their puppet masters have been feeding
them information which they can't allow themselves to ignore. The
security services have their hooks into the UK media, this case shows
that very explicitly. You also see how things get gradualkly wqorse with
a particular journalist; a couple of weeks ago Peter Tory in the Express
was writing about "nerds seeking their revenge on him through the Net",
guess what that was about.
> 4. Complain to the UK Security Services. (Mike's rationale: "Can't
> because they ARE the Cnspiracy")
>
Quis custodiet ipsos custodes? If the fascist Gestapo bastards plot to
see you dead then who's going to deal with it? Not the security
services, that's for sure.
> 5. Make it visible through Internet: (Mike has done this
> suvccessfully; but any gainsayers are "part of the Conspiracy".
>
I don;t think you';re part of the consipracy if you refuse to believe or
email the postmaster. Those who do know are keeping their silence.
> 6. Complain to the Canadian National and State Governments. (Has
> Mike done this yet ?)
>
No. It's a UK problem so that's where it should be dealt with. The
perpetrators are UK residents, are unidentified, and would be difficult
to deal with through the Canadian courts.
Ditto the police in Canada, ditto the press - it isn't their problem,
it's caused by UK people against someone from the UK. Of course Canadian
laws are being broken relating to harassment and "stalking" which do not
exist in the UK, but the Canadian police do not have a very good record
of enforcing those laws anyway.
> 7. Complain to the Canadian Security Services (Has Mike done this
> yet ?)
>
> 8. Complain to the Canadian Press. (Has Mike done this yet ?)
>
I think if they didn't knoiw, they'd just think you were having
delusions; and if they did, then they would side with the people with the
power, the smiling English people with their knives out.
Remember, nobody uis going to side with the person who has less power in
a copfrontation. The team over here in Canada have the resources of their
organization behind them, other broadcasters etc in the UK would have
influence with their counterparts in Canada; after all, this was once a
British colony, there is still a feeling of "looking up to" the UK among
many Canadians, so if a team of security services arrives from the UK
with apparently limitless resources to pursue their target, people
over here will forget anything they ever knew about basic human rights
and go along with what they are told to do and how they are told to behave.
> 9. Complain to non-UK TV Watchdogs (Does Canada have an "Oprah
> Winfrey ? Has Mike done this yet ?)
>
> 10. Complain to the EC Court of Human Rights. (Has Mike done
> this yet ?)
>
> ........or...are 6,7,8,9,10 also all part of
> the Conspiracy ?
>
>
>
> --
> john heelan
970 Tag: Awesome Tag: 111828
winforms + resize issue
hi,
i'm a newbie to winforms..
in my application..i've created a main form..
i show the other forms as dialog form on click event of buttons of my
mainform ...
but, here is a small problem..the forms which i show as dialog are resizable..
I can drag or shrink the form..which i dont to happen..
how can i turn off the resizability of the form Tag: Awesome Tag: 111826
WinForm Drawing App Question
need to be able to display something similar to the way Crystal Reports
allows you to link tables. I want to display tables in rectangles with
fields listed in the rectangle. I need to be able to draw lines between the
rectangles to indicate relationships. I just need help in gettng started.
My initial thought is to have listboxes displayed on a form with the ability
to drag them around.
I would create a panel on a winform and have the user select the tables
from a list and then I would place the selected tables in list boxes on the
panel.
Am I on the right track or is there a better way to do this?
Thanks
Bill Tag: Awesome Tag: 111818
Fade Transition Trick
We are trying to use basic windows forms to do "fancy" transitions on our
application. When switching between main form controls (docked to full), we
want to make it look like one is fading out and the other fading in. Since
the UserControls don't support 'Opacity' I built a transition panel that
shows a modal form (with internal timer) that fades out, then back in when
the next control is shown. The Transition form is shown over the area of the
main form's child controls.
It functions as expected, however when the transition form hits opacity 1.0
(goes from 0 to 1, to 0 again to simulate fading out then back in), I get a
flash of black once before it starts to fade back to 0 opacity.
The backcolor and forecolor are set to white. I have overriden
OnPaintBackground, but it isn't being called. It definitely seems like the
parent is refreshing (because I change the control states of the main control
to visible at the mid fade point) and causing the modal dialog to repaint
black.
If it flashed white, I would be OK with that, but I would prefer it to
always repaint the current screen. In MFC and C++ I recall that you could
setup the default brush for erasing. Not sure if there is a .NET equivalent.
I do have a picture box on the form. Is it possible that it's
OnPaingBackground is causing the flash?
Any thougths would be helpful. I am sure I am missing some vital step here.
--
Brian R. Tag: Awesome Tag: 111808
Control drawing over contained control
I have a class derived from UserControl. The control displays a layout that
I want to use on several different controls/forms. The containing
control/form would then paint over the layout with additional information.
The problem is that when I draw a line in the control containing the layout
control (in my case, another UserControl derived class), the line is behind
the layout control. I have tried turning off the WS_CLIPCHILDREN style in
the CreateParams, but that doesn't seem to make a difference.
I want to avoid drawing all possibilities in the layout control, but cannot
find the right code to do it.
Is there a way to do this or is my architecture incorrect? Tag: Awesome Tag: 111805
.net 2.0 WebBrowser control
Hello all,
Is there an event (native .NET or COM, I don't care) that is generated
before the item is downloaded for every item downloaded on a page??
I know there's "BeforeNavigate" but that's only generated before the
page is downloaded, I want an event before every javascript file,
flash file, image etc.
Thanks
gareth Tag: Awesome Tag: 111798
Reverse TrackBar Control
Hi all,
By default the trackbar control uses down equal to right and up equal to
left. I want to make down equal to left and up equal to right.
I know that I can behave that, importing SetWindowsLong from user32.dll and
set the "TBS_DOWNISLEFT" style, but I'm searching for other way without using
Win32.
Thank u
KalliMan Tag: Awesome Tag: 111797
Smart Tags runtime usage
I see that some of the windows controls like Panel , group box has a smart
tag a gliph (an arrow) helping to configure commonly used properties at
design time. Is there a way that we can use the smart tag gliph at runtime ?
Thanks,
Vittal Tag: Awesome Tag: 111795
Auto Hide AppBar
Hi folks,
I'm building an AppBar application, which needs to support auto hide status
(and on mouse hover - to pop up).
Can anyone give me some directions in how to do that? code snippets? The
application is written in C#.
Appreciate any help I can get,
TIA,
- Tal. Tag: Awesome Tag: 111792
How to add DeckWorkspace to VS05's General tab?
Where is the DeckWorkspace component? I'm trying to get up to speed with CAB
and am following the Patterns and Practices example. However, the
instructions says to 'Drag a DeckWorkspace from the General table of the
Toolbox into each..." but I don't have a DeckWorkspace component in VS05's
Toolbox to drag. How do I get the darned thing there?
--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for a couple thousand good giggles!:
www.haggard-and-associates.com/Humor/humor.htm Tag: Awesome Tag: 111788
Question about deployment of a Winforms app on a server
(Excuse me if this is a duplicate. My previous post appears to have gotten
lost.)
I am currently working in at a company with a fairly large intranet (uses
Active Directory). One of my co-workers is trying to deploy a Winforms
application onto one of the windows servers. The intent is to share the
directory and allow multiple persons to run the exe on the one server.
What are some of the potential problems?
(Just looking for general feedback. I come from a web development background
and my winforms skills are a bit rusty. And yes, the possibility of turning
it into a web app has been discussed.) Tag: Awesome Tag: 111787
Newbie error...
Rusted, actually. But the results are the same (bad). LOL.
Hi guys,
I have the error "An object reference is required for the nonstatic field,
method, or property 'CoachLibrary.emailSender.checkBeforeSend(string)'" in
this class. Any hint gonna be welcome... =$
The method checkBeforeSend is something I didn't work on and was working
before.
Thanks a lot.
______________________________________________________
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CoachLibrary;
namespace User_Mode
{
public partial class Default : Form
{
emailSender emailsender = new emailSender();
public Default()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
emailSender.checkBeforeSend("exa");
}
}
} Tag: Awesome Tag: 111784
Prevent row change Datagridview
Hi all,
How do I prevent row change in a Datagridview? Is there something like a
BeforeCurrentRowChanged with an eventarg that could prevent from changing
current row?
I'm using datagridview bind with a datatable.
(I think old ADO had an event that could achieve this!)
TIA,
DC Tag: Awesome Tag: 111781
Big picture question about the deployment of Winforms exe's
I work in a company with a large corporate intranet. Many of the servers are
both SQL Server hosts and file servers.
For reasons beyond my understanding (i.e. management), it has been proposed
that a new Winforms application be deployed by putting it on the same server
as the database server it uses. Presumably users would just set up mapping
to that server via Windows Explorer and probably set up a shortcut icon on
their desktop.
(I really haven't given much thought to this sort of a problem, since much
of my recent work as been in Webforms.)
What would be the drawbacks of this approach, if any? Tag: Awesome Tag: 111779
how to raise user events in VS 2005 (COM) sub-Winform, handle in V
I am trying to raise a user-defined Event in a VB.NET 2005 COM Class
(sub)form and have my calling VB6 form handle it.
Code samples follow. In the VS 2005 code two events are coded identically -
when they are RAISEd in reaction to a Framework Event they WORK, but when
they are RAISEd in response to by user action within the VB.NET 2005 Subform
they do NOT:
===================================
' 1. Here are the Events, defined in the same fashion in the VS 2005 (sub)form
===================================
#Region "User-Defined Variables"
Public Event ExitOBRpayerDialog()
Public Event NetworkAvailabilityChanged( _
ByVal IsAvailable As Boolean)
===================================
' 2. Here are the Event Handlers for the Subs that will Raise the Events
' to the calling VB6 form, both added in the VS 2005 (sub)form constructor
===================================
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
AddHandler Me.FormClosing, AddressOf frmOBRpayer_FormClosing
AddHandler My.Computer.Network.NetworkAvailabilityChanged, _
AddressOf My_NetworkAvailabilityChanged
AddHandler btnCustom.Click, AddressOf btnCustom_Click
End Sub
===================================
3. Here are the VS 2005 Subs that are supposed to Raise the Events.
When the OS raises the My.Computer.Network.NetworkAvailabilityChanged
event, both User Events are raised by the first Sub below. They BOTH
fire and are handled properly by the VB6 calling form!!!
When either of the other two Subs is executed it is because of a Form
Event, i.e. a user clicking a button (Form Close in the 2nd sub and
btnCustom in the second). In this case, NEITHER User Event that is RAISED
gets back to the VB6 program and neither is handled!!! The VB6 code for
both Events is similar also, but I include it further below for completeness
anyhow.
WHY oh WHY cannot I fire my User Events with a form button click? WHY does
an Event raised by the OS work and a user action does not??? (BTW, the way
the OS fires both events is when I pull the network cable out of my
workstation).
===================================
Public Sub My_NetworkAvailabilityChanged(ByVal sender As Object, _
ByVal e As _
Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs)
RaiseEvent ExitOBRpayerDialog()
RaiseEvent NetworkAvailabilityChanged(e.IsNetworkAvailable)
Application.DoEvents()
End Sub
-----------------------------------------------------------------------------
Public Sub frmOBRpayer_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs)
Dim crCloseReason As Windows.Forms.CloseReason
Dim ev As New
Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs(False)
Try
crCloseReason = CloseReason.UserClosing
crCloseReason = e.CloseReason
Select Case crCloseReason
Case CloseReason.UserClosing
PayerCode = "71LA"
RaiseEvent ExitOBRpayerDialog()
' DOES NOT FIRE - why oh why?
Application.DoEvents()
Case Else
PayerCode = "OOPS"
If OBRMode Then
RaiseEvent ExitOBRpayerDialog()
' DOES NOT FIRE - why oh why?
Application.DoEvents()
Else
RaiseEvent ExitOBRpayerDialog()
' DOES NOT FIRE - why oh why?
Application.DoEvents()
End If
End Select
Catch ex As Exception
If exceptionPolicy.HandleException(ex) Then
Me.handle_Ignorable_Exception(ex)
Finally
Call My_NetworkAvailabilityChanged(Me, ev)
' DOES NOT FIRE even though the Sub is the one that RAISEs
bothEvents!
End Try
End Sub
-----------------------------------------------------------------------------
Public Sub btnCustom_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
' Does a custom form operation. First removes any errors on the form,
' then restores the data at it looked before the last user Save.
Dim ev As New
Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs(True)
Try
Call My_NetworkAvailabilityChanged(Me, ev)
' DOES NOT FIRE even though the Sub is the one that RAISEs
bothEvents!
Catch ex As Exception
If exceptionPolicy.HandleException(ex) Then
Me.handle_Ignorable_Exception(ex)
End Try
End Sub
===================================
' 4. Here is the VB6 calling form code for handling the two User-Defined
Events
===================================
Option Explicit
Private WithEvents clsOBRPayer As frmOBRpayer
...
Private Sub Form_Load()
' Instantiate the object defined above as "With Events"
' Note that this object is NEVER reset to 'Nothing'.
Set clsOBRPayer = New frmOBRpayer
...
' Here is where the .NET (sub) form is actually run
Public Sub cmdManipulatePayers_Click()
Screen.MousePointer = vbHourglass
With clsOBRPayer
.Billing_Patient_ID = 902264244
.Admit_ID = 1
.Patient_First_Name = "Silly"
.Patient_Last_Name = "Willy"
.OBRMode = True
.runForm
End With
Screen.MousePointer = vbDefault
End Sub
-----------------------------------------------------
...
' Here are the Event Handlers for the two User-Defined events. BOTH are
' handled and ONLY handled when the OS fires the
' My.Computer.Network.NetworkAvailabilityChanged event
-----------------------------------------------------
Private Sub clsOBRPayer_ExitOBRpayerDialog()
ShowPayerCode
End Sub
Private Sub clsOBRPayer_NetworkAvailabilityChanged( _
ByVal IsAvailable As Boolean)
ShowAvailable IsAvailable
End Sub
Private Sub ShowPayerCode()
Dim intReturnCode As Integer
intReturnCode = MsgBox("PayerCode: [" & _
clsOBRPayer.PayerCode & "], " & _
"Application_Startup_Path: [" & _
clsOBRPayer.Application_Startup_Path & "].")
End Sub
Private Sub ShowAvailable(IsAvailable As Boolean)
MsgBox (IIf(IsAvailable, "Online", "Offline"))
End Sub
===================================
Help would be much appreciated! Warm regards,
--
triunity Tag: Awesome Tag: 111776
Click-Once w/ parms not passing into app
Problem:
I've created a click-once deployed application that cannot receive
paramters from the query string in the URL of the click once page.
I've followed this to the letter:
http://msdn2.microsoft.com/en-us/library/ms172242(VS.80).aspx
My query string is always blank. Here's my actual URL:
http://MyMachine/MyApplication/publish.htm?test=something
The application starts up just fine, it's just that
ApplicationDeployment.CurrentDeployment.ActivationUri.Query is always
blank.
Has anyone ever gotten this to work? Tag: Awesome Tag: 111774
Using the TextRenderer Class
I've been working with the "TextRenderer" class. I'd like to get it to
display text in a PictureBox and add an ellipsis if the box is too small for
all of the text. I've created a form with a PictureBox (picTest1) that's too
small for all of the text and this is the "Paint" event for the PictureBox:
Private Sub picTest1_Paint(ByVal sender As Object, _
ByVal e As System.Windows.Forms.PaintEventArgs) _
Handles picTest1.Paint
Const MSSG As String = "This is the PictureBox text. " & _
"It is very long in order to test the wrapping and " & _
"ellipse functions of the TextRenderer class."
TextRenderer.DrawText(e.Graphics, MSSG, _
Nothing, e.ClipRectangle, Nothing, _
TextFormatFlags.HorizontalCenter _
Or TextFormatFlags.Top _
Or TextFormatFlags.WordBreak _
Or TextFormatFlags.WordEllipsis)
End Sub
It works fine on a single line, but when I add the "WordBreak" flag, the
ellipsis disappear. The documentation says you can't combine the
"ExpandTabs" flag with one of the "Ellipsis" flags, but it doesn't say that
this won't work with "WordBreak".
Am I doing something wrong?
Is there any other technique for rendering the text and adding an ellipsis
if the PictureBox is too small? Tag: Awesome Tag: 111772
Cheking of entered symbols in current Treenode
Hi there!
In my Treeview Control I am trying to edit some of the nodes.
For this purpose I am using mytree.beginedit(), so after this the node
is ready for editing. But I need to avoid of entering some symbols
during editing.
So I need smth like KeyPress Event for current TreeNode to be fired to
implement some symbol cheking.
Could you advice me smth?
Treeview property LabelEdit is set to True.
Thanks in advance!
Dmitriy.
*** Sent via Developersdex http://www.developersdex.com *** Tag: Awesome Tag: 111769
grid of user controls
Hi
Looking for a bit of advice here.
I'm building an application that needs to display a grid (days in a year
or month along the top and people down the side) in which each cell is a
user control. The number of rows and columns are both variable.
I've contemplated and partially tried various ways to tackle this, e.g.:
- DataGrid (need to define columns, styles? - not got that far)
- DataGridView (ditto - better / easier than DataGrid?)
- Adding controls to a scrollable panel (possible issues with running
out of window handles with large grid)
I did also try doing this by rendering a large bitmap - this ran fairly
nicely when it worked but I kept getting OutOfMemory exceptions and I
would have to sacrifice a lot of flexibility and interactivity.
As you can see I have a few ideas and I was wondering if anyone out
there had any suggestions, alternatives or hints on what best practice
might be with this sort of thing?
Thanks in advance Tag: Awesome Tag: 111766
Control.CheckForIllegalCrossThreadCalls
Hi,
What are the consequences of setting the
Control.CheckForIllegalCrossThreadCalls to False on application that
uses threading? Tag: Awesome Tag: 111765
Passing arguments to ClickOnce applications
Hello,
Is there a simple way for passing arguments to applications deployed with
ClickOnce and having off-line capabilities.
My app takes arguments if I start it with the whole path to it
"c:\whole\path\myapp.exe /arg=123" but as I do not know where the
application reside on the client PC's I don't know the whole path.
Is there a way to do so by a system-variable as %the_path_to_your_app% or
what so ever, or is there any work around.
tnx a lot
Jean Paul Tag: Awesome Tag: 111764
Custom Software Development
iTechArt Group - Custom Software Development and Offshore outsourcing
Company
http://www.itechart.com/
Offshore custom software development company iTechArt - Web site and
Content Management Solutions development, CMS consulting: Ektron,
Drupal and DotNetNuke
iTechArt Group provides high quality custom software development
services and offshore software development. On December 2006, iTechArt
Group became an authorized Microsoft Certified Partner. This means
that our company has been recognized by Microsoft for our vast
expertise and authorized to custom software development; provide IT
service consulting and custom business solutions.
Custom Software Development and Offshore outsourcing Company iTechArt
has worked together since 2003 to design build and deliver .NET Web
Content Management software solutions that help clients meet their
strategic objectives. We are agile oriented development partner able
to consistently deliver solid results.
iTechArt software development team assemblies specialists in the
development of custom software applications and offshore software
outsourcing services.
Working concepts of our company are based on proven approaches and
international standards used for custom software development such as
Capability Maturity Model Integration for Software Engineering (CMMI-
SW). In the same breath we have our own standpoint on software
development process management which is fully effective and
comprehensible for our clients.
iTechArt offers software development in the next main directions:
1. Custom Software Development (Offshore outsourcing for worldwide
based software development companies.)
2. Software Development for Digital Signage (Media content development
and remote displays / information kiosks Web-based software
application management.)
3. Web Site Development (E-commerce solutions, CMS/DotNetNuke/Ektron/
Drupal, Web 2.0/PHP/MySQL/AJAX, Flash/Action script/Flex and many
more.)
4. Offshore Development Center (Dedicated development team of software
developers. Our offshore development centers operate as an extension
to clients' existing software engineering business.)
Contact iTechArt ( http://www.itechart.com/ )about custom software
development, end-to-end software solutions, outsourcing software
development, custom DotNetNuke module development, DotNetNuke
consulting, dotnetnuke hosting, first class Java and .Net developers,
software application design, software testing, Quality Assurance,
functionality testing and defect analysis, performance and stress
testing, usability testing, Microsoft Media Services and Adobe Media
Flash Server solutions, digital signage solutions and custom
development, Ektron CMS400.NET developers, CMS, .NET Web Content
Management software solutions
Web:
http://www.itechart.com/
http://www.itechart.com/Pages/ProductsServices/HowWeWork.aspx
http://www.itechart.com/Pages/ProductsServices/BusinessModels.aspx
http://www.itechart.com/Pages/ProductsServices/CustomSoftwareDevelopment.aspx
http://www.itechart.com/Pages/ProductsServices/DotNetNukeModuleDevelopment.aspx Tag: Awesome Tag: 111763
how to make list view multiline in winform?
Hi All,
I am developing an application for WM5.0 in C#. I need to show a form
in which i want to show list of details. Now i want to show the form similar
to the form which is shown for the contact detail in WM5.0 device. In which
name and number of the person comes in the same row. Basically the question
is how to maek the list view multiline. MEans every row sontains more than
one line,like in the contacts and also when you click on the particular
contact,it shows the details of the phone numbers. Please help to resolve
this.
Thanks Tag: Awesome Tag: 111762
Using The TextRender Class
I've been working with the "TextRenderer" class. I'd like to get it to
display text in a PictureBox and add an ellipsis if the box is too small for
all of the text. I've created a form with a PictureBox (picTest1) that's too
small for all of the text and this is the "Paint" event for the PictureBox:
Private Sub picTest1_Paint(ByVal sender As Object, _
ByVal e As System.Windows.Forms.PaintEventArgs) _
Handles picTest1.Paint
Const MSSG As String = "This is the PictureBox text. " & _
"It is very long in order to test the wrapping and " & _
"ellipse functions of the TextRenderer class."
TextRenderer.DrawText(e.Graphics, MSSG, _
Nothing, e.ClipRectangle, Nothing, _
TextFormatFlags.HorizontalCenter _
Or TextFormatFlags.Top _
Or TextFormatFlags.WordBreak _
Or TextFormatFlags.WordEllipsis)
End Sub
It works fine on a single line, but when I add the "WordBreak" flag, the
ellipsis disappear. The documentation says you can't combine the
"ExpandTabs" flag with one of the "Ellipsis" flags, but it doesn't say that
this won't work with "WordBreak".
Am I doing something wrong?
Is there any other technique for rendering the text and adding an ellipsis
if the PictureBox is too small? Tag: Awesome Tag: 111755
Reference Caller's Application Variables from DLL
I want to be able to access some global variables (defined in a
winforms "ApplicationEvents.vb") from a DLL.
I assume I need to pass a reference to the application object to the
DLL. If so, how would I define it in the DLL and how would I set it
in the main app?
Is there some other way to get a reference to the DLL instantiator's
application object from inside the DLL?
Thanks. Tag: Awesome Tag: 111754
Debugging a Windows Service
Hi guys,
I'm trying to do just this, debug a Windows Service. I tried some ways I
found around the net but I wasn't able to get it to work.
This I found at http://www.codeproject.com/dotnet/DebugWinServices.asp and
seems like a nice approach, but when it talks about "<Your Service's Primary
Method Here>" I don't know what to do... =/
Any help, will gonna be VERY welcome.
//#if (!DEBUG)
// System.ServiceProcess.ServiceBase[] ServicesToRun;
// ServicesToRun = new ServiceBase[] { new Service1() };
// ServiceBase.Run(ServicesToRun);
//#else
// // Debug code: this allows the process to run as a
non-service.
// // It will kick off the service start point, but never
kill it.
// // Shut down the debugger to exit
// Service1 service = new Service1();
// service.<Your Service's Primary Method Here>();
// // Put a breakpoint on the following line to always catch
// // your service when it has finished its work
//
System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
//#endif
Thanks,
Charly. Tag: Awesome Tag: 111753
wierd grid problem - 2003
I have inherited an app, so I'm using the 2003 IDE...
I'm trying to change the grid size, however, it doesn't matter whether it's
2,2 or 200, 200 or whether Snap to Grid is on or off
It keeps the same grid size and snap to grid is always on.
Anyone have a fix for this, or at least any ideas? Tag: Awesome Tag: 111751
finding files in adirectory
hi,
how to get the number of files in a directory...including the files in the
subdirectories...
is there any default method of Directory class..
please help out Tag: Awesome Tag: 111749
help on regex
i want a reg exp for the below format..
1.0.00.0000
i tried as follows
\d\.\d\.\d{2}\.\d{4}
but it's accepting -ves numbers also(-1.0.00.0000)
I want only +ve numbers in my input..how do i check it? Tag: Awesome Tag: 111748
autoscaling of winforms
hi,
i'm a newbie to winforms....
i've designed few forms...
but when the resolution is changed to lowest number..
i'm not able to see certain buttons on my form...
how do i fix this issue...
do i need to set any properties on the winforms or controls?
please do help out.... Tag: Awesome Tag: 111747
Redirecting keys using ActiveX RDP control in C#
Hi,
I'm writing a simple Rdp client in C#. In the Remote Desktop connection
provided with windows, we can configure to redirect the winkey, and
other hot keys such as alt+tab under the Local Resource tab. But I've
been unable to do the same in an AcvtiveX RDP Client. Reading on MSDN i
thought the following will work -
private void Form1_Load(object sender, EventArgs e)
{
userControl11.axMsRdpClient1.Server = "testserver";//put server here
userControl11.axMsRdpClient1.Connect();
userControl11.axMsRdpClient1.AdvancedSettings2.EnableWindowsKey = 0;
userControl11.axMsRdpClient1.AdvancedSettings2.HotKeyCtrlEsc = 0x23;
}
but it doesn't seem to work.So every time I hit the windows key, its the
local computers windows menu that pops up. I want the remote computer's
windows to do so. Same with the alt+tab and other escape sequences
Anybody knows how to do this?
Rahul
*** Sent via Developersdex http://www.developersdex.com *** Tag: Awesome Tag: 111743
Usercontrol validating with messagebox and tabcontrol
For a Windows forms application I use the following construction.
I have a form with a TabControl. On each TabPage there is a custom user
control. The custom user control gets some parameters from the form, to set
the data of the user control. In the validating event of the custom user
control I check or there are any changes made by the user. If so, a message
box is shown with the question â??Save changes?â??
The validating event is fired on tab switch and form close, that is what I
want. But the problem is, on tab switch the message box is shown, but after
that the tabs donâ??t switch any more. Is there a way to achieve this goal,
user controls that a self responsible for their data saving? Tag: Awesome Tag: 111741
MessageBox in the middel of the application form, not in the middle of the screen - .net 1.1 , VS 2003
Hello,
I have the following problem, which seems to be simple, but I see no
solution.
If I have for example:
MessageBox.Show(......)
this messagebox is allways in the middle of the screen. But on a screen with
1920x1200 pixel this is not very good because the application
is for exampel in the top right corner.
Is there any way to have the messageBox in the middle of the parent form?
Must run under .net 1.1 / VS2003.
Thank you for any help.
Rolf Welskes Tag: Awesome Tag: 111738
Problem with one touch deployment
I can create a new project, add a button that displays a MessageBox and then
publish it to the localhost. This works as expected.
However, when I publish an existing application, I get no errors yet the
publish location is empty! This existing project was once copied across from
another machine but I have been publishing it to a file location with no
problems, when I switch it to a URL, it doesn't work.
The publish URL is http://localhost/test - note this works with a new
project just not with the existing project. I have tried a filesystem path
"c:\inetpub\wwwroot\test" and I get the same problem.
Any help much appreciated...
--
Best regards
Mark Tag: Awesome Tag: 111735
autoscaling of winforms
hi,
i'm a newbie to winforms....
i've designed few forms...
but when the resolution is changed to lowest number..
i'm not able to see certain buttons on my form...
how do i fix this issue...
do i need to set any properties on the winforms or controls?
please do help out.... Tag: Awesome Tag: 111732
String Alignment problem
Friends,
My Problem is related to writing a text file from a database
using .Net. in a particular string format.
I have a dataset with a table, let suppose in this table there are
three fields.
- Code
- Description
- Amount
At the time of writing a text file I use in a for loop -
String.Format("{0,10}{1, 40} {2,-10}", DS.Table(0).Row(i)
("Code").ToString(), DS.Table(0).Row(i)("Description").ToString(),
DS.Table(0).Row(i)("Amount").ToString())
But the problem is related to the alignment. Data comes like in
following format:
01Code 01Desc 2000
02Code 02Desc 3000
03CodeABC 03Desc 4000
04xyz 04Desc 5000
I want Data comes in following proper alignment format.
01Code 01Desc 2000
02Code 02Desc 3000
03CodeABC 03Desc 4000
04xyz 04Desc 5000
So anybody knows the solutions of this problem, please and please
reply imediately, its urgent.
Rahul Tag: Awesome Tag: 111727
Problem with returning to XP with dual boot vista.
I recently got Windos Vista, and I wanted to have it without losing windows
XP, so I installed it on a seperate partition as a dual boot. Windows Vista
works fine, but when I try to get back into Windows XP, I get a message
saying the Hardware Ajustment Layer has been corrupted (HAL.DDL) I put in my
Win XP disk to try to run recovery console, and it does not even detect that
I have windows XP. All my user data is still on the C: drive, while vista is
on F:, and it is locked from me being able to access it from Vista due to the
password I put on XP. I even tried altering the access controlls. (cacls
icacls), and I can not get to my data. Tag: Awesome Tag: 111726
Database backup from the application code ...
Hi, The task I want to do is backing up the sql server 2000 database which
my application connect to from a client machine and saving this backup on
the server machine. Is it possible to do that ? and if yes what code can I
write to accomplish this task ? Thank you. Tag: Awesome Tag: 111725
Need help in identifying a control
I have seen controls like the PropertyGrid that have a label titled
Properties and have a Pin and cCose button on the label. What control is
used to create the label with a pin and close button?
Bill Tag: Awesome Tag: 111723
preventing the label from getting focus?
hi ,
I have a groupbox with labels and textboxes , just like a regular
form.
I've set the tabindex for each consecutive textbox to tabindex of the
prior textbox +1. The labels have high indexes , but they still
recieve focus after every textbox Is there any way to prevent this?
Thanks
Gideon Tag: Awesome Tag: 111715