ramzg
Posts
-
How to add ToolBar in Slide -
Fusion Logs not working for WINWORD.exeHi, I have been developing add-ins for MS Word for quite some time now. I usually track bind failures using Fusion Logs and it used to work for all applications. But suddenly, the fusion logs fail to catch any load events for WINWORD.exe. I do not get any entries in my "C:\fusionlog\DEFAULT" folder for WINWORD.exe. It works fine for EXCEL.exe, POWERPNT.exe. I wanted to check fusion logs because my addins did not load in MS Word but the addins loaded in Excel and PowerPoint. Could anyone please help?
Thanks, Ram
-
C# Windows ServiceIn addition to the previous answers, I would like to suggest you on increasing the InternalBufferSize property of your file system watcher object to a bigger value. It might help when a large number of files are being created at the same time. The lesser the value of the InternalBufferSize, the more are the chances of file changes / creations going unnoticed by the watcher. Hope this helps.
ramzg
-
How can I make a self updating application - specifically a plug-in - via C#?Have you looked at this? : Application Auto Update in VB.NET[^]
Ram
-
How to Find character in ArrayListYou must try this out, if u really want to iterate :
ArrayList List = new ArrayList();
List.Add("AAA");
List.Add("AA");
List.Add("BB");
List.Add("BB");
foreach (string item in List)
{
if (item.Equals("AA"))
comboBox1.Items.Add(item);
}else, u can always go with this :
ArrayList List = new ArrayList();
List.Add("AAA");
List.Add("AA");
List.Add("BB");
List.Add("BB");
if (List.Contains("AA")
comboBox1.Items.Add("AA");Ram
-
How to spliting a stringHi Abhinav, Isn't
string.ToCharArray()
a better way than usingstring.SubString()
?Thanks, Ram
-
how to get textbox value from one class to anotherHi, You can use C# Properties for this... Here's what u want...
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}private void Form2\_Load(object sender, EventArgs e) { test \_test = new test(); string strId = \_test.StrID; } } public class test { string strID = string.Empty; //This is the property that you can refer from any other class in which u have instantiated this class (test) public string StrID { get { return strID; } set { strID = value; } } public string hello() { strID = this.txtTextBox1.Text; //here i am confused with my basic concept (can i assign value to strID from TextBox and if yes then how to get TextBox Value from form2 because I am making a new class here) return strID; } }
Thanks, Ram
-
Qt supports WCF?Hi Abhinav, Qt is a cross-platform app development framework.. Here is the wiki link for it... http://en.wikipedia.org/wiki/Qt_%28framework%29[^]
-
Qt supports WCF?I'm trying to use my Qt application to implement WCF. I would like to know if Qt supports WCF... Pls suggest..
-
c# questionAre you talking about adding an icon to the system tray? If so, then use a notification icon.. This might help you... http://www.developer.com/article.php/3336751[^] Thanks, Ram
-
when does the assembly.exe.config file is createdHi, You can right-click on your project (from the solution explorer) and choose Add-->New Item and select Application Configuration File from the dialog box that pops up and click OK. This will add an App.Config file to your project. This will be automatically renamed to Assembly.exe.config when you run your application. You can use the same XML data as given in the link to the post that d@nish had posted. Also, if you use
string test1 = System.Configuration.ConfigurationSettings.AppSettings["Key1"];
in your code, the VS compiler might throw a warning that this is deprecated. To get through that warning, Add reference to System.Configuration component in your project and use :string test1 = System.Configuration.ConfigurationManager.AppSettings["key1"];
Hope this helps. Thanks, Ram -
Google talk - like applicationNo... I havent used it yet... I shall try that also... Thanks, Ram
-
Google talk - like applicationHi OriginalGriff,
OriginalGriff wrote:
If you have a legitimate business reason to access Google Talk, then I suggest you contact your IT department
I had mentioned in my first post that I am able to connect using Google Talk and initiate a chat... The problem is while trying to replicate that behavior in my application... If firewall is blocking the response, I would like to have an idea on how Google Talk is able to establish a communication that my application could not... Pls suggest... Thanks, Ram
-
Google talk - like applicationHi stancrm, Just an update on this... I tried to use wirebook to get the stats and I found this out : The request is going out and reaching google... But the response is not coming back.. That seems to be the problem... Any idea? Thanks, Ram
-
Google talk - like applicationHi stancrm, Thanks for your reply... I shall try this out and get back to you... Thanks, Ram
-
Google talk - like applicationHi, I am trying to develop an application in C# to build a chat client that authenticates a user with his gmail account.. As I searched online for any open source software that might help and i found this very promising : Google Chat Desktop Application using Jabber.Net[^] If I execute this from a stand alone computer, it works fine without any problems... However, if I execute this from a corporate environment where there are NAT and firewall being configured, i get this error : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 74.125.155.125:5222 where 74.125.155.125 is that of google. I am not sure what this means... It doesn't appear like a time out.. It looks like something in the corporate environment is blocking this communication... However, I am able to use Google Talk application in the same environment... What could be the reason? And how could it be overcome? Could someone pls help? Thanks, Ram
-
Mapping a Web folder to a drive - C#Hi, I'm working on a WebDAV Application.. I can now connect to an ip, say, http://localhost:9005/MyWeb/ by creating a web folder. I could create and delete the web folder using C# code... I could traverse my web folder thoroughly... Is it possible for me to map this web folder to a new drive (using C#) so that I can access the contents from a drive in My Computer..? A software by name NetDrive is able to do it... Pls suggest on how I can achieve this... Thanks, ramzg
-
Returning stream from a WCF Service to the clientHi MREcoolio, Thanks for your reply... I was able to transfer a stream to my client without any trouble when the file size is less than 64kb ("maxReceivedMessageSize" property of the "binding" element)... I understand that this is the default size limit and that we can change it to suit our requirements... But my problem is that no matter how large a number I specify for the "maxReceivedMessageSize" property, I get a communication fault exception. The following are the server and client config files for your reference.. The configuration as I said, works perfectly fine for files whose sizes are lesser than 64kb.. Am I missing something here? Server Side App.config:
<system.serviceModel>
<bindings>
<netNamedPipeBinding>
<binding name="MyNetNamedPipeBinding" closeTimeout="01:01:00" openTimeout="01:01:00" receiveTimeout="00:10:00" sendTimeout="01:10:00" transactionFlow="false" transferMode="Streamed" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="10333" maxConnections="10" maxReceivedMessageSize="9223372036854775807">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport protectionLevel="EncryptAndSign" />
</security>
</binding>
</netNamedPipeBinding>
</bindings>
<services>
<service name="MyService" behaviorConfiguration="metadataSupport">
<host>
<baseAddresses>
<add baseAddress="net.pipe://localhost/MyService" />
</baseAddresses>
</host>
<endpoint address="" binding="netNamedPipeBinding" bindingName="MyNetNamedPipeBinding" contract="MyContract" />
<endpoint address="mex" binding="mexNamedPipeBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="metadataSupport">
<serviceMetadata />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors></system.serviceModel>
Client Side App.config:
<system.serviceModel>
<bindings> -
Datagridview in VistaYup, It was indeed my post... I'm yet to try it on vista... Will get back to you after I try it out... :)
-
Datagridview in VistaHi Saksida... Thanks for the reply.. Here are my replies to your queries... Did you try to set compability to XP? My application is compatible with XP... The problem occurs only when i run it on Vista.. And I dint set the compatibility explicitly... Are you using SQL commands? No, I'm not using any SQL commands. Are the columns created programaticly or in design? The columns were created at design time and values are added to them at runtime.. Thanks, ramzg