|
have you tried this.Opacity = 0;
|
|
|
|
|
Unfortunatly this only works in win2k/xp/2k3
WM.
What about weapons of mass-construction?
|
|
|
|
|
Quite right you are. What about setting the size of the form to zero and the borderstyle to none then?
form.Size = new Size(0,0);
form.FormBorderStyle = FormBorderStyle.None;
|
|
|
|
|
I have XP ... there is where it doesn't work ...
Lazar Mihai
Highschool student
|
|
|
|
|
Override the form's OnLoad and set the forms Visible property to false in there.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Overriding doesn't work ... I 've tried it ... it was probably the first thing I tried ...
Lazar Mihai
Highschool student
|
|
|
|
|
U can use this code (with P/Invoke implemenstation):
.....<br />
using System.Runtime.InteropServices;<br />
.....<br />
public class Form1 : System.Windows.Forms.Form<br />
{<br />
....<br />
protected override void OnLoad(System.EventArgs e)<br />
{<br />
WIN32 win32 = new WIN32();<br />
win32.HideWindow(this.Handle);<br />
}<br />
...<br />
}<br />
<br />
<br />
public class WIN32<br />
{<br />
public WIN32()<br />
{<br />
}<br />
<br />
public void HideWindow(System.IntPtr handle)<br />
{<br />
ShowWindow(handle,WindowShowStyle.Hide);<br />
}<br />
<br />
[DllImport("user32.dll")]<br />
private static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow);<br />
<br />
private enum WindowShowStyle : uint<br />
{<br />
Hide = 0,<br />
ShowNormal = 1,<br />
ShowMinimized = 2,<br />
ShowMaximized = 3,<br />
Maximize = 3,<br />
ShowNormalNoActivate = 4,<br />
Show = 5,<br />
Minimize = 6,<br />
ShowMinNoActivate = 7,<br />
ShowNoActivate = 8,<br />
Restore = 9,<br />
ShowDefault = 10,<br />
ForceMinimized = 11<br />
}<br />
}
It will your main window...
|
|
|
|
|
Leave out "myform" when you call Application.Run.
ie: Application.Run();
-Chris
|
|
|
|
|
how can i display the datagrid row items in to textboxes when double clicked on that row. i'm using Visual studio.net 2003, and working on CSharp (C#). can anyone help me with code or an application???
thanks, horussssssssssssssssssssss
hello
|
|
|
|
|
First you need to implement an eventhandler for the mouseup event of the datagrid. The following code can be inserted there:
BindingManagerBase bmb = dataGrid.BindingContext[dataGrid.DataSource,dataGrid.DataMember];
DataGrid.HitTestInfo hti = dataGrid.HitTest(e.X,e.Y);
if(e.Button == MouseButtons.Left) {
if(hti.Type == DataGrid.HitTestType.Cell || hti.Type == DataGrid.HitTestType.RowHeader) {
bmb.Position = hti.Row;
dataView1.RowFilter = string.Format("Id = '{0}'",(bmb.Current as DataRowView)["Id"]);
}
}
You can then bind the textboxes to a dataview that has the same table as the datagrid.
WM.
What about weapons of mass-construction?
|
|
|
|
|
directly form datagrid
textBox.Text= dataGrid1[rowNum, collNum].ToString();
or directly from dataset
textBox.Text = ds.Tables["table"].Rows[rowNum]["coll_name"].ToString();
add it to double event on datagrid
|
|
|
|
|
thanks, now i'm on my work, but as soon as i can i'll try your tips.
|
|
|
|
|
how do fill single dimension array with dataset
or how do i fill an array directly from odbcDataAdapter
|
|
|
|
|
Can anyone help me in retriving the value from a hash table..in c#
Thanls
Nithya..
|
|
|
|
|
Use the indexing operator. Like this
void SomeFunc(Hashtable table)
{
object val = table[key];
}
<pre>
Regards
Senthil
_____________________________
<font face="Verdana" size="1"><a href="http://blogs.wdevs.com/senthilkumar">My Blog</a> | <a href="http://www.codeproject.com/script/articles/list_articles.asp?userid=492196">My Articles</a> | <a href="http://geocities.com/win_macro">WinMacro</a></font>
|
|
|
|
|
hi,
I would like to find an example of drawing curves. I have to make a data curves diagram like window's RGB Color curves. I had tried to use the drawCurves function, however, it seems cannot draw a smooth curves .
so does anyone has this experience? or do you know where can I find a similar example?
Thanks.
|
|
|
|
|
do I need some equations if I want to draw a R,G,B color curves.
I hope to pick up a color by adjusting the curves.
|
|
|
|
|
How can i release memory allocated by new operator by myself?is there any keyword available to do it?
Thanks
Nithya..
|
|
|
|
|
No, there isn't.
Memory is released after it's no longer needed, i.e. every reference to an object instance has been removed, nothing you can do about it.
Btw. why would you want to handle memory allocation yourself?
mav
|
|
|
|
|
Thanks for the reply.i am allocating memory inside a loop so i tried to release it when i dont want..
Thanks
Nithya..
|
|
|
|
|
You don't need to do anything, when the object has no live references to it, the GC (Garbage Collector) will automatically clean it up.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Let's see the code. Then the replies can be more to the point.
On Disposable objects you can use the [b]using[/b] keyword.
Are you trying to solve a real problem (performance, memory?), or is this just latent anal-retentiveness of a recovering c/c++ programmer?
Matt Gerrans
|
|
|
|
|
In Outlook it's able to create a lot of calendars... So, if my program writes a date in de calendar, it writes the date in the main calendar. How can I write my date in one of the other calendars?
Thanks for your help!
|
|
|
|
|
Hi!
Can you explain to me how I can handle events in Outlook? I have no idea...
I want to catch calendar-events. So, if somebody deletes or writes dates, I want to know which date the user has deleted or written.
I couldn't find any examples...
Thanks for your help!
|
|
|
|
|
Did you try searching for "Outlook Automation"? Maybe you'd get a few pointers there.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|