|
Get the number of days since 1899-12-31.
---
b { font-weight: normal; }
|
|
|
|
|
|
I would like to dynamically create 'n' number of identical tab pages (different names). Ideally, I would like to copy a 'master' tabpage of controls "myTabPage1" that I have created in designer for each new tabpage.
I was thinking something like create and my new tabs to tabControl1 then,
<code>foreach (Control TabPage in tabControl1)
{
foreach(Control.ControlCollection childControl in myTabPage1)
{
childControl.CopyTo(TabPage.Controls.).......
}
}</code>
but I cannot see my way through this problem as I am new to c#.
Please help.
You can please some of the people all of the time and all of the people some of the time but not all of the people all of the time.
|
|
|
|
|
try
TabPage.Controls.Add(childControl);
or something like that...
|
|
|
|
|
Hi, I'm looking for some good training material/coursework for C#. I've already hit the books some, but I'm looking for something I can use on a resume. Any suggestions would be welcome. BTW, I'm looking for something at an intermediate level, hopefully something good for a transition from C++/MFC to C#. Thanks!
|
|
|
|
|
You are looking for some projects to build?
How about a digital timetracker, like in the offices that everyone needs to pass their card to let know when they come in and when they come out, with users and projects to work on, description on what they were wokring on, reports on projects and workers, and every-one who is registered can log in and work from home... you can use wither mdb or XML to save data.... I've done something very small like this...
|
|
|
|
|
hi all,
am fiddling with wmi and this code, when i watch it in task manager, continues to grow in size. once integrate i will not be polling this frequently but i still would like to avaoid a continually growing application.
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Management;
namespace WMIPrinter
{
class Program
{
static void Main(string[] args)
{
Thread t = new Thread(new ThreadStart(Go));
t.Start();
}
private static void Go()
{
while (true)
{
Thread.Sleep(60000);
try
{
ManagementObjectSearcher searcher =
new ManagementObjectSearcher("root\\CIMV2",
"SELECT DriverVersion FROM Win32_PrinterConfiguration WHERE Name=\"HP Color LaserJet 4550 PCL\"");
foreach (ManagementObject queryObj in searcher.Get())
{
Console.WriteLine("DriverVersion: {0}", queryObj["DriverVersion"]);
}
searcher.Dispose();
}
catch (ManagementException e)
{
Console.WriteLine("### EXCEPTION: " + e.Message);
}
}
}
}
}
any ideas please?
kind regards,
g00fy
|
|
|
|
|
Hi,
I have a problem with including a *.dll within a user control for C#.
ToolBox - Right Mouseclick - Add Items
= > over the browse button I select the library within the controls I want to use
and I get following error message:
The object with ID 119 implements the IObjectReference interface for which all dependencies cannot be resolved. The most instances of IObjectReference that have a mutual dependency on each other.
Does anyone know what this message should tell me and how I can get my user control?
thx
Martin
|
|
|
|
|
How to disable horizontal scrollbar in Firefox for textbox with multiline property
|
|
|
|
|
|
|
I ment forum, not form... go there and ask there... this is C# (winforms or programing)
|
|
|
|
|
|
Hi,
Can any one tell me explicit convertion of char array to string?
i have string str and char strdata[25];
now i want to assign strdata value to the string called str.
I'm getting error " cannot implicitly convert type 'char[]' to 'string' "
Any idea?
|
|
|
|
|
there is no explicit\implicit way on converting char[] to string, and overriding will cause a-lot of problems. just use this function (you can change and it's better to change the static in it):
static private string CtoS(char[] charArr)
{
string tmp = "";
for (int i = 0; i < charArr.Length; i++)
tmp = tmp + charArr[i];
return tmp;
}
NaNg
|
|
|
|
|
Thanks....
But i dot want to concatenate bcoz the string has to be over written for every line read from the file.
|
|
|
|
|
string str = new string(strdata);
|
|
|
|
|
I have a textarea for which when the text exceeds the length of the textarea the text should come down to the next line without any horizontal scroll bars appearing. This is the default behaviour in IE but in Firefox whenever the text exceeds the length of the textarea, horizontal scrollbars appear (which i do not appear).Please advise.
-- modified at 8:04 Friday 12th May, 2006
|
|
|
|
|
hi all,
i added the following code into mouseclick event :
private void notifyIcon1_MouseClick(object sender, MouseEventArgs e)
{
if ((e.Button == MouseButtons.Left) || (e.Button == MouseButtons.Right))
notifyIcon1.ContextMenuStrip.Show();
}
>for right click there is no problem. everything works fine, i only see the contextmenustrip.
> but as for left click; apart from the contextmenustrip, the application's icon shown on 'Taskbar' and this is not something good
what should i do in order not to let the icon shown on TASKBAR for single left click on notifyicon ?
thanks in advance,
bye.
|
|
|
|
|
Mehmet Fatih Akbulut wrote: the application's icon shown on 'Taskbar' and this is not something good
what?
either you did too many events (mouseclick and another thing)
or either that we didn't get what you wrote...
did you ment "the application's icon IS shown on 'Taskbar'"?
give a link to a pic example
|
|
|
|
|
Message Closed
modified 27-Apr-15 11:04am.
|
|
|
|
|
as i seen... you use the show commmand (I think I told you how to do this, it looks like my code)
but you don't supply a point for it, so it just opens where it thinks to open... in the show method just write the mouse point:
this.notifyIcon1.ContextMenuStrip.Show(MousePosition);
this will be alot easyer than using notify icon contextmenustrip show cmd without pointing on the point...
|
|
|
|
|
I think he is not asking the ContextMenuStrip position, he is asking about when u right click, it creat another icon on the taskbar along with form icon..
is it correct?
|
|
|
|
|
oh... that I didn't get... emmm...
maybe you registered another method to that event to show the dialog? search any commands like that... search also "showontaskbar"...
|
|
|
|
|
Is it possible to for e.g. send a MFC CString as a System::Object^ parameter.
I’m between an unmanaged and an managed environment.
_____________________________
...and justice for all
APe
|
|
|
|