|
I'm not sure why this question bothered someone to where they jest with their own version of it.
I guess the bottom line is that my understanding of the properties is that they are stored in the Component Designer section of the code. If I open the window again to maintain it, the Component Designer code should've repopulated the property editor...but it doesn't. Whether it is my component or not, I wouldn't think it would matter.
I don't believe my question is that far out of line.
|
|
|
|
|
hi, i've got a class which draws ball. i trigger it in window form by form1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e), indicating the points by doing this:
obj.Position = new Point(e.X, e.Y);
now i wanna draw the very same image by triggering a button from another form onto form1. how should i indicate the Points?
Thanks..
Chris
|
|
|
|
|
However you like. You're not saying where you want the ball drawn. As you have no real candidate for the 'right' place to draw a ball, the three likely scenarios to me are:
1. Draw it always in the same place
2. Make a random point every time
3. Make a set of points, and iterate through them
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
i need to create a program to open and view 3d models so that they can be viewed in wire frame and shaded mode using either Direct X or OpenGL in C#
can you help me???
|
|
|
|
|
For using OpenGL with C# I recommend you to use the csGL library (is a port of the standard openGL library to C#, the best in my opinion). To use directX with C# you must use DirectX 9 which supports managed code (see MSDN).
I recommend OpenGL (csGL) and if you are a bigginer start from NeHe's homepage.
I hope you understand...
By the way... visit http://nehe.gamedev.net[^]
|
|
|
|
|
Hi All,
I have to write a mathematics formula with lots of sin and cos fuctions. It is very inconvenient since I have to write system.math.sin/cos .
I know I can use the using keyword as followed :
using system.math to shortcut a little bit my method to math.sin/cos but it still annoying.
I know I can't but why can't I write the following
using sin = system.math.sin;<br />
using cos = system.math.cos; ???
Does anyone has an idea for a clean solution ??
thanks in advanced,
Udi Raz
|
|
|
|
|
|
Hi everybody ,
i have a problem , when i download any demo application or source codes from C# articles , windows tells me that it can't open this file(though i have installed Visual studio.net ) and asks me too choose program with which it will open it.
Whats wrong??
Regards
m0n0
|
|
|
|
|
Are you using Visual .NET 2002 or 2003 ?
Udi Raz
|
|
|
|
|
|
hi all,
I hope any one can help me :
what is the classes in C# or API functions allow me to do uninstall my program from PC??
thanks.
|
|
|
|
|
There aren't any.
You'll find the command line to uninstall an application in the registry in a key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. The uninstall information is in a value named 'UninstallString'. Pass that to System.Diagnostics.Process.Start.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi,
How can I browse through local shell folders such as the desktop and 'my computer' inside a treeview?
I have tried using SpecialFolders, but It only points me to the file folder compatable to the special folder, which does not contain all I need (e.g. the Desktop doesn't contain My Computer, and My Computer doesn't exist).
I want something like in the windows explorer - like the FolderBrowserDialog but not in a new window but inside a treeview, so I can handle this information on my own.
Thanks!
|
|
|
|
|
|
Thank you!
|
|
|
|
|
i am new in c# and i am having a problem in getting primary key value from table to a int variable
example
select user_id from user where login="dcds" ;
i need to store the user_id of this guy in a variable so i can use it for future so any one can tell me how to do this in asp.net using c#
thanks
|
|
|
|
|
This is a long process .... I haven't worked with asp.net in a while but I am sure it is similar to this ...
make sure to specify using System.Data and using System.Data.SqlClient
SqlConnection connection = new SqlConnection(YOUR_SQL_CONNECTION_STRING);
/*
//EXAMPLE CONN STRING
workstation id=YOUR_MACHINE;packet size=4096;integrated security=SSPI;data source="YOUR_SQL_SERVER";persist security info=True;initial catalog=YOUR_DB
*/
connection.Open();
SqlCommand command = new SqlCommand("select user_id from user where login='dcds'");
command.Connection = connection;
SqlDataReader reader = command.ExecuteReader();
int Id = -1;
while(reader.HasRows)
{
reader.Read();
Object obj = reader["user_id"];
if(obj != null)
Id = Convert.ToInt32(obj);
}
Hope this helps ....
Shardool Karnik
Lead Software Engineer
Compass Technologies, Inc.
http://www.compasstec.com
|
|
|
|
|
|
You are absolutely right ... I started off thinking that he wanted an entire row ...
|
|
|
|
|
Hi,
I have this segment of code, which is supposed to show a form (lf), and then when the user is done with that, show a loading form (load) until the main form is done loading (mf). This is what I have for my main function right now.
static void Main()
{
LoginForm lf = new LoginForm();
LoadingMainForm load = new LoadingMainForm();
load.Show();
load.Hide();
lf.ShowDialog();
if (lf.loggedin == true)
{
load.Show();
MainForm mf = new MainForm(lf.sessid,lf.loginform_username.Text);
load.Hide();
Application.Run(mf);
}
else
{
Application.Exit();
}
}
My problem is that when the loading form shows up, it looks incomplete. The title and stuff are still there, but in the place where a label and a button are supposed to be, it just looks incomplete, like the loading form didn't have enough time to load.
Can anyone help?
Thanks,
Jimmy Sawczuk
www.McJournal.org
|
|
|
|
|
sniper506th wrote:
it just looks incomplete, like the loading form didn't have enough time to load.
Or receive a paint event - which is what I suspect is the real reason.
If a window is damaged (and in its initial state a window is damaged because it has yet to draw itself) a paint event gets put on the message queue. When the application is running the Application object processes the queue whenever the application is idle (and I guess that the modal dialogs process the message pump also which is why that would have worked). Since you have not yet told your application object to Run there is no processing of any events.
After showing the form, you could attempt a Refresh()[^] on it. The Refresh() method on the Form class should force an immediate repaint of the form area (including child controls, such as buttons and labels).
My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
|
You need to call Application.Run if you want to display a form.....it doesn't apply to a dialog. In your case you can pass the LoadingMainForm as a parameter to the Main form and display it in the constructor...hope this helps!
Shardool Karnik
Lead Software Engineer
Compass Technologies, Inc.
http://www.compasstec.com
|
|
|
|
|
There are several excellent examples here on how to define a collection property for your control and edit it with the collection editor in design time.
I've been trying to do the same with a dictionary collection (value and a key) but with no success. Any thoughts or ideas on how to edit a dictionary in design time without creating a completley costume designer?
is a good thing
|
|
|
|
|
Hello , can any one help me PLEASE , how can I convert a series of images to any video format can be played by WindowsMediaPlayer?
|
|
|
|