|
Dear All,
I need to open a popup on the click of another popup here popup does not refer to popup window. This is on urgent basis.
Regards
Bipin
|
|
|
|
|
Hi,
I've some issues using property grid features, more specifically removing properties from the propertyGrid's selected object.
I want to edit the properties of the class at runtime, and dynamically remove some of them depending on some criteria. The attribute [Browsable(false)] does
not do what I need since it does not allow me to dynamically select what to remove, and invoking Properties.Remove in the component.PreFilterProperties method
is more what I'm looking for.
Unfortunately, and contrary to all the msdn's articles I've read on the subject, what I'm doing is not working as expected.
Here is a snippet to illustrate my point :
--------------------------------
entity = new Entity();<br />
entity.MyValue = "Hello world !";<br />
propertyGrid1.SelectedObject = entity;<br />
<br />
[Designer(typeof(Entity.EntityDesigner))]<br />
public class Entity : Component<br />
{<br />
public Entity()<br />
{<br />
}<br />
<br />
private string myValue;<br />
public string MyValue<br />
{<br />
set { myValue = value; }<br />
get { return myValue; }<br />
}<br />
<br />
public class EntityDesigner : Component<br />
{<br />
public EntityDesigner()<br />
{<br />
}<br />
<br />
protected override void PreFilterProperties( IDictionary Properties )<br />
{<br />
base.PreFilterProperties( Properties );<br />
Properties.Remove("MyValue");<br />
}<br />
}<br />
}
--------------------------------
The 'entity' class is never instantiated, and I suspect this is because it will only be done at design-time and not runtime,
could you confirm this ? Or am I missing something else ?
Thanks for the help,
Julien
|
|
|
|
|
|
Oups sorry about that, propertyGrid1 is a System.Windows.Forms.PropertyGrid control.
|
|
|
|
|
I loaded an image into a PictureBox control. But next time I want to unload it. How can I do that? Thanks!
I'm ...
a fan of Manchester United
a fan of Ozzy Osbourne
a King of Nothing
|
|
|
|
|
if(pictureBox1.Image != null)
{
pictureBox1.Image.Dispose();
pictureBox1.Image = null;
}
|
|
|
|
|
It works! Thanks again!
I'm ...
a fan of Manchester United
a fan of Ozzy Osbourne
a King of Nothing
|
|
|
|
|
Hello frends!
Im currently working on a simple web form when suddenly it hangs when i run it (1st time). I tried debuging but i dont think there's something wrong as it passes through Page Load. My Page Load doesnt do much xcept populate my 2 dropdownlists with texts and thats about it. Im scrapping through this one looking at web for designer, my html, even tried creating a new form with similar codes but it still hangs. Can someone pls help me...tnx so much!!!
Aim small, miss small...
|
|
|
|
|
Nevermind I found it...apparently in my html one of my dropdownlists was out of the <form> scope. Tanx!
Aim small, miss small...
|
|
|
|
|
Hi all
I working a Console Application.
I must hide Commmand prompt when start application.
How can i hide command prompt(dos prompt)?
Please,help me!!!
Thanks
|
|
|
|
|
You'll have to explain this better, because a Console Application can't run without the Console Window. What on earth do you mean by "hide the command prompt"?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Try executing prompt $s in the command line before running your application
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
I have created a ContextMenuHandler to show an additional menu item in the File Explorer when someone right clicks on a file (similar to winzips additions, or cut, or copy). This works fine. I actually followed an example from this site.
I added a registration function to additionally register the handler to work with Folders as well as files, so that when you right click a folder, it also shows the additional menu item. While this works under most conditions, the problem I am having is that the handler's IContextMenu.InvokeCommand() method is getting called when you click the Windows key + "e" (this brings up the file explorer normally). This is somehow preventing the file explorer from being launched at all when activated this way. I can still run the file explorer by navigating to it's shortcut, but it won't launch using the method I show above as long as I have my handler registered to add to the context menu for folders.
Any ideas?
|
|
|
|
|
Hi, anyone there, who knows a code snippet, in which a word doc document is converted to txt ?
I just want to extract the plain text of a doc and put it in a bytearray, without using external tools. I tested the "automating word" :
Link: http://www.dotnet247.com/247reference/msgs/26/131289.aspx[^]
But this doesn`t function with ASP ;(
I get a "access denied" Errormessage. I tried then to change the rights of the ASPNET User in dcomcnfg , but there is no "Microsoft Word Document" in DCOM ????
Anyone an idea ??
Thx
Hans.
|
|
|
|
|
i still have this " access denied" error ! I gave a lot of users full rights in the security tab:
Administrators
ASP.NET Machine Account
IWAM_Machinename
Interaktiv
IUSR_Machinename
everyone
System
But with no success...
I changed the identity from the user, who starts the application in my actual WinXP-useraccount...stilll the same error !!
No one there with an idea ?
|
|
|
|
|
Does BindingSource.Filter support wildcards? I have tried *,% and ? but none of them work.
|
|
|
|
|
Well always when you post a question you find the answer. I had to use LIKE instead of = when I used the wildcard (%).
|
|
|
|
|
Can you use framework 2.0 with visual studio 2003?
I just ran a bunch of service packs and installed framework 2.0.
Now, I open an C# web app and I get an error:
"Visual Studio .NET has detected that the specified web server is not running ASP.NET version 1.1."
"You will be unable to run ASP.NET web applications or services"
I did the aspnet_regiis.exe -i and thought that 2003 would be compatible. Am I wrong or is there something that I need to change in my solution or project file?
Thanks Much.
Will
|
|
|
|
|
Sled Dog wrote: Can you use framework 2.0 with visual studio 2003?
No.
Visual Studio 2002 -> .NET 1.0
Visual Studio 2003 -> .NET 1.1
Visual Studio 2005 -> .NET 2.0
ONLY! No exceptions. You can't force 2003 to work with .NET 2.0. Remember, the compilers are built into the .NET Framework, not Visual Studio.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the info.
William
|
|
|
|
|
Sled Dog wrote: Can you use framework 2.0 with visual studio 2003?
No. This question was asked so many times.
ASP.NET 2.0 installs a property sheet, so u can change the version of .net-framework.
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
What have I done wrong. I slapped up a quick dataset navigation control (first, back, next,last) to add to any form i create. somewhere along the line i have mangled something and now to update both the user control and the parent form (with it's databound controls) i need to add BOTH these two lines:
this.Parent.BindingContext[ControlDataSet, TableName].Position -= 1;
this.BindingContext[ControlDataSet, TableName].Position -= 1;
where : ControlDataSset is a DataSet on the parent form and TableName is a string containing the name of the table in the dataset I wish to move through
The VB version only requires the second line. It is incredible simple i am just stumped. here
thanks in advance
|
|
|
|
|
This is a little project i am working on nothing big.
Ok here goes, I have 2 forms my main form and my 2nd form my main form consists of a linkLabel once this linkLabel is selected it brings up my 2nd form (I could have used a button or menu but i chose linkLabel) I have the text for the 2nd form blank because what i want to do is once the 2nd form pops up i want it to contain the same text as the linkLabel. I know there is a way to do it just not sure how. i have been messing with this for the past couple days trying to get it to work.
|
|
|
|
|
In the link label click handler
void myLinkLabel_Click(object sender, EventArgs e)
{
Form2 myForm2 = new Form2();
myForm2.Text = myLinkLabel.Text;
myForm2.Show();
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Bought a House!
Judah Himango
|
|
|
|
|
i tryed that, that happens to be the first thing i tryed
this is my linkLabel code
private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
ItemsForm VIF = new ItemsForm();
VIF.ShowDialog();
}
and this is the error i get when i input ItemsForm.Text = linkLabel1.Text
An object reference is required for the nonstatic field, method, or property 'System.Windows.Forms.Control.Text
also the linkLabel name will be givin when the other parts of the program are activated such as the two listBoxes and radioButtons
Thanks.
|
|
|
|