|
Thank you.
My whole form contains datagrid.
I do'nt want to add a button to form.
Thi sis like Excel spredsheet which does not contain buttons inside.
Any idea how to close datagrid with Esc key, without button ?
Andrus
|
|
|
|
|
I'm creating a MONO/.NET 1.1 C# WinForms application.
I need run custom hook code before saving invoices and in other places.
I need to run and change C# scripts in customer site without VCS Express 2005 installed.
Any idea how to implement this ?
Andrus
|
|
|
|
|
Hello everyone,
I'd like to ask if I can colorize specific lines (let's say the firs and the last line) in a RichTextBox control. I'd appreciate any help..
Best regards, and thanks!
.:: Something is Wrong ::.
|
|
|
|
|
Hello!
I have a panel with 2 buttons and it has to be possible for user, resize the buttons.
Do you have some tipps for me?
|
|
|
|
|
YEs, capture mouse movement when the button is down ( or whatever mechanism you want to use ) and set the Size property on the button accordingly.
Christian Graus - C++ MVP
|
|
|
|
|
Here's one rather simple and sloppy method for resizing a single button:
using System;
using System.ComponentModel;
using System.Windows.Forms;
namespace CP_CSharp_SizeButton
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left && this.Cursor!=Cursors.Default)
{
if (this.Cursor==Cursors.SizeWE)
button1.Width = e.X;
else
button1.Height = e.Y;
}
else
{
if (e.X > button1.Width-5 && e.X < button1.Width+5)
this.Cursor=Cursors.SizeWE;
else if (e.Y > button1.Height-5 && e.Y < button1.Height+5)
this.Cursor=Cursors.SizeNS;
else
this.Cursor = Cursors.Default;
}
}
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
this.Cursor = Cursors.Default;
}
}
}
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Thank you, I get your solution
Hello
|
|
|
|
|
hello every one, well I'm making a form in a windows aplication in C#.net 2.0. What I'm trying to do is to present the user with one option on each tab but I want them to go in a sequence. So all I wanna do is that the user should select the value form the first form then press a button to go to the next tab and so on untill he reaches the last tab u knwo. So how can I restrict the user from accessing a tab and to navigate to the next by presin a button or something u know.
thanks in advance.
Rocky
|
|
|
|
|
Rocky71 wrote: how can I restrict the user from accessing a tab
You can cancel the navigation by handling the TabControl 's Selecting event. But imho, you should use a wizard metaphor instead. A tab control is generally intended to allow the user to access any tab at any time. Detracting from this paradigm could cause user confusion.
/ravi
|
|
|
|
|
you know I was also thinking abt using wizards. but I 've a very stupid question commin here how do me make the in windows forms?? actipro wizard is thaat the answer?/ plz tell me abt it
|
|
|
|
|
i m calling a web method through ma client which returns a xmlnodelist but it is not working and returns the following error
To be XML serializable, types which inherit from IEnumerable must have an implementation of Add(System.Object) at all levels of their inheritance hierarchy. System.Xml.XmlNodeList does not implement Add(System.Object).
i cant understand where does this error leads to???
Warm Regards
Bia
|
|
|
|
|
First,
In what point this exception has been thrown?
Second,
from what is looks like in the error itself and in the information from the metadata and http://msdn2.microsoft.com/en-us/library/system.xml.xmlnodelist_members.aspx[^] it looks like XmlNodeList (or the classes it inherit from) doesn't implement the proper interfaces so it could be serialized... and you can't transfer it from your web service to the client...
so it looks like this error leads to finding another way transfering the data
good luck,
Tal Kain.
|
|
|
|
|
Hi,
Can Anyone let me know How I can validate the columns of a datgrid?
Thank you,
Regards,
Deepa
|
|
|
|
|
Validate them? Against what? What kind of validation do you require?
|
|
|
|
|
Hi,
Columns should only numeric characters and restricting special characters.How can I validate my datagrid columns?
Thank you,
Regards,
Deepa!
|
|
|
|
|
Is there any way to do something like this:
StartScreen.mCP.talkTime("#FM", "01", {newINIs, items});
Which is to say passing in an array without actually making the array, or do I need to do it like this:
object[] o = new object[] {newINIs, items};
StartScreen.mCP.talkTime("#FM", "01", o);
Something like the first way would be better more useful, but Visual Studio doesn't like it, so...
- Munty
|
|
|
|
|
Hi.
Try something like this
<br />
StartScreen.mCP.talkTime("#FM", "01", new object[]{newINIs, items});<br />
I don't know if it'll work, but try it. One never know.
ASBESTOS-Greetings
|
|
|
|
|
That worked perfectly.
Thanks
- Munty
|
|
|
|
|
No problem
ASBESTOS-greeting
LiquidE
|
|
|
|
|
You are still creating the array, though...
---
b { font-weight: normal; }
|
|
|
|
|
Yeah, but I'm now creating a temporary array inside the method call, which is how I wanted it.
Plus if I call half a dozen methods, I dont have to remember what names I've used for the arrays previously. (The contents of the array assumed to be different for every call because it's something the user can modify whenever he wants to)
- Munty
|
|
|
|
|
Just wanted to be clear on whether it was the actual creating of an array that was the problem or not.
---
b { font-weight: normal; }
|
|
|
|
|
The easiest way to do it is to create a new collections class. The collection class can be of whatever you need. Now your parameter is the class object. You populate it with what you need in the parent method, pass in the populated class to the called method.
|
|
|
|
|
Nah, because I'd still need to adjust the collections class before I used the method, because the contents of the array changes every time the method is used.
The array can be null; a string; a string and a boolean; an array, 2 booleans and a string; etc, and it's contents will be different every time it's called.
All in all, much easier to use the (new Object{}) code to pass stuff into the method.
- Munty
|
|
|
|
|
Good day.
I'm writing my first program for a company. The program will interact with Microsoft Word & Excell. It will do basic stuff such as Mail merges and inserting text at bookmarks.
A basic accounting system will be needed. Nothing fancy.
A register with customer information and contact details aswell as employee information will also be needed.
Now:
Which method should I use to store the data? Obviously I can use Access to do the database handling, but would it be recommended? If not, why not? and which other methods can I use to do my data handling?
If you recommend I use Access, will it be secure and are there any methods I can use to try keep someone from finding out the database structure and messing with the data inside the file itself?
I know it's alot of questions, but your help will be greatly appreciated.
Thanks alot
ASBESTOS-Greetings
LiquidE
|
|
|
|