|
I think this article's worth checking out:
http://msdn2.microsoft.com/en-us/library/ms171565.aspx[^]
It starts like this:
"Using managed code, you can create new application settings and bind them to properties on your form or your form's controls, so that these settings are loaded and saved automatically at run time."
I thinks that's what you're looking for.
|
|
|
|
|
Is there any way to show web links as hyperlinks in textboxes.
I have seen this http://www.codeproject.com/cs/miscctrl/LinkTextBox.asp
but i also want to have normal text in the textbox as well, basically its a notes field on my form and the user wants to just click on any webpages that may appear in the notes.
TIA
|
|
|
|
|
Just discovered RichTextBox's and they seem to do the trick
|
|
|
|
|
Hi,
I created a new windows application project within visual studio.
I then inserted a new class MDI parent to implement a MDI application.
I substituted the original program main form for the MDI.
When i click in the new icon (the code of the handle to create the new sub form is there), it doesnt make a thing.
What is happening?
Any tips?
Thx,
Nuno
|
|
|
|
|
What does the code say in the Main method? Step into it, and see if the application exits immediately after you reach the end.
Say you have a main form that you call MyMdiForm, you need to do this in your main method:
Application.Run(new MyMdiForm());
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
<code
this is="" my="" main:
static="" void="" main()
="" {
="" application.enablevisualstyles();
="" application.setcompatibletextrenderingdefault(false);
="" application.run(new="" coordinator());
="" }
<="" code="">
This is the event code for the new document button:
<code>
private void ShowNewForm(object sender, EventArgs e)
{
// Create a new instance of the child form.
Form childForm = new Form();
// Make it a child of this MDI form before showing it.
childForm.MdiParent = this;
childForm.Text = "Window " + childFormNumber++;
childForm.Show();
}
|
|
|
|
|
i found why it wasnt appearing.
I have several split containers in my form.
I wasnt putting the new form inside the splitcontainer panel.
Thx
Nuno
|
|
|
|
|
The most apparent thing is that you are referring to the generic Form class here. Do you have a specific instance that you want to create? For example:
MyForm childForm = new MyForm();
childForm.MdiParent = this;
childForm.Text = "...";
childForm.Show();
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
I'm need to display the body of an email in an HTMLBrowser. (axshdocvw.axwebbrowser).
Actually i'm keeping the body in a string variable...
############### Here's my code ##################
MAPIPROPLib.MAPIPropWrapper wrapper = new MAPIPROPLib.MAPIPropWrapperClass();
Microsoft.Office.Interop.Outlook.Application outlook = new Microsoft.Office.Interop.Outlook.ApplicationClass();
wrapper.Initialize();
Microsoft.Office.Interop.Outlook.MailItem m = (Microsoft.Office.Interop.Outlook.MailItem)objItem;
string subject = (string)wrapper.GetOneProp(objItem, MyClass.CdoConstants.CdoPR_SUBJECT);
EmailCommunicationData emailMessage = new Dataset EmailCommunicationData();
emailMessage.MessageBody =GetWrapperString(wrapper, objItem, MyClass.CdoConstants.CdoPR_BODY);
// the following code don't work
bodyHtmlBrowser.Navigate(filename);
#################################
please help me out.
TIA,
Kevin.
|
|
|
|
|
try
bodyHtmlBrowser.DocumentText = YourHtmlString
|
|
|
|
|
Hi all dear coders.
What I have is
- server
- client
- remoted classes
What I trying to do is
- client calls a remoted object method, a method calculated in the server.
this method calculation takes long time, 5-6 seconds.
- while server calculating that method, client sends another method call.
- server must queue these threads, and after calculating completes, let knows the client that process complete, and return a value.
Thank you in advance.
|
|
|
|
|
And what exactly is your question? I suppose it is how to do this?
Search for articles about remoting, or ask a more specific question please.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
BY Flash or gradient image please by sample,code and image
I well stand
|
|
|
|
|
Hi Friend'z
I have MDI application which contains multiple forms, From Main page's main menu i have opened login form. after entering login details, i have to go to main page. i'm going to another page but login page wil not b closing. the Login form should be closed after main page is opened.
How can i do it?
pl help me friends... thanks in advance!
ITS VERY URGENT FRIEND'Z
|
|
|
|
|
I'm not quite clear of what exactly you want to do, but in my MDI apps, most of the time I put the login controls in a panel instead of a form that can be hidden once login is authenticated. "usually in the middle of the MDI form"
ps. try to avoid using CAPS and urgent in your posts, actually, they work in the opposite way most of the time
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
- Don't post the same question more than once especially less than an hour after posting the original question. People on these boards give their time freely and don't get paid for their help. Just because something is urgent for you, doesn't mean that somebody else is going to give it their fullest attention until they are ready. Multiple postings makes it less (rather than more) likely that you will get help.
- Try to make the subject more meaningful in describing the problem.
- Don't use text speak. This is annoying. You have a keyboard with far more keys than a mobile has, so use it. You're not a surfer boy so ending something in a Z is just asking for trouble.
- Don't use capitals to try to get our attention.
Now, to answer your question - you are calling the login page at the wrong place. If you want the login form to determine whether or not the main form is actually called or not, you should call it before you even attempt to create the main form. If you look at your main method (static void Main(...)), you will see an line that says something like Application.Run(new MainForm()); . You need to call your login form before this, and only call this line if the login is successful. Example:
using (LoginForm dlg = new LoginForm())
{
if (dlg.ShowDialog() == DialogResult.OK)
Application.Run(new MainForm());
}
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
you can hide first the login form before you open the main form. Simply by doing this.
[LoginFormName].Hide();
[MainFormName].Show();
Normally, you would want to hide the login form so that the application will not quit. But if the login form is not your startup form you can close the close the login form.
[MainFormName].Show();
[LoginFormName].Close();
Notice that the main from will show first then the login form will close. If you do it the other way, the login form will not be able to call the method '[MainFormName].Show();'
|
|
|
|
|
please get me sample,sourcecode with imageing model
I well stand
|
|
|
|
|
In VS2005 every time I open a project, the files I had open last time get opened automatically. It's not such a big problem, however the designer of global.asax gets opened to and causes vs2005 to hang when closing that designer.
Is there any way to disable automatic opening of files when loading a project.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
|
|
|
|
|
go to TOOLS>IMPORT and Export Settings then 'reset all settings'
Hope this helps.
|
|
|
|
|
Hi All,
I need to create a software that will dial numbers from a list, and play a wave file. Available hardware is a modem with general phone line.
I have no idea how to do this. Any link or idea will be really helpful.
Thanks in advance
|
|
|
|
|
Hi all,
I write the data from one of my tables to a xml file. It executes the entire procedure without any errors, but it doesn't finish the xml file, so if I step through the program as it executes, it finalizes the document with the end element and the end document, but if I open the xml file in notepad, it stopped half way writing the elements of the last node.
Does anyone have an idea why this is happing?
Thanks in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
if you post some code i can tell the error
|
|
|
|
|
Here's the method
try<br />
{<br />
XmlTextWriter _writer = new XmlTextWriter(Filepath,System.Text.Encoding.UTF8);<br />
_writer.Formatting = Formatting.Indented;<br />
_writer.WriteStartDocument(true);<br />
_writer.WriteStartElement("ProductsExport");<br />
<br />
ProductData pd = new ProductData();<br />
pd.LoadData();<br />
if(pd.RowCount>0)<br />
{<br />
for(int index = 0; index < pd.RowCount; index++)<br />
{<br />
string _key = pd.ProdKey, _desc = pd.Description, _instore = "0", _retail = "0", _brandId = pd.BrandID, _sType = pd.StockType, _size = pd.StockSize, _meas = pd.SizeMeasure;<br />
string _reorMes = pd.ReOrderMeasure, _reorQty = pd.ReOrderLevel, _cost = pd.WholeSalePrice, _whole = "";<br />
string _overwrite = "0", _barcode = pd.Barcode, _depId = pd.DepartmentCode, _uDiv = pd.UsageDividend.ToString(), _uMes = pd.UsageMeasure, _invDesc = "";<br />
PriceData pr = new PriceData();<br />
pr.LoadData("1",pd.ID,System.DateTime.Now);<br />
if(pr.RowCount>0)<br />
{<br />
_whole = pr.PriceAmount;<br />
_invDesc = pr.PriceInvoiceLine.Trim();<br />
}<br />
if(pd.RetailItem) _retail = "1";<br />
if(pd.InStoreUseOnly) _instore = "1";<br />
if(pd.Overwrite) _overwrite = "1";<br />
_writer.WriteStartElement("Product");<br />
<br />
_writer.WriteElementString("Key",_key);<br />
_writer.WriteElementString("Description",_desc);<br />
_writer.WriteElementString("Instore",_instore);<br />
_writer.WriteElementString("Retail",_retail);<br />
_writer.WriteElementString("Brand_Id",_brandId);<br />
_writer.WriteElementString("Stock_Type",_sType);<br />
_writer.WriteElementString("Size",_size);<br />
_writer.WriteElementString("Measure",_meas);<br />
_writer.WriteElementString("ReorderMeasure",_reorMes);<br />
_writer.WriteElementString("ReorderQty",_reorQty);<br />
_writer.WriteElementString("CostPrice",_cost);<br />
_writer.WriteElementString("WholeSalePrice",_whole);<br />
_writer.WriteElementString("PriceOverwrite",_overwrite);<br />
_writer.WriteElementString("Barcode",_barcode);<br />
_writer.WriteElementString("Department_Id",_depId);<br />
_writer.WriteElementString("Usage_Dividend",_uDiv);<br />
_writer.WriteElementString("Usage_Measure",_uMes);<br />
_writer.WriteElementString("Invoice_Description",_invDesc);<br />
<br />
_writer.WriteEndElement();<br />
<br />
pd.MoveNext();<br />
}<br />
}<br />
_writer.WriteEndElement();<br />
_writer.WriteEndDocument();<br />
returnValue = true;<br />
}<br />
catch(Exception ex)<br />
{<br />
new Brim.Library.EventLogDetails().WriteEventLogEntry(ex.ToString(),System.Diagnostics.EventLogEntryType.Error);<br />
System.Windows.Forms.MessageBox.Show(ex.Message,"Export Failed",System.Windows.Forms.MessageBoxButtons.OK,System.Windows.Forms.MessageBoxIcon.Error);<br />
}<br />
He who laughs last is a bit on the slow side
|
|
|
|
|
How do I post the xml? it only posts the values, not the tags itself, I tried putting it in the code tags but that doesn't work either
He who laughs last is a bit on the slow side
|
|
|
|