|
On a WinForm I'm working on I want to draw attention to two particular controls.
One is a TextBox and I can set the BackColor property.
The other is a DateTimePicker, and...
"
Setting the BackColor has no effect on the appearance of the DateTimePicker. To set the background color for the drop-down calendar of the DateTimePicker, see the CalendarMonthBackground property.
"
I don't want to set the background color for the drop-down calendar, in fact I'm setting ShowUpDown to true so the drop-down calendar won't be available anyway.
This particular application is just a test bed for a class I'm debugging, so it isn't worth deriving a custom DateTimePicker or using a third-party control. That's why this is a rant. However, if anyone has a simple solution I'd like to hear it in case this comes up again in the future... as it likely will.
![Mad | :mad:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_mad.gif)
|
|
|
|
|
Why not put the DateTime picker in a Panel that's slightly larger and set the color of the panel? That would give you a bit of a border and you could even 'flash' it if you wanted to.
|
|
|
|
|
Yeah, I might do that, thanks.
|
|
|
|
|
i want a calendar like this :
1、you can type the date by youselfe when you type the data , control can show details eg:you type the month it can show the month in calendar control .
2、we can select the date with mouse no keyboard.
how can i do it .somebody can help me ! thanks very much!
|
|
|
|
|
I don't know of a way. Try posting it as a new message so more people see it.
|
|
|
|
|
Hi,
I'm looking for an ECMAScript-327 (ie ECMAScript Compact Profile) interpreter for the .Net Compact Framework, to run on a WinCE platform. Do you have any idea where I could find this ? I saw (but didn't further investigate) ecmascript-net[^] - do you think this may be useful for me? Any other trick I may try ?
Thanks
Sebastien
|
|
|
|
|
Well from what it says on the page "EcmaScript.NET is an open-source implementation of EcmaScript based on Rhino (JavaScript for Java) written entirely in C#." it sounds like it's exactly what you want.
Only you know your requirements though, so you should download it and give it a try.
Come up with a list of what you absolutely must have it do, and then test everything on your list.
Simon
|
|
|
|
|
Today I tried to remove all memory leaks from my application.
I used the tool .net memory profiler.
Some of my objects that use a datagridview are not collected by the garbage collection.
I searched google and there are a lot of hits with that problem,
not all for datagridview but this one seems to be the same problem:
f.e. :
http://www.scitech.se/blog/index.php/2007/10/05/memory-leak-in-toolstriptextboxcontrol/[^]
There's a static event "UserPreferenceChangedEventHandler" which is not unregistered in the right way.(it's the same event with my objects)
The article describes a workaround which uses reflection to unregister manually from the events.
I did a much easier workaround:
Just called dispose on the eventslist of the datagridview if my objects are deleted.
f.e.
mObject.dataGridView1.Events.Dispose()
This seems to work well!?
The objects are collected by the garbage collection after I do so!
Do you think this is ok?
Or do you have another solution for that problem!
I found nothing on msdn.
Thanks for any help!
|
|
|
|
|
LocalReport.Render method is working for less number of pages.
but when we try for more number of pages (say 20,000) we are getting "Server Application UnAvailable"
Any Alternate method for this?
Please help us , this is very urgent.
Thanks inadvance.
|
|
|
|
|
I am having the same problem, when you find the solution tell me please ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
Hi Guys,
I'm looking for a way to store resources in a secure centralized file. The idea is to imitate how Zip files work in windows where you can get a path like:
C:\Temp\MyTemp.zip\MyWebpage.html
I can't map a path directly into a zip, but this is what I'd like to achieve.
Does anyone have any ideas how to achieve this result?
Regards
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Get out your Visual C++ and Windows DDK skills and start writing an IFS, or Installable File System. This is an NTFS extension that manages, you guessed it, an alternate File System.
|
|
|
|
|
I have not the skillz
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Although you show an OS based path (c:\...) you also show a web page.
If you want to access a file in a zip file from a web site then look at: http://msdn.microsoft.com/en-us/library/aa479502.aspx[^]
If you want to make that syntax work at an OS level then you can write an IFS network redirector driver. The zip file would become the equivalent of a mount point, and the files within it the remote filesystem.
If you want to make it work within explorer (like vista, xp?) then you can write a shell extension.
...cmk
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
|
|
|
|
|
Dear All,
Iam new to c# window application and also for COM.I have a COM component
which is developed in Visual Basic.Now i want to use this component into
my c# window application.How can i register and use.The COM is in the form
of EXE not in the form of DLL.Please help me out on this.
Thanks & Regards
Veeresh
i want to join this group
|
|
|
|
|
DO NOT CROSSPOST the same question in multiple forums. You spammed about half the forums on the site...
|
|
|
|
|
And Dave already told you how to do this in the VB forums.
Use regsvr32 to register the .dll. Add a reference to it from C# and use it however you like.
Since I can predict the future, you obviously won't take the time to do a google search on how to register with REGSVR32, here's a link.
Stop spamming the boards.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Quit cross posting the forums, man.
veereshIndia wrote: i want to join this group
If that is so, then learn how to post in an etiquette manner around here
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I read somewhere on the web that the version of gacutil used to register an assembly must be specific to the version of the .NET framework that the assembly was written in. Is this true? It seems like the latest version of gacutil should be able to handle backwards compatibility for that. Please let me know.
Also, I have VS2008 installed on my laptop. I did a search for gacutil and I found 2 different versions:
1. C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil.exe
2. C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe
Do I need to add the paths for both of these to my Path environment variable? If I do this then won't my machine just pick up the first gacutil that is in my Path variable?
|
|
|
|
|
I figured it out - my assumption was correct. However, now I am trying to reference an assembly in the GAC:
I'm trying to figure out how to reference assemblies in the GAC.
I have the following assembly installed in the GAC:
Dalc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f71ce40ac4e60391, processorArchitecture=MSIL
I have researched this issue on the web and the solution to this problem appears to be to add the following block to machine.config:
<system.web>
<compilation debug="false" explicit="true" defaultlanguage="c#">
<assemblies>
<add assembly="Dalc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f71ce40ac4e60391, processorArchitecture=MSIL" />
</assemblies>
</compilation>
</system.web>
(I have also tried this with Web.config).
I did this and restarted VS2008 but unfortunately when I add a using directive of "using Dalc;" the Dalc reference is not found.
Am I doing something incorrectly or is there a better way of doing it? I have read about one option of copying a version of the dll into a local directory as a reference (and supposedly the system will revert to the GAC). However, this alternative does not seem like a very elegant approach. Any suggestions?
modified on Tuesday, November 18, 2008 1:35 AM
|
|
|
|
|
If I'm understanding correctly, you installed your .dll in the GAC and you're getting DALC reference is not found.
Did you add a reference to your .dll in your project? If not, you need to add it before you can use it. Goto project properties, references, and add your .Net .dll in.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
My Dalc.dll registered in the GAC is not available from the Add Reference ".NET" tab or "Browse" tab.
I think I would have to add a registry key for my Dalc.dll in order for my Dalc.dll to display in the ".NET" tab.
I don't think GAC items are selectable from the "Browse" tab so I would need to copy down a local version of Dalc.dll to a local directory first in order to add Dalc.dll from the "Browse" tab. I'd rather not have two intances (GAC + local) of the dll if I can avoid it.
|
|
|
|
|
Re-editing my message to make it a little clearer.
Read this article.
I created a post build event that copies all my strong named .dlls into a folder "c:\Bin\Assemblies" (rather than referencing the GAC file path directly) when doing a release build.
When creating a new project, I reference the necessary .dlls in the c:\Bin\Assemblies folder (and do not have them installed in the GAC at all). You can toggle the copy local setting per .dll as needed.
During deployment you can install the .dlls in the GAC and the client will be fine (assuming they are strong named, etc).
Hopefully this helps you out.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
modified on Wednesday, November 19, 2008 8:19 AM
|
|
|
|
|
What is the difference between CLR and FCL?
|
|
|
|
|
The CLR is the common language runtime. It's the runtime written in C++ that runs managed code.
The FCL is the framework class library. It's the set of APIs written in C# that you code .NET programs against. For example Console.WriteLine is an API inside the FCL.
|
|
|
|