|
Hi,
I'm not sure if this is your problem, but I think you don't have defined baud rate, parity, data bits and stop bits for your comport.
OR
Try send your comport trough parameter to your child form.
I hope it helps,
Jure
|
|
|
|
|
Hi,
I am still having problems having an e-mail pop-up from an <a></a> tag. The subject contains an "&" and there cuts off certain text. I was told to use Server.UrlEncode which does work to a degree, but then it adds "+" to the spaces (which I don't want), like:
Enquiry from J&D+Ship+Services
It should actually be:
Enquiry from J&D Ship Services
Here is my code in the .aspx page:
<a href="mailto:<%= Globals.InfoEmail %>?Subject=Enquiry from <%= Server.UrlEncode(Globals.CompanyLongName) %>"><%= Globals.InfoEmail %></a>
I hope someone can help me.
Regards
ma se
|
|
|
|
|
Try %20 for spaces an %26 for &: J%26D%20Ship%20Services
demo link
____________________________________
There is no proof for this sentence.
|
|
|
|
|
Add replace function your code, before sending to the aspx page, that replace the "+" with "%26".
replace(varName, "+", "%26")
|
|
|
|
|
Hello friends,
I am developing an application, in which I need (the client... which is running the application)to login to a Windows 2003 server in the domain.
I write the following function...
internal bool DoLogin(string userDomain, string userName, string userPassword)
{
string domainpath = "LDAP://" + userDomain;
string username = userDomain + "\\" + userName;
DirectoryEntry entry = new DirectoryEntry(
("LDAP://" + userDomain), (userDomain + "\\" + userName), userPassword);
try
{
// Bind to the native object to force authentication to happen
Object native = entry.NativeObject;
return true;
}
catch
{
return false;
}
}
It only works with Windows 2003 server. I mean.. when I run the application on Windows 2003 server, it login to the server.
But when I run it on a WinXp machine.. (connected in a Windows 2003 server domain) it is not login to the server and gives error.
Also I wanted to login to a Remote Windows 2003 server from a WinXp machine... connected by internet.
Can anybody guide me ... how to do this?
Thanks in Advance
T.Maria Raja Kumar
|
|
|
|
|
Hello,
I am trying to create a static method that converts ArrayList to List<t> and vice versa. I am at a loss at how to do it, anyone care to help? I posted the code I created below.
<br />
public static List<T> ConvertArrayListToList(ArrayList arrayList, Type T)<br />
{<br />
List<T> result = new List<T>();<br />
<br />
for ( int i = 0; i < arrayList.Count; i++ )<br />
{<br />
if (arrayList[i] is T)<br />
result.Add((T)arrayList[i]);<br />
}<br />
<br />
return result;<br />
}<br />
<br />
public static ArrayList ConvertListToArrayList(List<T> list)<br />
{<br />
ArrayList result = new ArrayList();<br />
<br />
for ( int i = 0; i < list.Count; i++ )<br />
{<br />
result.Add(list[i]);<br />
}<br />
<br />
return result;<br />
}<br />
Thanks!
~Rafferty
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">Rafferty Uy wrote:</div>I am at a loss at how to do it, anyone care to help</blockquote>
First step, tell us why this code doesn't work. At first glance, I assume you forgot to check 'Ignore HTML tags in this message below, and it's a List<T>, otherwise, I don't see a problem, although I may be able to if you gave me a hint.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
I want to zip perticular folder through C#.net coding.
How to do that?.
Rahul Kulkarni
|
|
|
|
|
Hi,
Do you want to use some component for this or through pure .Net.
If you dont want to use components, then have a look at java.util.zip namespace. remember that on ur machine J# Redistributable package must be installed. This is part of J# libraries.
For more details, please take a look at following link
http://msdn.microsoft.com/msdnmag/issues/03/06/ZipCompression/[^]
If you want to use a component the search for Xceed Zip components on google.
Hope this helps you !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
|
Hi,
I have a wmv file in which I wnat to add a text data as attribute. The data is >64k.
I have written following code but it gives "The parameter is incorrect." error.
try
{
// Create a WMEncoder object.
WMEncoder Encoder = new WMEncoder();
IWMMetadataEditor metadataEditor = null;
try
{
//create encoder object
Qlikkit.WMFSDKWrapper.Functions.WMCreateEditor(out metadataEditor);
}
catch(Exception ex)
{
string str = ex.Message;
int mydata = 0;
}
// open wmv file
try
{
metadataEditor.Open("d:\\3333.wmv");
}
catch(System.Runtime.InteropServices.COMException ex)
{
string mystr = ex.Message;
string mystr2 = ex.StackTrace;
int jj=0;
}
// get the IWMHeaderInfo3 interface
IWMHeaderInfo3 headerInfo = metadataEditor as IWMHeaderInfo3;
// get attribute count
ushort Outindex = 0;
headerInfo.GetAttributeCount(0,out Outindex);
IWMEncDisplayInfo displayInfo = Encoder.DisplayInfo;
readMetadataStream();
String mydaya22 = "data" ;
System.Text.StringBuilder mydata33 = new System.Text.StringBuilder(mydaya22);
Qlikkit.WMFSDKWrapper.WMT_ATTR_DATATYPE attrDataType2 = new Qlikkit.WMFSDKWrapper.WMT_ATTR_DATATYPE();//Qlikkit.WMFSDKWrapper.WMT_ATTR_DATATYPE.WMT_TYPE_STRING;
attrDataType2 = Qlikkit.WMFSDKWrapper.WMT_ATTR_DATATYPE.WMT_TYPE_STRING;
try
{
// add attribute
headerInfo.AddAttribute(0,
"Author",
out Outindex,
attrDataType2,
0,
//myDataptr,
mydata33,
(uint)metadataSIze
);
}
catch(Exception ex2)
{
// TODO: Handle exceptions.
string str = ex2.Message;
}
Also My defination of IWMHeaderInfo3.AddAttribute is
void AddAttribute(
[In] ushort wStreamNum,
[In, MarshalAs(UnmanagedType.LPWStr)] string pszName,
[Out] out ushort pwIndex,
[In] WMT_ATTR_DATATYPE Type,
[In] ushort wLangIndex,
//IntPtr pValue,
[In, MarshalAs(UnmanagedType.LPWStr)] StringBuilder data,
[In] uint dwLength);
is it correct?
Regards,
Hemant.
|
|
|
|
|
<br />
XmlDocument SVGPlot;<br />
SVGPlot = new XmlDocument();<br />
SVGPlot.Load("template.svg");<br />
<br />
...<br />
<br />
XmlElement e = SVGPlot.CreateElement("rect");<br />
...<br />
SVGPlot.DocumentElement.FirstChild.AppendChild(e);<br />
My root element has the namespace URI xmlns="http://www.w3.org/2000/svg"
The problem is that every element e I add is like:
<br />
<rect x="100" y="40" width="40" height="10" style="fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)" xmlns="" />
The xmlns="" makes my svg not to work and I don't think of a way to lose it Please help me
|
|
|
|
|
I've written a program that uses full text searching through Microsoft Indexing Services. The full text search does not search for RTF files. Does anyone know how I can get it to search RTF files. THANKS!
|
|
|
|
|
Hi,
I have a custom windows form with FormBorderStyle=NONE in Windows XP. If I maximize it with WindowState = FormWindowState.Maximized, I see a short animation until this is done. While this animation I see for a short moment the blue title bar. I just tryed ControlBox=false. How can I maximize and normalize this form without seeing the title bar while the animation?
Regards,
Andreas
|
|
|
|
|
Hello,
I have been trying to insert a string at the caret position of a richtextbox using following method
<br />
int indexOfCaret = this.rtb.SelectionLength;<br />
this.rtb.Text = this.rtb.Text.Insert(indexOfCaret, "Test");<br />
But when the text in the richtextbox exceeds, say 1 page, the flickering starts...because I am replacing the text everytime.
Please suggest another way out of this.
Thank you,
Anshuman
Plain old Coder
|
|
|
|
|
The index of the caret is actually SelectionStart, I believe.
If you're having to replace the text, I don't see a way around the fact that it gets replaced every time you replace it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
dont run your insertion directly in textbox.take the current text in some variable and do you replacement there and after that replace whole text of textbox with new value
sameer
|
|
|
|
|
hi
Try this
this.rtb.SelectedText="Text To insert";
hope this works...
Nitin...
|
|
|
|
|
Thank you very much Nitin...this works...
Plain Old Coder
|
|
|
|
|
I am trying to find a class to get the system info (i.e. memory usage, disk space...). I have seen several references to a System.Mangament class but its not list in the .net MSDN help files and doing a "using System.Management;" creates an error. Any ideas.
|
|
|
|
|
sj_h1 wrote: I have seen several references to a System.Mangament class but its not list in the .net MSDN help files
If you are looking for "System.Mangament" I can understand that your search results were sparse. Perhaps if you look for "System.Management[^]" instead...
---
b { font-weight: normal; }
|
|
|
|
|
very funny...now try to be helpful
|
|
|
|
|
sj_h1 wrote: very funny...now try to be helpful
I marked the reply as "Answer" because it is supposed to be helpful, eventhough the joke is on you for misspelling the namespace.
Just click on the link that I included in my post, and you will come to the documentation.
---
b { font-weight: normal; }
|
|
|
|
|
Before you can add a
using System.Management; using directive in your code, you'll need to add a reference to the System.Management.dll
|
|
|
|
|
Thats the very information I need. How do I do that.
|
|
|
|