|
Hi All,
I have converted the TypeLibrary to assembly using TypeLibConverter class's ConvertTypeLibToAssembly mehod.
But i want the GUID of the Type Library. How to get GUID from TypeLibrary ??
Thanks
TusharM
|
|
|
|
|
If .net isnt installed, my app wont run.
Can i get it to display a message saying that the user needs to install it?
(I'm doubtful that you can but, you never know...)
|
|
|
|
|
You might create a proxy application that does not use .NET.
This first checks if the .NET runtimes are installed and the decides whether to display an error or to start the .NET applocation.
/cadi
24 hours is not enough
|
|
|
|
|
No,this tool is provided by Microsoft Check it out[^],and it the .NET redistibutable with it and it will check if .net isn't present it will launch the .NET setup and then Your application immidete after the .NET setup is finished,if the .NEt is already installed it will launch your your application setup.
|
|
|
|
|
Like cadi said, you have to write a proxy application that checks for the existance of the .NET Framework, preferrably the correct version of it. Then it launches your application is the requirement is met.
The catch is, you can't use C#, J#, or any of the Managed languages to do this. It either has to be written in unmanaged C++ or some other language that doesn't need the .NET Framework to run.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i overrided ProcessCmdKey to capture enter in datagrid and its working. now how do i catpure this keypress on application level when enter is pressed. (or how do i send signal form overrided ProcessCmdKey in mydatagrid class to application...i want to run method on that event).
need help ..please
bye
|
|
|
|
|
client recieve bitmap data in thread from server.
when this data assigne to pictureBox from thread it is halt.
|
|
|
|
|
Very sparse information you give us. Please post some code the next time, or else helping you is subject to a lot of guessing
Could it be that you're assigning the data from the wrong thread? Try using Invoke().
Regards,
mav
|
|
|
|
|
What mav has indirectly said is that you can't modify a control from a thread other than the one that created it. Since your picturebox is on the UI thread, the one your form was created on, you can't modify it from any other thread. It MUST be modified, including setting properties, by some code running on the Form thread.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
My chat application uses UdpClient class. It is working fine on LAN as well as over the internet. I can not recieve messages in one senerio, when I send message over the internet and the receiving party is indirectly connected to the internet like using a shared internet connection over LAN. How do I reach those clients?
There is no server program and both parties are connected directly through IPs.
Regards
|
|
|
|
|
Your probably talking about the common situation where each machine is sitting behind a router/NAT/Firewall. In this case, your application doesn't do anything different. Each user must change the configuration of their NAT/Firewall to forward the port that your chat program is using to the machine's local IP address, usually on the 192.168.x.x network.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the reply. Ok you got it right.. my client has a local IP address 192.168.x.x. How do I change the configuration of NAT to forward the port??
Regards
|
|
|
|
|
That's up to each individual router. You really can't do that in your code without writing a version for each manufacturer and different models of routers.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
One thing more... Udp being connectionless, the client at the other end is just sending messages to the public IP. How does it know that the message has to be forwarded to the 192.168.0.34 ?? There has be to some information at the sending end that the message is for 192.168.0.34 (local) on 205.166.6.33 (public IP)
I am so confused
|
|
|
|
|
Your actually sending to a specific port at an IP address, not just to the IP address alone. The router has a table that tells it where to forward individual ports to local IP addresses.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave. The problem is now solved.. I configured the NAT settings..
|
|
|
|
|
I made a class, derived from Panel...
Then i tried to insert my OwnPanel on the form in other project : I Made next steps:
I added references, inserted in toolbox new tab, in new tab inserted my dll, where my components placed.
Then, when i try to insert my OwnPanel on form i see next error message:"An exception occured while tryeing to create an instance of OwnPanel. The exception was "Exception of type System.StackOverflowException was thrown." ".
I can't understand...
Please help...
|
|
|
|
|
It would appear that you have code executing in your control's New or Initialize methods, or somewhere else for that matter, that calls itself recursively until the Stack is exhausted. You'll have to set a breakpoint in your code's New method and step through it line-by-line to see where the problem is.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How can we run a .NET web service on Apache server on Windows.
The .NET service is in J# and so Mono XSP seems not supporting this.
Help me if anyone know something regarding this.
Thanks in advance.
-ashish
|
|
|
|
|
I have a windows form with several richtextboxes. I have created a button which fires the fontDialogue to change the style of the selected font.
When I select the text to be changed and then click the button to change the font style the richtextbox control loses focus. However the style still gets applied to the tex that was selected.
The problem I have is when changing the font style of text within another richtextbox the previously selected text from the first richtextbox changes also.
How can test to see which control has text selected?
Here is the button event trigger:
private void btnFontStyle_Click(object sender, System.EventArgs e)
{
if(this.fontDialog1.ShowDialog() == DialogResult.OK)
{
foreach(Control ctrl in this.pnlMain.Controls)
{
if(ctrl.GetType() == typeof(System.Windows.Forms.RichTextBox))
{
if (((System.Windows.Forms.RichTextBox)ctrl).Modified)
((System.Windows.Forms.RichTextBox)ctrl).SelectionFont = this.fontDialog1.Font;
}
}
}
}
|
|
|
|
|
It would appear that you have a design flaw in your application. Both RichTextBox's will maintain their own Selection's whether they have the focus or not. Since your code is interating through all the controls on the form and changing the RTB's that have been modified, your code is applying the new font to all the RTB's that have been modified, not the one that last had the focus!
If you insist on having multiple RTB's on the form that the user can edit and change the font on, you'll have to implement a flag on your form that holds a reference to the last RTB to have the focus. Handle the GotFocus event of all your RTB's and set this flag pointing to the one that got the focus. Then, in your button click event, you'll know which RTB had the focus last without having to iterate through all the controls on the form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the input. I was going to do that but thought it would be unecessary to have code for each control. Thought there might be a generic method I could use.
I appreciate your help
|
|
|
|
|
It is. You can have one handler function that handles the same event for mutiple controls. If you look in the "Windows Form Designer generated code" section, you'll see that things like the button click event get wired up with a statement like:
this.button1.Click += new System.EventHandler(this.button1_Click);
Well, if you have multiple buttons, you can point them all at one click handler if you need to handle all their clicks in the same code:
this.button1.Click += new System.EventHandler(this.button1_Click);
this.button2.Click += new System.EventHandler(this.button1_Click);
this.button3.Click += new System.EventHandler(this.button1_Click);
Notice, each one of these is an addition statement.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You have some, or you want some ? What port in particular ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|