|
Fantastic, sometimes the solution can be so simple!
modified 12-Sep-18 21:01pm.
|
|
|
|
|
leppie wrote: ALAQUNAIBI wrote:
what is the problem?
Your code is broken.
ALAQUNAIBI wrote:
how can i solve that's problem ?
Fix the code.
That's real experience speaking there. Damn, you and your years of coping with subtle problems like this.
|
|
|
|
|
1st read the error message, it will contain clues as to what you have done wrong.
2nd, Google for the error message, other people may have asked about it before so you might find clues.
3rd, when and only when you have done both of the above, if you are still stuck, post the full error message displayed, and the line of code that it says causes the error and we'll try to help.
Simon
|
|
|
|
|
I have a treeview control whose particular node needs to be dynamically selected during page load. Kindly let me know the way to do this.
|
|
|
|
|
TreeView treeView = new TreeView();
treeView.Nodes.Add("Monday");
treeView.Nodes.Add("Tuesday");
treeView.SelectedNode = treeView.Nodes[1];
Something like that anyway This would select the "Tuesday" node.
|
|
|
|
|
No this does not work. Thanks anyways.
The scenario is something like this.
1. On one page I have a tree view.
2. I select a node and add the node vale in a session variable.
3. On another page I have the treeview.
4. Here I fetch the session variable i.e. the selected node value.
Now I have to use this variable to automatically select the same node.
|
|
|
|
|
For some business reasons, i need my win form app run with fullscreen and not allow user to click any hot keys (such as windows button, alt+tab ,etc.) to go back to desktop or close the program.
is it possible to do this?
thank
^^
|
|
|
|
|
i read somewhere that we have three ways of showing forms/dialogs (i did not remember exact text)
1- normal form.Show()
2- modal form.ShowDialog()
3-system modal ?
i don't know how to have system modal but it said that it will work for your purpose
I Wish the Life Had CTRL-Z
Wizard's First Rule : People are fool,they believe what they want to believe or what they afraid to believe
www.subaitech.blogspot.com
|
|
|
|
|
No, it's not.
The user has, and always should have final control of their PC. There is no way to intercept the Ctrl+alt+del button press. Only the WinLogon process can receive notification of this key combo.
What is your reason for wanting to do this?
Simon
|
|
|
|
|
bug_aonz wrote: For some business reasons...
Yeah, right. Am I the only one who smells malware?
|
|
|
|
|
not neccecaraly...
i wanted to do the same thing last year trying to port the examination system we used at my collage to C#... if your writing an exam you dont want students googling the questions... so thats a perfectly legit reason to want this...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Don't have browsers on the computers.
Don't attach the computers to the Internet.
Detect the attempt and fail the student.
Mightn't they still be able to use a Web-enabled phone?
|
|
|
|
|
The propose is to prevent shop attendant not to use any thing except only my program which is developed for product ordering.
|
|
|
|
|
If that's the case, try to find information on how an information kiosk works (tourist info, trains, buses, those types). Most run Windows XP, but there is only one usable application.
|
|
|
|
|
They generally don't have QWERTY keyboards attached to them. You can probably intercept most key combinations using the UserActivityHook class here:
http://www.codeproject.com/KB/cs/globalhook.aspx[^]
The user will always be able to Ctrl -> Alt -> Delete and Ctrl -> Shift -> Esc it though. Why not just remove those buttons from their keyboard? Save a lot of hassle
|
|
|
|
|
Hello there.
When i run my MDIChild style window the second time, it occured an error:
OutOfMemoryExcpetion-Create handle failed.I don't known why, because some child windows can't occured this error.
Code like below:
dlg.MdiParent = this;
dlg.Show();
The first time i run this code it work correctly, but when i run it again that error occured.
Any help?
Thanks in advance!
If we dream, every thing is possible!
|
|
|
|
|
dealon,
Whats your program doing?, and what happens in the form you load?
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Thanks Gareth.
I want to show my one child window twice, and the first time it worked correctly, but then:
dlg.Show();
at this code, it occured error "OutOfMemoryExcpetion" -Create handle failed.
ps: my some other windows like it wouldn't show suck error. And this is a child window of one MDI window.I don't known why?
If we dream, every thing is possible!
|
|
|
|
|
dealon,
Yes, i understand what you're trying to do. But, what happens in code when you load the form?, is it connecting to a database?, doing some graphics?, Do you create any large collections? what...
You shouldn't get this error for just loading up a simple form, unless you have a billion forms open.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Gareth, I think i need to get a new project to reproduce such problem because my original project has as many as 40 windows.Some work ok while others not.I don't known which code cause such errors and I will find out the codes exactly.
Later, I will show you more information for the errors.
Gareth,Thank you very much.
Regards,
Dealon.
If we dream, every thing is possible!
|
|
|
|
|
|
Hi Everybody!!!
I m a intermediate in C#. I m designing an application for scanning images from any scanner using 'twain_32.dll' of the twain working group.
i found a code here on the code project which did most of the work on scanning the image and bringing it back to the application's picturebox.
But theres a problem in this code and that is this code does scan the images but during scanning it opens the interface of the attached scanner (ex. i have hp psc 1315 scanner) and the image is scanned via that interface and then the control hope to my application and the picture is copied to my application.
I want to create my own interface of scanning , i dont want my scanner's interface to open during scanning.
Hope u got my point.
Please suggest me how i can accomplish this.
|
|
|
|
|
|
|
i want to create an application that runs over Internet. TCPListener works fine in the LAN. what must i do extra to reach computer over Internet?
|
|
|
|