|
Don't encourage them
only two letters away from being an asset
|
|
|
|
|
I know. Just trying to help.
Crazy ain't it that college students just don't know how to organise themselves in terms of time-management. Who in their right mind leaves it until the last minute to start a project that by now should have been completed.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Well, the fact is i have another project done for that exam. The thing is that i am not very sure of it's success (it's a simple idea, exploited to the maximum) and that's why i am trying something new that will sure beat the rivals and get the judges' attention. Anyway, thanks a lot! I appreciate u'r work and support.
|
|
|
|
|
drc_no1 wrote: i am trying something new that will sure beat the rivals and get the judges' attention.
Then don't do a chat program. Everyone has done that and there are so many examples out there it certainly won't highlight your thoughts and your work. If it were my class you'd get no higher than a C and that would be only if I didn't see your post on Code Project
only two letters away from being an asset
|
|
|
|
|
Hi,
Do you know any open-source/free implementation/library for circular layout algortihm similar to
this?
Any ideas/links to any information on the topic would be usefull.
Thanks.
Vitaliy Tsvayer
Tikle
|
|
|
|
|
|
Hey all,
I know that if I have, for example, the following expression:
if (x < 5 && y < 5)
In case x is NOT lower than 5, the next condition is not even evaluated.
But what about "or" statements?
If I have this:
if (x < 5 || y < 5)
In case x IS lower than 5, is the next condition evaluated?
Thanks in advance,
Shy.
|
|
|
|
|
Yes, it is shortcut evaluated as well.
Kevin
|
|
|
|
|
Hello
No! In the logical OR -aka ||- once a condition is met, no further evaluation is carried out.
To demonstrate this do the following code:
private void MyMethod()
{
int x = 3;
if (x < 5 || Hello() == 7)
return;
}
private int Hello()
{
MessageBox.Show("Hello");
return 5;
}
Now change the first condition to be false
private void MyMethod()
{
int x = 3;
if (x > 5 || Hello() == 7)
return;
}
private int Hello()
{
MessageBox.Show("Hello");
return 5;
}
You'll see that the messageBox doesn't appear in the first case.
Regards
|
|
|
|
|
hi
I want to know how we can use a barcode reader with C# and how we can get the values from it and store the in a database SQL Server 2000
thanks
Rocky
|
|
|
|
|
Hello
Barcode readers usually act like keyboards. Once you press the button while pointing to a barcode, the value of the barcode will be written in the active control, wether it's the notepad, textbox, combobox, etc...
So, you won't need any special programming for barcoding, unless you want to print barcode, not read it. For only reading barcode, just make a textbox to receive the value as it would be written by a keyboard.
Regards
|
|
|
|
|
OK so that means I can get the price of an item thru a barcode reader just as if I'm entering the value from a key board. Gr8!thats fantastic.
Many thanks Nader! that's makes me feel a lot comfortable
Rocky
|
|
|
|
|
Hi all,
i need to connect to a remote server using c#.net.
The connection should be also able to access a sub database in a database.(HP9000)
Rather it should work like the Qcterm.
Using sockets i can only pass the port and IP address .
How will i pass the database name to be connected to and fetch data????????????
It would be a great help if someone has an answer.....
Thanks.
|
|
|
|
|
Hello
This sounds much like Client/Server application. At the connecting machine there is a client app to connect to the server app in the "connected to" machine. Now the client app makes requests, and the server app fetches the data from the database -on the same machine-, and send it as a response to the client. It's possible using sockets.
What would be the problem with that?
Regards
|
|
|
|
|
Iam developing a windows application. I have a dataGridView which has
rows. Inside a row in dataGridView i kept two lines. For doing this
i first did
dataGridView1.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
and kept a new line character in the string
so if i have Mike and Bond to go in separate lines inside one row in dataGridView i would say "Mike"+"\n"+"Bond"
it worked and kept in separate lines but when i double click on the DataGridView row for some weird reason its again keeping back in single line
with some funny character between Mike and Bond
But when i leave the row it again puts back in two separate lines.
Did any body encountered this if yes how to solve this. I want them in Separate line always.
Thanks
Kal
|
|
|
|
|
Hello
To solve this issue either use "Mark\r\nBond" , or "Mark" + Environment.NewLine + "Bond"
Regards
|
|
|
|
|
I have created a custom datagridviewColumn control containig a TextBox+Button. I want to access the events of these controls directly, for example TextBox_textChanged, Button_MouseHover. following code has been written for this, but it is not working
DXDataGridViewTextBoxButtonColumn btn = new DXDataGridViewTextBoxButtonColumn();<br />
((DXTextBoxButtonCell)btn.CellTemplate).SSTextBoxButton.Button.Click += new EventHandler(SSTextBoxButton_Enter);<br />
((DXTextBoxButtonCell)btn.CellTemplate).SSTextBoxButton.Enter += new EventHandler(SSTextBoxButton_Enter);<br />
<br />
I have simply shown a messagebox in its event handler.
Can anyone help?
sorry for my bad English.
|
|
|
|
|
Hello
MyCustomControl control = new MyCustomControl();
control.MyButton.Click += new EventHandler(MyHandler);
What's wrong with simplicity??!!
Regards
|
|
|
|
|
I have to include the custom contorl in DataGridViewColumn, not the control it self.
sorry for my bad English.
|
|
|
|
|
Hello
Let me get this right!! Your problem is that you made a custom control - TextBox & a Button-, and you want to display it in the header cell?? Or is it in all cells of the column??
Regards
|
|
|
|
|
Hello,
Infact i want to display it in all cells. I have been succeded in doing that, Now i want to handle the event of that control. I have writeen the code in my first post. I dont know that y these events do not get triggered.
Let me make it simple, forget about custom control.
say i want to handle the events of button in DataGridViewButtonColumn, tell me how i will do that?
Thanx
sorry for my bad English.
|
|
|
|
|
Hello
Now I got your problem... Actually custom DatagridView columns are inherited -after some fathers- from DataGridViewElemnt . In that class you will find protected methods called RaiseCellClick() , RaiseCellContentClick() , among other methods to raise the events DatagridView.CellClick event, and DataGridView.CellContentClick . So the control that will handle the events is the DataGridView actually by the above events. If your custom control doesn't fire these events automatically -I don't know how you implemented them!-, so when you see suitable fire them yourself using the Raise methods.
Regards
|
|
|
|
|
Thanx Nader for your help
public override void InitializeEditingControl(int rowIndex, object<br />
initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)<br />
{<br />
ase.InitializeEditingControl(rowIndex, initialFormattedValue,<br />
dataGridViewCellStyle);<br />
DXTextBoxButtonColumnEditingControl ctl =<br />
DataGridView.EditingControl as DXTextBoxButtonColumnEditingControl;<br />
if(ctl !=null)<br />
if (this.Value != null)<br />
ctl.SSTextBox.Text = (string)this.Value;<br />
else<br />
ctl.SSTextBox.Text = string.Empty;<br />
}
i want this ctl to be accessed in the form where datagridcolumn will be used.
Thanx
sorry for my bad English.
|
|
|
|
|
Hello
I'm sorry my reply came very late, but your email notification arrived to my just now!!
You can't acess ctl this way because you've declared it as a local variable in a method. Declare it as a public member in your class, and access it like MyCustomColumn.ctl.Click for the click event as an example.
I don't know if my reply would help you or it came too late, but forgive me.
Regards
|
|
|
|
|
my problem is the following:
i have one combobox that sometimes i want show a item and sometimes not. this combox is binded to a dataset. is there on elegant way to do it without inserting and deleting a element is the dataset all the time depending the context? if don`t, how can i do that in a better way?
thanks
|
|
|
|