|
This happens even if I tell Visual Studio not to open a solution on startup.
If I do have it open the most recent solution, that solution completely
loads first. If I tell it to open and show the Open Solution dialog, it
does that. If it is supposed to open the Start Page, that opens.
Regardless, the startup action finishes and then it locks up.
Now technically, it might not have locked up. All I know is that the
hourglass cursor never disappears. So I go to the taskbar, and force
Windows to close the program. I see no warning other than what Windows
provides. That leads me to believe Visual Studio is unaware of what is
happening. Next time I start Visual Studio, it runs fine -- but only for
that session.
Does anyone have any ideas?
--------------
Will Pittenger
|
|
|
|
|
|
Not yet. I am trying to avoid doing so. I customize the IDE heavily. I may do that. It might solve another problem where the stack overflows when I set the Location of a child I wrote from the control's parent. No, there is no code of mine overriding that property. There is no code subsribing to the control LocationChanged event.
--------------
Will Pittenger
|
|
|
|
|
Hi Will L Pittenger,
sometimes it helps to start the IDE from command line with the argument /setup.
This will reinitialize all plugins and the windows location, but no other stuff like keymapping.
Good Luck!
Niedzi
|
|
|
|
|
What was that supposed to do? It popped up a window briefly and then vanished. When I start normally, the problem is still there.
--------------
Will Pittenger
|
|
|
|
|
What it did was reset my toolbar layout without fixing anything. That toolbar layout took hours to do. I doubt that I will be able to redo it exactly. Thanks a lot.
--------------
Will Pittenger
|
|
|
|
|
Hi all, here is what I do and need;
- I create multiple controls at runtime: (myControl1, myControl2, myControl3...)
- I have only one event definition for all my controls: (myControl_Enter)
- Everything works fine but what I need is:
when the myControl_Enter event is fired, I want "only" that instance
of the control to change backcolor.
below is the part of the code needed:
<br />
private int counter = 0;<br />
<br />
public void AddNewMyControl()<br />
{<br />
counter += 1;<br />
myClass.MyControl myControl = new myClass.MyControl();<br />
myControl.Dock = System.Windows.Forms.DockStyle.Top;<br />
myControl.Location = new System.Drawing.Point(0, 0);<br />
myControl.Name = "myControl" + counter;<br />
myControl.Size = new System.Drawing.Size(536, 168);<br />
myControl.Enter += new System.EventHandler(myControl_Enter);<br />
this.Controls.Add(myControl);<br />
}<br />
<br />
private void myControl_Enter(object sender, System.EventArgs e)<br />
{<br />
<br />
}<br />
thank you in advance.
Radgar
"Imagination is more important than knowledge." - Albert Einstein
|
|
|
|
|
The sender object that is sent as one of the arguments of the event is a reference to the object throwing the event.
so you only have to cast the sender object and set the background color. Like this:
<br />
private void myControl_Enter(object sender, System.EventArgs e)<br />
{<br />
((myClass.MyControl)sender).BackColor = System.Drawing.Color.Green;<br />
<br />
}<br />
<br />
Gidon
|
|
|
|
|
Thank you Gidon. You saved me lots of time.
Radgar
"Imagination is more important than knowledge." - Albert Einstein
|
|
|
|
|
I want to know how can i obtain the login (username) of every account in the PC
|
|
|
|
|
WMI is the answer. Go through MSDN for the details.
Live Life King Size
Alomgir Miah
|
|
|
|
|
Thank you for your comment.
You made somewhere a mistake in your SQL string. Maybe you added "'" to an integer data type or vice versa.
|
|
|
|
|
what the idea of internet printing in C#
|
|
|
|
|
What do you mean? Could you rephrase that into a question?
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
Corresponding .cs file is not added when I add a Crytal Report file in Solution Explorer VS.Net2003. And therefore I am unable to use Strong-Typed report object in my C# code.
I have added the References
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Windows.Forms;
and I selected 'Show All Files' in Solution Explorer.
There is no error in compiling the project. So why the corresponding .cs file of the .rpt file is not added in my Solution Explorer?
Please help.
Arif.
|
|
|
|
|
Hello.
I have an RLE image file which i load to a buffer using a function and then decode to 8Bit BMP.
The function return Pointer to the buffer with the BMP .
1) can i use the buffer directly using the pointer - if so how?
2) the buffer i get has no BMP header i need to add one myself - is it possible (it only contains the data.
CRleImageClass myRLE = new CRleImageClass();<br />
myRLE.Load(@"E:\1.rle",2048);<br />
<br />
System.IntPtr mp ;<br />
mp = myRLE.Decode8Bit();<br />
3) Do i have to save the file as BMP before starting any manupulation on it?
i know it's a lot of questions - sorry
thanks
liq
Have a nice Day
|
|
|
|
|
Hi people
I have a class with a few fields an an arraylist of strings. i have set the datasource of a datagrid to this class (say A). Everything works fine, although what I want is that the arraylist of the class A could map to a combo box in the datagrid, so the user can select one value from the arraylist and that value gets set. can anyone please point me into the right direction. any help would be appreciated
|
|
|
|
|
I have a class that contains about 30 simple data types (int, byte, string, enum's, etc...) that has to be synchronized on a per-instance basis. I was wondering if it's better to make each individual member variable volatile or to lock the entire instance (via "lock") every time a field needs to be accessed? What kind of performance hit does a "volatile" variable take, if any?
I'm in a basement somewhere, it's dark...
|
|
|
|
|
IIRC, a volatile read/write creates a memory barrier, which forces all updates to the variable to happen before it is read or written into.
Locking the instance should be more of a performance hit, I guess, because one thread accessing any field will prevent any other thread from accessing any other field. The best thing is to profile and find it out, I guess.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Volatile will produce better performance, but it will behave differently. Adding a lock on the entire class will ensure that operations changing multiple fields will be consistent. Go with the lock unless you can show that you need a better performing option, and then you might want to look at a lockless operation, but coding those can be very tricky.
I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
|
|
|
|
|
Hello,
Is there a way of making a specific cell in a DataGrid as ReadOnly? I really need the help on this one.
Thank you
|
|
|
|
|
I already gave you an answer the first time you had this question. If this wasn't detailed enough than tell me what exactly you didn't understand.
|
|
|
|
|
Hello People,
I have a problem with the ImageList class in C#.
I add the image list in my form with the resource editor.
When I edit the collection and add a new image (bmp), the comiler compiles correctly but I have a crash in the execution when the code looks like this:
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
which is a line generated automatically.
Why this happens?
Thanks for the explanations
There is no spoon.
|
|
|
|
|
Hello,
I have a web service that returns a custom object, which has a property of type Guid . Somehow it seems that the Guid is not marshalled, because on the generated proxy (and in the XML) it never appears.
Any ideas? I thought about converting it to a string and putting it into another property, but I don't like that idea. Something else? some XML-related attribute?
Thanks!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Hello everyone.
I'm trying to build an application that searches for specified few bytes and prints out their location (offset) within binary file.
Now, I use "while" loop to go through every offset location to check where the bytes are, and on large files it's naturally slow.
Is there any built in method in .NET that can do that for me? I've been using FileStream class and it looks like it doesn't have such functionality.
Thanks everyone in advance!
|
|
|
|