|
Ok one other thing...
I'm thinking of doing something similar with the Label Control as well...
|
|
|
|
|
|
|
Found a solution that should work nicely:
http://www.dotnet247.com/247reference/msgs/43/216202.aspx
|
|
|
|
|
Hey folks, i got a problem...
i got a third party app randomly connecting to 200 different servers.
All servers got a fixed IP that i know.
Now i want that app to only connect to a defined server, lets say server 120.
Is there an possibility to redirect all the other server ips to the ip of server 120?
I don't know if the app has to resolve the ip first but it seems so already tried to manipulate the "hosts" file but the app doesn't care...
If you got any idea pleas let me know... even if its as silly as hell
thanks
|
|
|
|
|
Is there any way in visual Studio .Net to Generate Compiled HTML File (CHM) of the Written code ?
|
|
|
|
|
Hi all
I have a customer who wants to implement all the password policy available.
According to microsoft password policy settings, there's only enable or disable.
- English uppercase characters (A through Z)
- English lowercase characters (a through z)
- Base 10 digits (0 through 9)
- Non-alphabetic characters (for example, !, $, #, %)
Is there a guide I can refer to to create a bypass so as to build in all 4 policy settings?
Thanks in advance.
Thomas
|
|
|
|
|
Barm wrote:
Is there a guide I can refer to to create a bypass
The only way to change this is to write your own custom password filter. You can see this[^] for an example.
I have not seen any attempts or articles of other people writing their own password filters.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
tks a lot...
don't think I'm able to do it though... guess I'll have to talk to the client again... maybe other alternatives...
|
|
|
|
|
Hello, is there a way to make a Visual Studio .NET 2003 RichTextBox give spaces the same width as letters? In notepad, or even in word, a space is given the same width as letters, and I thought changing the font would work, but it did not.
|
|
|
|
|
You have to use a monospace font, like Lucida Console or Courier New. There is no other way to do it.
Most of the font you'll see are all variable width, meaning each character has it's own width. For example a lower case "l" is much slimmer than an upper case "W".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
THANKS!, that worked perfectly
Mike - I love to program!
|
|
|
|
|
I'm trying to create a basic rich text editor using the .NET's new
RichTextBox control. However, it seems to me that the control is
unnecessarily difficult to work with - especially in comparison to the
RichTextBox ActiveX control I used to use in Visual Basic. For example, I've
still not discovered an effective way of making the selected text bold /
italic / underlined. etc.
With Visual Basic you could just set the control's SelBold / SelItalic /
SelUnderline properties to true but with .NET you from to do something along
the lines of:
rtbEditor.SelectionFont = new Font (rtbEditor.SelectionFont, FontStyle.Bold)
Which wouldn't be a problem except that the SelectionFont property is null
if you happen to have more than one font selected.
The only way around this that I can envisage is to looping through all
selected characters and individually change all of their font properties.
Surely there is some way of doing something as simple as changing the Bold
property without having to resort to ugly hacks like that?
|
|
|
|
|
Hi!
You can take a look at this article:
Getting WYSIWYG Print Results from a RTB[^]
Apart from printing you can see how to add new features to the derived RTB like SetSelectionBold() and the like.
Regards,
mav
|
|
|
|
|
Thanks. I'd have thought the RTB control would have this functionality 'out of the box' though - without it, the uses of the control seems rather limited in comparison to the VB control.
|
|
|
|
|
Hi everyone,
I want to display menu bar in the middle of the form.Can someone tell me which control can I use on my form a container control for main menu control?
Waiting for the reply.
Thanx
Tasneem
|
|
|
|
|
Hi guys, i need some help here.
I'm using a Socket object for sending UDP/TCP messages in a C# application. I need to set a certain TOS (type of service) before sending a message. Here's how i do it:
// variables declarations
Socket m_socket;
byte[] m_packet;
IPEndPoint m_remotePoint;
...
// set TOS
m_socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.TypeOfService, 5);
// check that the value has been set; n receives 5
int n = (int)m_socket.GetSocketOption(SocketOptionLevel.IP, SocketOptionName);
// send the packet
m_socet.SendTo(m_packet, m_remotePoint);
It seems that TOS has been set. However, when i catch my messages in a sniffer, TOS is invariably 0.
What am i doing wrong?
Thanks a bundle!
|
|
|
|
|
|
Hello, I'm writing (C#) class for pop3 message parsing and I got stuck with 8bit encoding of attachments (in general, 8bit encoding). Probably I missed something or I don't know much enough about mail format or MIME.
The question is: what should I do with string containing 8bit encoded data? How can I get proper bytes to write them to a file?
I tried to use Encoding.[ASCII | DEFAULT | UTF7 |UTF8] to get bytes, I tried to cast chars from string to byte, but I'm unable to write original bytes. Some non-standard characters (f.e. ś) are "garbled".
I'll be very, very grateful for any solution or clue, what I should do or what I'm doing wrong.
|
|
|
|
|
Hello,
I am having a serious issue and loosing the argument of using .NET Remoting in implementation of client/server architecture.
Can any one give me severral good reasons for using .NET remoting over writing custom implementation for client and server? The proposed solution is very straight forward, however I am wondering if there are any disadvantages to this approach we should be aware of.
My co-worker is proposing to implement listener on the server side that will catch encrypted traffic sent from the client. Then, parse sent message to find out what the request is and perform certain actions to server the client. After that, it would send info back to the client which is similarly listening on the certain port for incoming messages, then decrypting and parsing it.
Again, can someone explain why would one use .Net Remoting over described approach?
Thank you very much.
|
|
|
|
|
Hi,
Implementing .NET Remoting is very straight-forward as many of the things are already done for you.
If you like to go with TCP channels and binary formatters, its having the best performance.
You need to create an interface, business class and expose the class using the interface. You can easily manage the remoting settings using the configuration files.
If you plan to use HTTP channel and use IIS for the remoting server, its can be easily done as IIS handles all the security aspect the same way it does for any virtual directory. So, you get these benefits to use during remoting.
Let me know if you require more information.
Thanks
Achintya
|
|
|
|
|
I am very familiar with Remote Implementation and settings. We currently have to solutions one using .NET Remoting and another using sockets and custom implementation. We are trying to decide which one of the two we should base the new version of the product on.
I can't find to have good enough reasons to get them to go with Remoting solution. Some of the developers argue that's it's too much of the complication to the development process, use of the debuggers and dealing with registering assemblies. I am used to it, and don't consider it being problematic, unfortunately, others do.
So, i need a strong argument which will directly benefit the customer to go with .NET Remoting.
Thanks for your feedback.
|
|
|
|
|
Hey
i want to start my application with a form that is hidden... how on earth do u do that !! this.Hide() and this.Visible = false have not been working for me... not even in the Form.Load()...
thanx
|
|
|
|
|
You have to override the forms OnLoad procedure. You can set the forms Opacity to 0 in there. Then later, when you want to show the form, set the Opacity to 1.
' In VB.NET,
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
MyBase.OnLoad(e)
' Make me disappear before I'm even shown...
Me.Opacity = 0
Me.Visible = False ' WON'T WORK!
End Sub
Now when you want to show the form, just set the Opacity back to 1.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have to localize property display name i.e WebDisplayName of webpart .How to do it in ASP.NET 2.0?
|
|
|
|