|
A dataset doesn't implement INotifyPropertyChanged ; you might need to create a wrapper for it.
public partial class Form1 : Form, INotifyPropertyChanged
{
bool _test;
public bool Test
{
get { return _test; }
set
{
_test = value;
PropertyChangedEventHandler handler = this.PropertyChanged;
if (null != handler)
handler(this, new PropertyChangedEventArgs("Test"));
}
}
public Form1()
{
Test = true;
InitializeComponent();
checkBox1.DataBindings.Add(new Binding("Checked", this, "Test"));
}
private void button1_Click(object sender, EventArgs e)
{
Test = !Test;
}
public event PropertyChangedEventHandler PropertyChanged;
}
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi!
I need to remove Application launch and "Pin this application to taskbar" from the taskbar context menu for an application. Reason is that the application cannot start standalone, it must be feed with information from another application.
Does anyone know how?
Andreas Johansson
Senior software developer at Tieto Sweden
|
|
|
|
|
I'd recommend simply adding a messagebox if started without parameters; that way one is also warned when launching from another (unexpected) location.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Yes, i will do that as well.
But it would be nice to have both solutions
Andreas Johansson
Senior software developer at Tieto Sweden
|
|
|
|
|
Make sure the executable or shortcut name includes one of the restricted words:
- Documentation
- Help
- Install
- More Info
- Read me
- Read First
- Readme
- Remove
- Setup
- Support
- What's New
If it contains one of those words, you won't be able to pin it to the taskbar or start menu.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
This page: http://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
tells how to do it properly
Andreas Johansson
Senior software developer at Tieto Sweden
modified 22-Apr-13 13:25pm.
|
|
|
|
|
I am a teacher in C# for students at beginner level.
One of my student keep having trouble that C#-express is very slow and now when we right-click the form to show code-behind nothing is shown.
It's very possible that the student is doing something wrong.
Is the best option to reinstall C# express 2010?
|
|
|
|
|
Could be. Is everything else working fine? Or is it just a very slow PC?
Has he tried creating a new project from scratch and seeing what that is like? If it works fine, then it's something stupid he has done, so add bits from the "slow" project until it slows down and you should have an idea what causes it.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
Delete the file, add a new.
Could it have been that he simply deleted the code-behind-file?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Ok, thanks for the suggestions.
If he has deleted the codebehind but still have the other files, can you past it in from another projekt?
|
|
|
|
|
You're teaching this and you don't know the tooling? What's the backup policy? Is the source stored in a version control system?
|
|
|
|
|
Well, it´s not exactly University-level.
I do have a knowledge-gap there I admit but that wasn't my question.
The problem isn't so much that we doesn't have a backup. The problem is why it happens.
So do you have a solution to the problem or were just showing of?
|
|
|
|
|
larsp777 wrote: So do you have a solution to the problem or were just showing of?
I certainly do, and that's why I've asked if you know what your backup policy is. Failing that, select Project > Show All Files and see if the .cs file is still there. If it is, right click on it and select Include In Project. But seriously though - if you're teaching something, you should know how the tooling works. What do you say if a pupil asks you something a little bit off topic?
|
|
|
|
|
Thank you, I'll try that.
Well, you're right of coure and I like to think that I know the parts that we use mostly. However I do like to learn more.
If a student asks something of topic I says that I don't know but will find out.
Any tip is highly appreciated!
|
|
|
|
|
larsp777 wrote: If he has deleted the codebehind but still have the other files, can you past it in from another projekt?
Yes.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
The easiest way to view the code-behind page is to double-click on it... in the Solution Explorer. Teach your students that workflow - open files from the solution explorer.
Also, as a maintenance developer for the past many years, I would appreciate it if instructors could DISCOURAGE use of the designer. It's not that it produces bad code, it's that using the designer allows you to think you know how to code web pages when you don't. Teach your students to use the split view or code view - never the designer by itself. A skill that is severely lacking here in the real world is ability to hand-code HTML(5) and ability to read and hand-code ASP.Net templates (.aspx files). This skill might not get you the job, but it will keep you in the job. The only time I've ever seen an ASP.Net developer get fired is when we discovered he couldn't code without the designers, and that was the reason he was producing lots of code that he couldn't debug.
|
|
|
|
|
The student might have minimized and hidden the window somewhere.
It could be an issue with VS Express, but honestly that is unlikely.
|
|
|
|
|
hi all,
How to do a C# program of finding square root of a number using scilab functions
|
|
|
|
|
|
hi,
thanks for your reply. But i need the full cs code for that. How to connect to Scilab all that
|
|
|
|
|
|
It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to VWorker.com and ask there.
But be aware: you get what you pay for. Pay peanuts, get monkeys
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
Hi,
I look like to call mongoose API from C#
https://code.google.com/p/mongoose/[^].
Could anyone help me in creating an interop or pointing me to an existing one
Thanks in Advance
|
|
|
|
|
You could try using P/Invoke[^].
Use the best guess
|
|
|
|
|
hi friends
how i to create a project of personnel input time and output time with connect to a fingerprint ?
plz help me ?
|
|
|
|