|
3) I would look around Delphi.NET and #Builder
4) Here[^] it is.
RSS feed
|
|
|
|
|
I've got a datagrid, and all I want to do is select an item, push a button, and have a new windows form show up w/ information based on that item. I'm completely lost on sending the data to the new form, someone *please* help!
<---signature--->
Your kid gets into Duke.
You pay the tuition.
That tuition goes into my checking account.
My money in my checking account goes into beer, porn, and other such fun. Thank you
|
|
|
|
|
|
Don't need anything in ASP, need the C# stuff to open windows forms.
<---signature--->
Your kid gets into Duke.
You pay the tuition.
That tuition goes into my checking account.
My money in my checking account goes into beer, porn, and other such fun. Thank you
|
|
|
|
|
|
How can we connect to com port with c# (without using Assembly )?
|
|
|
|
|
You can't.
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
IF u dont mind downloading the VBResourceKit, u can find one in there
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
hi anyone knows if there're classes or libraries about that protocol?
thanks in advance
Paolo Ponzano
|
|
|
|
|
How can I maintain selected items in a bound list box control when it is bound to a datasource. What I currently do is add the item to a the underlying datasource which then automatically adds it to the listbox. I then use the setselected method of the list box to select the newly added item. This works great, but it unselects all my previous items that were selected. How do i get around this?
Thanks,
Ryan
|
|
|
|
|
Looking at the IL for the ListBox , this isn't possible. While both the SelectedIndecies and SelectedItems properties use a class that implements IList , IList.Add and related methods throw a NotSupportedException .
You'll have to derive your own ListBox class and create your own IList implementation that does implement those methods (and perform the necessary actions in the ListBox . If you have a program like .NET Reflector, you can see how the CheckedListBox derives from ListBox and do much the same thing.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
i want to start an process (i.e. notepad.exe) in a (.net) nt service application (vb.net).
the service run's in "local system" account. i get an exception (access violation) if the
service application want's to start the process. what could be the reason for this exception??
regard's, thilo.
|
|
|
|
|
For one, a service must be able to interact with the Desktop. There is an option for this in the SCM (service control manager). Also, the server must run as a user or other problems are likely to happen.
Why in the world are you trying to start notepad from a service, though? It's important to do things in the way they were intended. Services are programs that run without a user being logged in, or for global access by programs on your machine or other machines (like the Event Log service, for example).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
starting notepad.exe was only an example.
the "interact with desktop" flag was the right answer.
i want to access a network-shares (as local system-service) to load notepad.exe from e.g. \\server1\share1\notepad.exe.
the guest-access is activated for that server and "Everybody" has the right to read that share, but my service cannot access this share. why?
|
|
|
|
|
thilol wrote:
i want to access a network-shares (as local system-service) to load notepad.exe from e.g. \\server1\share1\notepad.exe.
the guest-access is activated for that server and "Everybody" has the right to read that share, but my service cannot access this share. why?
When you say "everybody", it is actually everybody recognized by "server1", i.e. everybody with an account in the domain. You need to change your service to run under a regular domain account instead of "Local System". This can be done via the "Administrative Tools - Services" menu, just double click your service and select the "Log On" tab (you can use the browse button to find a domain user).
Good luck.
P.S. You won't be able to see the GUI of your program started by the service if your service no longer uses the "Local System" logon.
My articles and software tools
|
|
|
|
|
Because the local SYSTEM account is just that - local. When connecting to other services, the SYSTEM account is not the same - not the SID and not the same password (one or the other depends on the authentication used). To access a share on another system, you have to run the service as a domain account - not a local account. Either use or create a domain account (or two local account named the same thing with the same password - works in most cases) and run the service as that user. Make sure that user account has the permissions to run as a service. You can set this in the domain or local security policy for the computer on which the service is being run.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
my service have to run as LocalSystem!
can my service start a secondary process (which run's not as LocalSystem) to access a network share?
regards thilo.
|
|
|
|
|
1. Why does your server have to run as LocalSystem? This is changable both programmatically and via the SCM UI.
2. You can use impersonation and start another process on the local machine that starts a process on another machine.
3. One more option is to use remoting and have two services running on each machine that communicate through remoting. Then the remote system would be responsible for starting a local application - which would be the remote application to the sending service.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
my service should start a program which MUST run in LocalSystem-Account and not in a user-account.
i fixed that problem! i activated the network-share on my server for NullSession-access; and so my LocalSystem-account can access that share.
thanks.
regards, thilo.
|
|
|
|
|
Great, but you just opened your system up for anonymous attacks. Make sure you have security tight if you're going to do this. Still, the easiest way is to make sure that the SYSTEM account on both machines has the same password. This works in most cases.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I am an extreme newbie (or n00b for the elite) and I REALLY want to learn how to program in C#. I have Herb Schildt's book call 'C#: A Beginner's Guide' and it's very good. However, I like to have a ton of websites to turn to when I have questions. So, could everyone please reply with their best C# referrence websites? It would be much appreciated!
|
|
|
|
|
Well, for starters, CodeProject!
Other good ones:
Some of these links are for .NET in general. Remember that C# is just a language that targets the CLR (see below).
And never forget the important of research skills. Taking a glance at the .NET BCL (base class library) is very important: http://msdn.microsoft.com/library/en-us/cpref/html/cpref_start.asp[^]
All language that target the Common Language Runtime (CLR) have equal access to the BCL. They just use different syntaxes (and shortcuts based on various keywords).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I've noticed a lot of people around here call it the ".NET BCL" instead of the ".NET Framework". I'm curious why that is. Did I miss a memo?
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|
|
The term "BCL" means Base Class Library, and refers to the base classes in the .NET Framework. ".NET Framework" refers to both these classes and the runtime and VM.
|
|
|
|
|
That makes sense, and I can see the need to differentiate. I've just never seen MS refer to it as that and was wondering if it's sort of a defacto term.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|