|
Hi,
I am working with Task Scheduler, which in order to work correctly under XP needs to have a valid username and password in the Run As settings.
Under XP, its possible to have accounts that do not have passwords assigned. So task scheduler will never run, even with a blank password.
I've looked at WindowsIdentity, which works great to obtain the account name, but nothing further to authenticate or look at attributes of the account.
Does anyone know how I can detect whether an account has been assigned a password? And if it hasnt, how I can provide a link to have the user set
a password?
Ingram Leedy
You can't depend on your eyes when your imagination is out of focus.
--Mark Twain
|
|
|
|
|
I'm having trouble trying to access the different colour depths and sizes in an icon. Does anybody know how to load an icon into memory and pull the correct image depending on the system colour depth and users size selection?
I'm trying to provide different icons for disabled users but the imagelist will only hold one size and depth and the class is the same!
Help
|
|
|
|
|
So I have this datagrid in a web user control. The grid has some basic link buttons for functionality like Edit, Add, Update and Cancel. They all work fine when the user control is put on a web page.
I came across a need to have this datagrid repeat with some other information so I put the user control in a datalist. Now only the Edit and Add buttons work. I set some breakpoints, and it looks like any of the buttons located in the grid's EditItemTemplate will not fire their grid events. I set up some events and breakpoints in the datalist as well to see if the events were bubbling up somehow, but they weren't.
When I click on the Update or Cancel link buttons the grid reverts back to EditItemIndex equal to -1 or at least the edit line is going back to the regular ItemTemplate. I set breakpoints everyplace I was setting the grid's EditItemIndex, and again no dice.
Has anybody run into this problem? Anybody figure out a solution?
|
|
|
|
|
How can I protect the MSIL code?
I've seen that Anakrino can convert MSIL code to C# code very easy.
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
leppie wrote:
Nice! Isnt it?
It's damn nice I can convert others code!
But I don't want others to convert my code! ;P
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
Demeanor for .NET scared me:
Demeanor for .NET Enterprise Edition is available now for US$ 1,250 per license
Couldn't you come with something cheaper?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
Couldn't you come with something cheaper?
Sure you could check this out:.Net IL-Obfuscator[^]. I believe they have a free trial and their product purchase price is a lot more reasonable. Here is another if you are still looking:Salamander .NET obfuscator[^].
Nick Parker
Not everything that can be counted counts, and not everything that counts can be counted. - Albert Einstein
|
|
|
|
|
Actually, if you're willing to do it, then what you could do is go into ILDASM, export the IL, and then move some of the class members so they're global level members, then rewrite the parts that call them to call them as global.
It makes Anakrino GPF becaue C# doesn't have any concept of global members.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
I need to learn the MSIL first I think, or some part of it!
Can you show me something, how to make a varible global? A tutorial?
Something?
I have Inside C# SE and in the end there is a MSIL reference that I'll read!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I need some help. I need source code that will recursively search the registry and delete text found. It would need to work on 95/98/NT/XP/2000. I'm looking to return a list (perhaps in a list box) of all keys (ALL TEXT) that were found. If that Text appears anywhere in registry I want it added to my list. Then I can select/deselect what I wish and then delete the selected items. Allow someone to highlight and delete specific ones.
Any ideas?
Any help is appreciated.
Cheers,
Derek
|
|
|
|
|
I have been writing registry editors, searchers, and replacers for some time, so perhaps I could help. However, the core guts of almost all my code is in C or C++. I have tinkered with other languages, but none I have tried have efficient enough string handling to prevent the user from falling asleep.
One catch is the Win95 requirement, which eliminates the .Net languages. Thus, your options are to use strictly C/C++ to target Win95, or exclude Win95 and use .Net (and optionally a managed wrapper around some C++ to get decent performance).
If you can tell me how you wish to proceed, I can explain further.
Cheers
|
|
|
|
|
Yes, I would like some help. I emailed you earlier. Any help you could provide would be great. My primary language is C++. I'd like to have it list the locations and values of where it found the text that I am searching for, and allow me to choose to delete or not delete a certain entry.
Derek
|
|
|
|
|
Sorry for the late reply; I've been rather busy (as if I have lots of spare time
I've looked through my search functions, and can only find the more recent ones, which is fine, but they are very complicated (custom dynamic buffers and arrays, handle a zillion options, search binaries in various formats, some assembler, stored info to avoid recursion overhead, etc.). I am in the process of distilling one down to something digestable and more useful for your purposes. Will post (or email if too large) later today. Just wish I could find some of my regular stuff...
Cheers
|
|
|
|
|
Hello Derek,
I email you the rough code via CP's email system, which complained about the long text, so I hope it made it to you. If not, or it gets mangled, you can email me with an address I can send it to you as an attachment.
I reduced it all down to just a few hundred lines, so it should be pretty manageable. It's strictly search and callback with keypath, entry name, data, data length, data type, and where the string was found. That should be enough to load up a listbox or listview with. RegDeleteValue is easy to call after that.
Let me know if you have any questions.
Cheers
|
|
|
|
|
How can i get the ip or the username of the user in LAN???
sorry again for my english
|
|
|
|
|
System.Environment.Username has the name of the current user, if that's what you're looking for.
|
|
|
|
|
no. what i really wanted was to get a list of the computers in a LAN.sorry for my english who generated this missunderstood.
|
|
|
|
|
How can i read a shared file over a network?
I tryed to read it as if it was local , but, normal thinng, acces denied.
sorry again for my english
|
|
|
|
|
How do I make a .net dll project availiable on the Add Reference/.NET tab?
|
|
|
|
|
Use the Browse button and browse to its location.
|
|
|
|
|
I think to make it com under the .net tab, the assembly has to be signed with a strong key and also there is a registry entry where you need to specify the location of the assembly. Anyway, I do not know the particulars.
Cheers
Kannan
|
|
|
|
|
Yeah it will appear under the com tab if you select the register for com interop configuration property but I can't find out how to do the same for .net interoperability. It can be done though since third party libraries appear under the .net tab.
|
|
|
|
|
Hi,
I have exposed a property in a UserControl.
The Property is of Collection type. ( Collection of my Userdefined type).
When I use this Control in a Form, the Forms Designer allows me to Edit the
property (MyValues) using the Default Collection Editor UI.
But the Changes made to the Collection are not persisted in the Form code
by the Forms Designer.
class MyControl : UserControl
{
MyTypeCollection m_values = new MyTypeCollection();
public MyTypeCollection MyValues
{
get
{
return m_values ;
}
set
{
m_values = value;
}
}
}
class MyTypeCollection : CollectionBase
{
Add(){...}
Remove(){...}
}
class MyType
{
int i;
bool b;
public int XXX
{
get
{
return i;
}
set
{
i= value;
}
}
public bool YYY
{
get
{
return b;
}
set
{
b= value;
}
}
}
How can I make the Forms Designer generate code for the Collection Modified at Design time.
Please someone Help me...
Zor
|
|
|
|