|
Hi all.......
I have to put a checkbox in a DateTimePicker. My idea is whenever I check the checkbox the datetimepicker will be activited and will be disabled otherwise. if anybody knows the solution plz help me out. thanks
Best Wishes
Kaustav Ganguly
Mindteck India
|
|
|
|
|
How about making a user control? Add a DateTimePicker and a CheckBox and in the CheckedChanged event
dateTimePicker1.Enabled = checkBox1.Checked;
Dave
|
|
|
|
|
DateTimePicker.ShowCheckBox = true;
|
|
|
|
|
i have declared an object of a form in other form for accessin a flag value. but it is not able to access it.
|
|
|
|
|
There are several ways to do this.
The best way is to create an event in the second form (FlagChanged) that can be listened to from anywhere - including the first form.
Second best is to create a class (FlaggedForm) that inherits from Form and add the Flag property to your class.
There are other much dirtier methods (that I won't mention!)
Dave
|
|
|
|
|
If you are talking about that flag being not accessible, the closest thing I can suggest is that you have a look at its access modifier, should be public .
|
|
|
|
|
Hi,
i want know if glade, sharpdevelop or monodevelop can do some applications (in mono) that have an interface like media center.
what the pertinent IDE can i use for that goal
thanks
Soufiane
|
|
|
|
|
The easiest IDE to do it in would be visual studio 2008 (There's a free express edition), and using WPF.
mono doesn't support WPF yet though, so might not be any good for you.
I'm assuming then that you're talking about a win-forms app. Any IDE will do for this (think VS2008 is probably still the best), But it's going to be a lot of manual/owner drawn controls, it's not the easiest thing in the world to do. It's certainly not do-able just by pointing and clicking your way through it. Probably best to look for some 3rd party skinable control library.
Simon
|
|
|
|
|
hi,thanks for the answer, but the probl that i must work in UNIX
do u have a solution?
Soufiane
|
|
|
|
|
Well if you have to do the work in UNIX just pick one of those IDEs, they're all gonna give you about the same levels of support I would assume. A media player like interface is going to pretty much have to be all owner drawn, so you're going to spend a lot of your time writing graphics code to draw all the pretty shapes.
There isn't a simple point and click interface for this kind of custom fancy stuff.
That or find a 3rd party control library that works on mono, and has skinable controls.
Simon
|
|
|
|
|
Here is the code:
public Document(string title, string source,string summery, string [] filesList, int noOfFiles)
{
this.title = title;
this.source = source;
this.summery = summery;
this.noOfFiles = noOfFiles;
this.filesList = filesList;
this.pathsList = filesList;
string [] temp;
for(int i=0; i<noOfFiles; i++)
{
temp = pathsList[i].Split('\\');
this.filesList[i] = temp[temp.Length-1];
}
}
the array pathsList holds the full path of the files
the array filesList hold the abstract names of the files
As you see in the code, in the loop I update only the filesList
The MAGIC is, the pathsList is updated too
Can any why tell me how this happens?
Mohammed Gouda
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
Mohammed Gouda wrote: this.filesList = filesList;
this.pathsList = filesList;
Because you are modifying the same instance. Make a copy of pathsList.
|
|
|
|
|
they both hold a reference to the same string array, so when one alters the array it will be reflected in the other as they are still looking at the same reference.
The solution is cloning - which is a whole new rabbit hole!
Dave
|
|
|
|
|
Thanks
I gussed fixed size array is passed by value not be ref
Mohammed Gouda
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
Yeah, what they said. Personally, I'd do someting more like this:
this.filesList = new string [ filesList.Length ] ;
this.pathsList = new string [ filesList.Length ] ;
System.IO.FileInfo temp ;
for(int i=0; i<noOfFiles; i++)
{
temp = new System.IO.FileInfo ( filesList[i] ) ;
this.pathsList[i] = temp.FullName ;
this.filesList[i] = temp.Name ;
}
And more likely I'd use List<string> s rather than arrays.
I also pass file specifications through System.Environment.ExpandEnvironmentVariables before using them, but that's just me.
|
|
|
|
|
i had Created a Window Service which check the Update From the Server. Now the Issue i have is that if Update is Found on the Server then there is another application which is basically an updater. i want to Interact My Service with the My Desktop Application so that there is a pop up window of my desktop Application is shown which tell the client that update is available on the Server.
Can any body tell me that How can i interact my window service with desktop application.
wasim khan
|
|
|
|
|
You can use remoting or pipes for inter process communication.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
you can share a file that can be check both of your windows service application and desktop application periodically.
in windows service :
- check if shared update file is exist, if file is exist do not check update from server, otherwise check update from server, if update found create shared update file
in desktop application
-check if shared update file is exist, if file is exist pop up update information window, perform update, delete shared update file
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
If you are running SQL Server 2005 have a look at Service Broker - its similar to MQ.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I need to create a web service to call a business logic class without using reflection. Can someone send me a sample
Thanks
|
|
|
|
|
heres a sample for you
public answerToQuestion TryToGetHelpFromCP(string question)
{
if(you.isLazy)
{
return new answerToQuestion("Flames Like This");
}
else
{
return CPiansConsiderQuestion(question);
}
}
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Can the administrator block such kind of provocative replies please. Also the person who send it should be removed.
This suppose to be a serious site
|
|
|
|
|
Gktony wrote: This suppose to be a serious site
Then ask a serious question AFTER reading the guidelines [^]at the very top of the forum paying particular attention to point 2.
Dave
|
|
|
|
|
Gktony wrote: Can the administrator block such kind of provocative replies please.
And how would you suggest they do that? Delete the message maybe but block it all together?
Gktony wrote: Also the person who send it should be removed.
I have a name you know. and in my opinion YOU should be removed
Gktony wrote: This suppose to be a serious site
yes, its supposed to be... BUT you coming here demanding code for a very vague "question" isnt very serious! This is a FORUM where we discuss specific programming problems you might have come across. This is NOT some place where you can demand we do your work for you.
Gktony wrote: I need to create a web service to call a business logic class without using reflection. Can someone send me a sample
well congratulations, i need to write an application to calculate time and attendance data, but you dont see me asking people to do it for me. what have you tried? where are you having problems? have you heard of google? as my "joke code" implied if youre not willing to help yourself no one here will even bother to even try.
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
If you are not happy with the question there is a better way of putting it. Either ask to be more specific or ignore it (don’t bother as you mention). All of your writing is absolutely unnecessary and doesn’t help anyone.
The reason I didn’t provide any code is because I know is only a line or two of code and yes I have search the web for it prior to my posting.
I have got it working using reflection and I want to make it work without reflection.
The code I used is,
[WebMethod]
public object ExecuteMethod( object ClassName, string method, params object[] arguments)
{
object returnedObject = ClassName.Method();
return returnedObject;
}
The problem I have is how to invoke the class name and method parameter in the web service
|
|
|
|