|
I am creating an application that access the active direcotry to add new users, it works fine but after some time and while the application is still running, i get this error message:
An unhandled exception of type 'System.NullReferenceException' occurred in system.directoryservices.dll
Additional information: Object reference not set to an instance of an object.
And in the disassembly window, i find System.DirectoryServices.SearchResultCollection.Dispose in the address.
What is the problem with using the searchresultcollection although i enforce the dispose method after i finish using it, i tried to analyze whats going on but no use till now. Any help, any ideas plz it's very critical for me...
|
|
|
|
|
hi experts,
i am not able to include app.conig in my windows application. It is not visible in project-->Add Item--> New items. Plz help
with regards,
sandeep yadav
|
|
|
|
|
sandeep_programmer wrote: i am not able to include app.conig in my windows application. It is not visible in project-->Add Item--> New items. Plz help
I can't imagine why it wouldn't be visible, but to get around the problem just add a new text file, call it App.config , and add the following text to it:
="1.0"="utf-8"
<configuration>
</configuration> It will behave the correct way. There's nothing special about App.config when it's being edited.
Share and enjoy.
Sean
|
|
|
|
|
I am trying to return an array from a web service method that is accessed by an external application, and I get Error 500 - Internal server error
How can it be done?
|
|
|
|
|
Hi
how can I get the Date of the Monday in the actual or the next Calendar Week?
for example, next week is week Nr 47 and I want to know which Date is at Monday in this week.
Thanks a lot for help
Greets
|
|
|
|
|
i'm working in application that have alot of forms appear so i wanaa some of those forms appear by another way from the others form so can any one help me tell me wat can i do to let my form appear in slow motion
|
|
|
|
|
I think I speak for all of us when I say "huh?"
Could you please describe your requirements in more detail?
mav
|
|
|
|
|
Do you mean the animation that occurs when you minimise or restore an application? You can ask Windows to draw that animation for you using the DrawAnimatedRects function.
For a C# example, see here[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Until you mentioned this I never noticed it happening. Is it like the bouncing cards in win3.1/9x solitaire that lacked any sort of execution delay which looked good on the slow machines when written but broke itself on faster processors?
|
|
|
|
|
|
I couldn't find the corresponding method in msdn. would you help me? I've got a hex value like 0x0E03(stored as an int variable) and want to convert it to its corresponding unicode character.
|
|
|
|
|
Use the Convert.ToChar method in the Convert class, with the int that you have.
|
|
|
|
|
Hello; because of some problems(money) with company they didnt send me dll file for reading information from RFID kit. Is it possible to read information from RFID kit with a regular serial port programs
i use .net 2003 and framework 1.1
ubt i think i have to install framework 2.0
can you help please
thanks
|
|
|
|
|
I found answer.
if we assign 38400 baud rate and suitable com port number in the code, it is possible . but in just .net framework 2.0
|
|
|
|
|
hi
i want to execute my module which is saved in text file on local drive. module looks like
========================================================
Public Sub DynamicModule () as String
Return "Module Loaded"
End Sub
========================================================
the above module is just a sample, in actual i want to perform extra tasks
quick replies are highly appreciated
AMJ (With "Z" Factor)
|
|
|
|
|
How to Download a file from a remote FTP server.what is the process and code for it.
-- modified at 0:13 Monday 14th November, 2005
|
|
|
|
|
What type of server? Microsoft File Server, Novell, FTP, WEB, TFTP, Linux, Samba, ..., ..., ..., ?
The completeness and quality of answer you get lies in the details of the question you ask.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I need some guidance with the following:
I am trying to write a button control which will have certain properties to set styles such as aqua type.
I looked into aqua button samples here in CP and the one I liked the most is "The Aqualizer"[^] which creates a bitmap image of aqua buttons.
The problem is that it takes a long time to create the image, so what I would like to do is create the image at design time and store the image in the ResourceManager, then at runtime I should be able to load the image for the current button state.
Where I need most guidance is storing the bitmap image into a resx file. By default, VS creates a resx file for my class derived from ButtonBase but I don't know how to access it at design time.
The only way I could think was to read the resx file, then modify it as needed by adding the elements myself with the data for the bitmap files. However, I don't like this method because I depend on the location of the resx file.
Since this is the first time I try using resource managers, I am kind of lost. I did read about it and getting the image seems straight forward, but storing it at design time is another story.
Thanks in advance for any help you can give me.
|
|
|
|
|
You're on the wrong track. What you can do is add the bitmap to your application as a resource, then you can load it from there and apply it to your bitmap in code. The resx file does not *exist* at runtime, it's just part of the files the compiler uses to know what to shove into your exe.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Humm, I guess I could save the image in a memory stream, then add the image to an ImageList and return the index of the image added so the button can redraw itself.
I guess the solution above will work although I am still puzzled if we can make changes to the resx file just like Visual Studio does it at design time.
Thanks,
Rudy.
|
|
|
|
|
rudy.net wrote: Humm, I guess I could save the image in a memory stream, then add the image to an ImageList and return the index of the image added so the button can redraw itself.
You can store it as a Bitmap in your exe, and pull it out as a Bitmap.
rudy.net wrote: I am still puzzled if we can make changes to the resx file just like Visual Studio does it at design time.
What part of 'no' did you not understand ? The resx files do not exist on your client machine, therefore they are not used, therefore you cannot change them.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
My mistake, the subject should say "How do I update *.resx files at design time.
|
|
|
|
|
hi all,
I created a C# Method in a Web Application
public void Getdata(int a){
//code here
}
Now I need to use above function to a SQL Server Function and a Stored Procedure.
How do I call C# Method to SQL Server Function.?
please help me.
thanks in advance
|
|
|
|
|
You can't, unless you have the latest version of SQL Server ( which I don't think is out yet, but there are betas about ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
yo, my current project uses several DLLs. one is quartz.dll found in the system32 folder in the windows directory. my problem is that vc# makes a copy of it (and names it Interop.QuartzTypeLib.dll) to the application directory. is there a way i can change the name (or look for a different name) or have my program search for the file in the system32 folder instead?
|
|
|
|