|
|
Its 2.0 ! the thing is ve got tons of ebooks about this, I need something that gets to the point like i dunno builds a complete website from scratch ! something like that !
Mr.K
|
|
|
|
|
You can't start to build the complete website straight away. You have to read the book and try some samples steps by steps.. then, if you get some ideas how web application works, you can start the project... You can also participate in opensoure ASP.NET project if you wanna practice ...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Can anybody tell me how to convert a .msg file to .eml file.using a .net component or some C# .net or even a COM libary.
Thanks in advance.
|
|
|
|
|
Xs_2 wrote: Can anybody tell me how to convert a .msg file to .eml file.using a .net component or some C# .net or even a COM libary.
I'm not sure about .NET components. But there are some free converting tool available for that...
You may wanna read this thread.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=6706&SiteID=1
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
HI I have created an application that uses the registry.
On the application there are two textboxes and a button. When the form is loaded the first textbox displays a font that has been declared in the registry and the second text box displays the font size, again declared in the registry. The button allows the user to change the font and font size using a FontDialog. When this dialog is opened (by clicking the button), the selected font is the font declared in the registry. I also want the font size that is declared in the registry to be selected in the dialog. The font name works perfectly fine, I am just having trouble with converting the font size.
First of here is my code:
string font;
int size;
FontDialog selectFont = new FontDialog();
font = Convert.ToString(Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\RegKey_test", "Font", ""));
selectFont.Font = (Font)TypeDescriptor.GetConverter(typeof(Font)).ConvertFromString(font);
size = Convert.ToInt32(Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\RegKey_test", "FontSize", ""));
selectFont.Font.Size = (Size)TypeDescriptor.GetConverter(typeof(Size)).ConvertFrom(size);
if (selectFont.ShowDialog() == DialogResult.OK)
{
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\RegKey_test", "Font", selectFont.Font.Name.ToString());
TBFont.Text = selectFont.Font.Name.ToString();
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\RegKey_test", "FontSize", selectFont.Font.Size, RegistryValueKind.DWord);
TBFontSize.Text = selectFont.Font.Size.ToString();
}
I am unsure if I should set the variable size as an integer or a string, and then according to this how is it converted to Font.Size?
Lucy
|
|
|
|
|
Lucy_H85 wrote: selectFont.Font.Size = (Size)TypeDescriptor.GetConverter(typeof(Size)).ConvertFrom(size);
I think Size property is readonly. so, try like that..
Example 1
Label1.Font = New Font("Tahoma", 30)
Example 2
<br />
font = Convert.ToString(Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\RegKey_test", "Font", ""));<br />
<br />
size = Convert.ToInt32(Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\RegKey_test", "FontSize", ""));<br />
<br />
selectFont.Font = new Font(font,size);
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
That works great! Thanks! Didnt realise it would be so easy!
|
|
|
|
|
Hi
i am using ms Glee and visual studio Graph class and i have created an ellipse and displayed on Glee gview tool so i want serialize this ellipse in an xml file
here is what i have done in creating an ellipse.
Graph g = new Graph("graph");
g.AddNode("Ellipse");
gViewer1.Graph = g;
here is where i am trying to serialise but it
XmlSerializer mySerializer = new XmlSerializer(typeof(Graph));
XmlTextWriter myWriter = new XmlTextWriter(@"C:\users\dake10\documents\jacob\motors.xml", Encoding.UTF8);
Graph g = new Graph("");
g.AddNode("House");
mySerializer.Serialize(myWriter,g);
I get this error message"Microsoft.Glee.Drawing.Graph cannot be serialized because it does not have a parameterless constructor."
Mamphekgo
|
|
|
|
|
You can't serialize a Glee graph object using an xmlserializer.As the exception says it doesn't have a parameterless constructor.
If your aim is to draw graph,I think still graphviz is the better choice to GLEE
|
|
|
|
|
hi all
i Wount to sort the DataGridView by the column 1 it's have datatype Date
How i can that
thanks for any help me
Thaer
|
|
|
|
|
Hello, this is Sergey
I have a problem with dataGridView:
One of the predefined columnes has type DataGridViewComboBoxColumn with predefined items.
When i'm adding new row
int index = datagrid.Rows.Add();
and after that trying to set default value in DataGridViewComboBox,
DataGridViewCell dgvc = datagrid.Columns[2].CellTemplate;
dgvc.Value = "High";// it has index = 0 in items of column
datagrid.Rows[index].Cells[2] = dgvc;
it throws messages that its incorrect. I've tried in other ways, searching for information, nut i didn't find it
Could you help me to set this shirt default value to combobox and get then it back?
Thanks,
Sergey
|
|
|
|
|
Hi, I need a Listbox with only Left Key Event. All other keys should be ignored.
I've Inherited the Listbox Control and overridden its OnKeyUp(...) (and similar) Methods and provided them with
following Implementation
protected override void OnKeyUp(System.Windows.Forms.KeyEventArgs e)
{
if( e.KeyCode == Keys.Left )
{
// My Code
}
else
; // Do Nothing
//No Call to base.OnKeyUp(e) Made Anywhere in this method
}
Still My Custom Listbox Implements its Default Key behaviour and handles all the keys (Up, Down, PageUp, etc...)
Please Advice
Thanks...
|
|
|
|
|
Hello,
You have to override OnKeyDown where you check the KeyCode, and also OnKeyPress.
Not calling the base. method will not work in this cases, you will have to set the e.Handled property to true.
public class SpecialListBox : System.Windows.Forms.ListBox
{
public SpecialListBox()
{
}
protected override void OnKeyDown(KeyEventArgs e)
{
if(e.KeyCode != Keys.Left)
{
e.Handled = true;
}
base.OnKeyDown (e);
}
protected override void OnKeyPress(KeyPressEventArgs e)
{
e.Handled = true;
base.OnKeyPress (e);
}
}
Hope it helps!
All the best,
Martin
|
|
|
|
|
Thanks for the Way, Martin...
Actually I wanted to Shift the Focus to some other control whenever the user pressed Left on My CustomListBox. So all I did was...
protected override void OnKeyDown(System.Windows.Forms.KeyEventArgs e)
{
if( e.KeyCode == Keys.Left )
{
MyControl.Focus(); // Do What I Want to For Left Key Press
e.Handled = true;
return;
}
else // for Other Keys do your Default Handling
base.OnKeyUp(e);
}
protected override void OnKeyPress(System.Windows.Forms.KeyPressEventArgs e)
{
e.Handled = true;
base.OnKeyPress (e);
}
|
|
|
|
|
Hello,
Glad I could help!
protected override void OnKeyDown(System.Windows.Forms.KeyEventArgs e)
{
if( e.KeyCode == Keys.Left )
{
MyControl.Focus(); // Do What I Want to For Left Key Press
e.Handled = true;
return; <= not neccessary
}
else // for Other Keys do your Default Handling <= not neccessary
base.OnKeyUp(e);
}
You are wellcome!
All the best,
Martin
|
|
|
|
|
Thanks Martin.
Well<= not necessarycome
Your Last Line
|
|
|
|
|
Dear All,
Please guide me about imposing Expiry date to MS Office files (.doc, .docx, .xls, .xlsx, .ppt, .pptx, InfoPath) using C#, such that if the file has expiry date today, it should not open tomorrow.
I know, we can do it if the IRM client is installed on client machine, but to avoid burden on the user we are told to do it through code.
Regards
Sachin
|
|
|
|
|
There's no way to implement that kind of functionality. The filesystem would have to support it and, of course, it doesn't. You'd have to write your own file system extension (not in C#) to do this.
|
|
|
|
|
Thanks for your reply.
But I think its possible, as its already done by one vendor of our client, since its their IP, we do not have access to the source code. That DLL imposes all IRM rights that includes expiry date too.
Regards
Sachin
|
|
|
|
|
One of two things can do this. Either the application supports it, or the file system supports it.
For the file system, you'd have to write an extension to the file system.
For an application, you'd have to write some kind of Add-In for that application that replaces the app's load/save functionality.
You can't just "throw in" an expiration date into the document properties and expect that to work on every instance of the application. For instance, throwing an expiration date into a Word document doesn't do anything unless that copy of Word has this extension installed. BUT!! What's to stop the user from opening the document on a copy of Word that DOESN'T have the extension installed?? NOTHING!! The document must be encrypted somehow to get around this kind of functionality limitation. You need to stop other copies of Word from opening up the document.
As for how to replace the load/save functionality, I have no idea.
|
|
|
|
|
Thanks for the reply Dave,
Well, I got some clue from MOSS ECM Starter Kit, where they have given some information about custom IRM protector.
If I get anything concrete out of it, will definitely share.
If any one has already done some work on it, please do share.
Regards
Sachin
|
|
|
|
|
hello,
I am in a trouble. I have done an application with Oracle and C#. I have created the setup.exe also. The application will work in oracle client installed systems. Is there any way to run the application without installing Oracle Client?
Can anyone knows the answer, please kindly help me....
Anez.A
|
|
|
|
|
I think that you can add the required files (*.dll or etc) including oracle client while creating the setup file.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Thank you Michael...
But, i have done that method also. Still its not working.
First time, the error got is Missing OraOps9.dll.
I've added OraOps9.dll into the setup file. Still not working. The error shows, the specified path is incorrect. Cannot find Such file or directory...
Anyway, thanks a lot for the reply to my question...
Anez.A
|
|
|
|