|
Use a timer with an interval of 1000 and increment a counter on each tick event, display the correct message depending on the counter value?
Dave
|
|
|
|
|
DaveyM69,
Cheers, i had thought about using a timer, but not the way you suggested.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Writing C# program to search through network for existing listening server's ip addresses and port numbers assuming that ip address and port number for the server was not known.
|
|
|
|
|
loke6258038,
And what help do you need? or do you want someone to give you a complete program?
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
system.net namespace will be helpful for you
you can use tcpclient and tcplistner class for your purpose
tips: also use socket,networkstream classes
|
|
|
|
|
General idea...
bool success;
try
{
success = true;
break;
}
catch
{
}
try
{
success = true;
break;
}
catch
{
}
if(success) break;
NB: This will take forever to run unless you're VERY lucky!
Dave
|
|
|
|
|
Search all the web for servers? of what kind? what is your goal?
|
|
|
|
|
I have a dataset with 4 different columns Day, Month, and Year-1 and Year-2 (e.g 22-July-2008 is present in Database as: 07, 22, 20, 08) as columns. I have added a new column in Dataset which concatenates all these 4 fields and show it as a date field. Now I just want to know that how can I display these newly added DataSet column also in my Crystal Report alongwith the other fields.
Thanking you in anticipation.
|
|
|
|
|
HI
Did you mean data table?
Can we See the code you used to do that?
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
i am working on C# form and Have axPivotTable Control.
for Databinding i am Using This Code
SqlConnection cn=new SqlConnection("database=durdu;user id=sa;pwd=");
SqlDataAdapter cmd=new SqlDataAdapter ("select * from marksheet",cn);
DataTable dt=new DataTable();
cmd.Fill(dt);
axPivotTable1.DataSource=(msdatasrc.DataSource)(object)dt;
this throws an error -specified cast is not valid.
i have done lots of googling and does not found single satisfied answer
please tell me how to bind data to a pivot table
its very urgent .
|
|
|
|
|
Is it an SQL error (being thrown by SqlException), or another exception?
|
|
|
|
|
no it is not an sql error it works fine with datagrid control
can you give some example how to bind data to a axPivot table in c#
|
|
|
|
|
Hi to all
I need ur help in C#
I've a homework and i wanna do a dll file which consist of a button and textBox.
The button is a browes button which allow u to open file dialog and choose a file..
the path of this file is saved in the textBox
I can do it easly in windows application ,but I wanna to do this .dll file
|
|
|
|
|
you can add reference to that dll in your project and then call it in your form
To add reference rightclick in toolbox
select add remove items click on browse button and select your dll
|
|
|
|
|
In the project's properties you can change the output type to "class library". (Assuming Visual Studio)
|
|
|
|
|
Guys I can not find a list of all the available interfaces in C#. I have done some googling and have found no shortage of tutorials on this feature. Now I would like a big list, other than IDisposable. I do not see anything in my Visual Studio Doco that lists them all out. How can I learn what they are?
thanks!
|
|
|
|
|
Well - that's a big topic. There is now so much in .NET that you might want to consider looking for the images[^].
|
|
|
|
|
but there is a thing in c# that is similar to interface in java except that it implements contracts.
The syntax is similar to a class. C# has many apparently, where can I find these listed?
|
|
|
|
|
asherhoo wrote: where can I find these listed?
This is why I sent you to the diagrams. The BCL diagrams tend to have them listed. Alternatively, you could write a program to load all of the assemblies and iterate over them and use reflection to identify the interfaces.
I can only assume that you want somebody to list the whole bloody lot out to you, as you obviously didn't go the diagrams I sent you to (hence the reason you univoted).
|
|
|
|
|
Sorry I did go there but google isnt exactly a vorpal sword.
Also your first reply was sort of vague and lead me to believe
perhaps you were referring to some more abstract use of the term
interface. Ultimately I was able to find something of value in
your link, but it required some searching.
so thanks
|
|
|
|
|
You can start here[^], but it's a moving target.
|
|
|
|
|
To reproduce, run code, open file menu, press up and down arrows to move out of menu.
Observed: Menu items are scrolled and blank items appears in end.
I need to change visibility of menu items at runtime.
How to disable such scrolling ?
Is this .NET 3.5 bug ?
Andrus.
using System.Windows.Forms;
static class Program
{
static void Main()
{
Application.Run(new Form1());
}
}
class Form1 : Form
{
public Form1()
{
var menuStrip1 = new MenuStrip();
var fileToolStripMenuItem = new ToolStripMenuItem();
menuStrip1.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem });
for (int i = 0; i < 10; i++)
{
var item = new ToolStripMenuItem("Item" + i.ToString());
fileToolStripMenuItem.DropDownItems.Add(item);
if (i < 5)
item.Visible = false;
}
fileToolStripMenuItem.Text = "File";
Controls.Add(menuStrip1);
MainMenuStrip = menuStrip1;
}
}
Andrus
|
|
|
|
|
with Vista, Studio 2008, targetting either 2.0 or 3.5, I observe one empty menu item line
appearing either at the top or the bottom of the list. Strange indeed.
BTW: disabling the hidden items does not help things.
|
|
|
|
|
Calling Dispose() makes them invisible properly.
However I need to make them visible later, so it is not possible to use Dispose().
Andrus
|
|
|
|
|
When I need varying menus, I do one of two things:
1.
temporarily remove the items I don't need
2.
throw away all items and create all new menu items when the menu gets selected
and I know something needs a change.
BTW: just hiding items (Visible=false) is wrong anyway, what will happen to the
shortcuts (CTRL/C and the like) that got assigned to you items? Removing is OK here.
|
|
|
|