|
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 ?
|
|
|
|
|
The first step is for you to work out what the real requirements are. So far, you have a vague wish list. That isn't enough for you to work from. Go back to the business and try to gather a more detailed breakdown.
|
|
|
|
|
i create a large db and management system .
i will study this part
???
plz help me plz...
|
|
|
|
|
Without requirements, how do you know what you are delivering? You need to sort that before you even think about writing a single line of code.
|
|
|
|
|
behrouz shamlo wrote: how i to create a project of personnel input time and output time "File", "New Project". It's called a "timesheet", and it's one of the most implemented tools. There's even a starter-kit[^] that implements all functionality.
behrouz shamlo wrote: with connect to a fingerprint ? This is the reason why developers take specs, not managers. Does scanning the finger mean I'm starting work, or that I'm done working? And what if I'm in an accident? Is there a way to set my status to "absent" without the need for my finger? Would you allow a second interface, for when the scanner-device breaks, or would the client have to wait until there's a new fingerprintscanner delivered?
Without such an analysis, all that it is, is a "vague idea".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
my friends
plz insert a sample
tanks
|
|
|
|
|
I did, it was the link to the starter-kit. The rest still needs to be built. By you
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
i did not see your code....?
|
|
|
|
|
Follow the link in his post.
|
|
|
|
|
It's not "my" code, it's an example that Microsoft provides. Download the starter-kit and install it
|
|
|
|
|
visual studio 2010
I developed an asp.net application in which i used crystal report (for visual studio 2010). I have a big problem that is when i run my application on local server, it works fine but when i deploy it on remote server, crystal report is not displaying. can any one help me.
|
|
|
|
|
Hello everybody,
I do not what is happened, but I don't know how to do it.
I have a TreeView in the MainWindow and I use another Thread to fill it.
I use Dispacher.BeginInvoke command and the problem is that I obtain the exeption 'The calling thread cannot access this object because a different thread owns it.'
May somebody help me?
The code in the MainWindow Class --------------------------
Here, I call the Thread:
private List<string> gPS = new List<string>();
private List<PSItem> gPSItemsList = new List<PSItem>();
private void bt_PartsViewer_Click(object sender, RoutedEventArgs e)
{
Microsoft.Win32.OpenFileDialog gOpenFileWindow = new Microsoft.Win32.OpenFileDialog();
gOpenFileWindow.DefaultExt = ".txt";
gOpenFileWindow.Filter = "Product Structure|*.txt";
Nullable<bool> gResult = gOpenFileWindow.ShowDialog();
if (gResult == true)
{
string gFilePath = gOpenFileWindow.FileName;
gPS = System.IO.File.ReadAllLines(gFilePath).Cast<string>().ToList();
pb_ProcessProgess.Value = 0;
Thread gTreeThread = new Thread(new ThreadStart(FillTreeView));
gTreeThread.SetApartmentState(ApartmentState.STA);
gTreeThread.Start();
}
}
The thread call to the method 'FillTreeView'. This method fills a list with TreeViewItems. The list is defined by the variable 'gPSItemsList' from a class (PSItem) inherited from TreeViewItem object.
I want to fill the TreeView with the index 0 of 'gPSItemsList':
private void FillTreeView()
{
. . .
LocateTreeItems();
tv_StructExplorer.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, (Action)(() =>
{
tv_StructExplorer.Items.Clear();
tv_StructExplorer.Items.Add(gPSItemsList[0]); (Here I obtain the exeption about different thread)
}));
}
The Exeption is not due to 'tv_StructExplorer' object but is for 'gPSItemsList[0]'.
I need help. Thank you.
|
|
|
|
|
You cannot touch a control from a different thread than the control was created on. The method to add these items to the control MUST be executed on the UI (startup) thread.
Don't get any funny ideas about creating the TreeView on the background thread. You also cannot touch the Controls collection of a form from anything other that the thread that created the form.
Basically, any and all access to anything you see on screen (forms, controls, insects that landed on your monitor) can only be touched by code running on the UI thread.
Personally, I'd drop explicitly creating Threads and move this code that reads, processes the file and returns a list of items to add to the tree to a Task that returns a List instead. You can then Await the Task and add the items immediately after the Await returns.
|
|
|
|
|
Thank you Dave,
I have understood your answer.
I will try to look for other way.
Sorry to reply you late.
Regards.
Boltian
|
|
|
|