|
we are actually not using InstallShield - just using the .msi and setup.exe. Maybe I will look for the script you referred to - thanks for the input.
|
|
|
|
|
Hi all,
I've created a UserControl having a picturebox control on it. Then I added my UserControl to the Windows Form and also added the _Click event. My problem is; when I click the UserControl the event is fired just fine but when I click the picturebox on the UserControl - nothing happens. What would you suggest?
Thanks
Radgar
|
|
|
|
|
Add an event handler to your UserControl that catches the Click event of the contained PictureBox and raises the Click event of your UserControl.
YourUserControl : UserControl
{
private PictureBox pictureBox1;
...
this.pictureBox1.Click += new EventHandler(pictureBox1_Click);
...
private void pictureBox1_Click(object sender, EventArgs e)
{
this.OnClick(e);
}
}
www.troschuetz.de
|
|
|
|
|
Thank you Stefan but I did it yesterday by adding a public delegate & event handler. Your way is much easier. Thanx!
Radgar
"Imagination is more important than knowledge." - Albert Einstein
|
|
|
|
|
I was following this tutorial
http://www.codeproject.com/dotnet/mgrmsmq.asp
but I don't seem to have System.Messaging. Can someone explain what's going on? I thought that was standard?
Thanks a lot,
Jim
|
|
|
|
|
It will be in a dll you need to import. Right click on 'references' for your project, click on Add Reference, and choose System.MEssaging from the .NET list.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Thanks you SO much, I am a COMPLETE idiot -_-
Jim
|
|
|
|
|
Hey!
I am using a Rich Textbox with wordwrap and with out Scroolbars.
I need to know ho big the Text box must be to fit all the text with out out using scroolbars.
How do i do this? i have lookt at lines but this just shows 1 lien?
BestRegards
SnowJim
|
|
|
|
|
How would I go about hiding files? I don't want to mark them as hidden, I want to actually hide the files like the program 'Folder Lock' does.
|
|
|
|
|
You'd have to ask Folder Lock how they do it. None of the Windows files sytems supports the kind of "hiding" that Folder Lock does.
My first guess on how they do it would be a self modifing .EXE and/or file system extension. The files are actually encrypted and stored into a file, kind of like a .ZIP or a self extracting .ZIP file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I was reading an article how some keyloggers can hide themselves in this manner.
http://oxygine.com/Images/show.png
This picture shows the actual Folder Lock program file as well as where the hidden file is located. Im not quite sure what the ||||| means in the file path. The source materials.gcf that is in the hidden files is about 500mb.
Any idea, as I doubt Folder Lock will tell me how to do it?
|
|
|
|
|
Hey
I am using a TreeView to show some objects.
When a object is updated from the network connection the tree is updated(re build)
If the user hade open/expand some nodes it will be closed after the rebuild is runned.
Is there any way to save what nodes that is expand and what item that is selected?
Best Regards
Snowjim
|
|
|
|
|
Snowjim wrote:
Is there any way to save what nodes that is expand
Use the Expanded property of TreeNode .
Snowjim wrote:
and what item that is selected?
Use TreeView.SelectedNode or TreeNode.IsSelected .
Charlie
if(!curlies){ return; }
|
|
|
|
|
The easiest way (but not most efficient) is to recursively go through the tree and check (like Charlie mentioned) the Expanded property of each node. For each node you find where this property is true add the FullPath of the node to an ArrayList. After youve updated the tree, again search recursively through the tree and expand each node where its FullPath is contained in the ArrayList.
Same goes for the selected item. Remember the FullPath value of the currently selected item and reset it after your update.
|
|
|
|
|
I have a list box control on a win form. Whenever another control on the same form (eg another list box) chnages selection my first list box maintains it's selected item but moves it's scroll position so that the selected item appears at the bottom of the visible list. Does anyone know how I can stop this from happening?
|
|
|
|
|
if I have two form, form1 has a progress bar and form2 has a method Cal(). I want to call method Cal() for activate progress bar in form1. Please show me a simple code i'm a newbie in C#. Thank you
|
|
|
|
|
where can i get GPRS emulator for mobile devices???? sum1 plz help me ???
|
|
|
|
|
|
Hi I am reposting the following message in case anyone can help,
I am creating a generic data access module for an application and I
have come across the following problem:
A form calls the function that loads data from a table to a grid. Then
the code below is called in order to effect any changes in the dataset.
The problem appears with a table that has 43 columns. When in the
selectCommand I pass a select statement containing up to 32 columns it
works without problems. When I increase the number of columns it gives
a "Concurrency violation: the UpdateCommand affected 0 records."
exception. Is this some because of some limitation or am I making an
error in the code?
The table contains 4555 records
public void SaveDataFromGrid(DataSet dsName, string dtName, string
selectCommand)
{
//DGM 20040109
//This code works only for single table updates.
//Create new Connection
OdbcConnection dbConnection = new OdbcConnection(strConnectionString);
//Set the sql command that will fill the dataset
OdbcCommand sqlCommand = new OdbcCommand(selectCommand, dbConnection);
sqlCommand.CommandTimeout = 30;
//Set the sql command that will update the dataset
//Set the data adapter
OdbcDataAdapter dbDataAdapter = new OdbcDataAdapter();
OdbcCommandBuilder cb = new OdbcCommandBuilder(dbDataAdapter);
dbDataAdapter.SelectCommand = sqlCommand;
//Open the connection
dbConnection.Open();
//Fill the dataset with the data
dbDataAdapter.Update(dsName, dtName);
//Close the database connection
dbConnection.Close();
//return true;
}
Thanks in advance for the help
|
|
|
|
|
Hi,I have a UserControl that contains a Panel in it.
I add the UserControl to a Form.
I want (at design time) to be able to add, remove, move ,etc, controls on the Panel contained in my UserControl in the same way i would do this if the Panel was placed directly on a Form.Any Ideas?
Thanks!
|
|
|
|
|
try to make a pblic property to the panel
like:::
pblic Panel MyPanel
{
get{return this.panel1;}
set{this.panel1 = value;}
}
ByMindOnlyYouCanDoIt
|
|
|
|
|
Hi all,
Does anyone how can I creat a mapfile for my c# project?
For c++ project it's very easy.
You can do it from Project Settings,
just need to set generation of mapfile in Link Tab.
How can I do the same for c#?
Thanks in advance,
Anna.
|
|
|
|
|
|
|
I have a problem i was hoping someone could help me.
I have a windows form and based on a menu selection i'll display a specific user control uc1 that has various information on it (like a calender with appts on it) when i press down on the mouse I want to present another user control uc2 (this is a custom drawn via gdi+) at a specific location. I set the uc2.Location as to where I want uc2 to appear. This is where my problem occurs. Wherever i press the mouse on uc1 it uc2 always appears at a location just above and left of the mouse based on the location where i press the mouse on uc1. also note when i press the mouse down uc2 initially briefy appears where i want it but than moves/appears just above and left of the mouse. I also dispose of uc2 when the mouseup event fires.
i also use the mousedown event to move uc2. this works fine (but with the location problem) and uc2 moves fine but starts from the location just above and left of the mouse not where i had set the position via uc2.Location.
note i also use uc2.visible=true and uc2.BringToFront()
Does anybody have any ideas?
As always - thanks in advance for your help
Bob d.
|
|
|
|