Search:
Type: Posts; User: Blagojce
Search:
Search took 0.03 seconds.
-
You can create new object which will contains two objects.
public class StudentGenderView
{
public StudentGenderView()
{
}
public Student StudentEntity{get;set;}
-
Try this:
- first split to array
- with LINQ remove elements in array which contains "sq.ft".
-
I think is something like this:
public class StudentClassViewModel
{
public Student Student{get;set;}
public Class Class{get;set;}
}
-
Each file is stored as attachment in each mail. If 2 users create 2 different messages, they create 2 different mails.
If you want to store files locally, you can create folder for each email...
-
Are you looking for something like this?
-
CodeFirst create database when you try to access it, so he/she needs to put some record or try to login/register.
-
Start your project, click on register/login and enter some data.
-
You can access from other computer by their names or ips.
In SQL Server Configuration Manager enable TCP/IP or Named Pipes and start Sql Browser service to view sql server on pc1 from other...
-
Try this:
XmlDeclaration dec = xmlDocIn.FirstChild as XmlDeclaration;
-
According reference, you should enter three alphabetic characters, not numeric.
If you want to enter numeric characters use # instead.
-
You need to keep last location in data file or registry and before you show the FolderBrowserDialog set SelectedPath property to path value from data file or registry key.
-
You can add controls to the panel through designer mode, just drop on the panel.
For default values for height, backcolor, location etc. I think you need to override those properties and add default...
-
Regiter closed event or override onclosed method.
Closed/closing event resources:
MSDN: closed event
MSDN: closing event
-
You can use datagridview in form to display the results.
-
StreamReader("TestFile.txt") - This means the file is in the same directory with application.
In Windows Forms you can select file with OpenFileDialog.
In the example with open file dialog you have...
-
First create object where you'll store data from the file.
Next read each line(with TextReader) and add in appropriate property in object.
-
Try Datatable.Copy or Datatable.Clone
-
First read text file in stream, next add each line of stream to string and split string with spaces and check length of each string.
-
You're using single instance of object, not a collection.
When you're displaying results you need to use for/foreach loop if you want to display all objects in collection.
In function...
-
On PageLoad first clear listbox then populate, or check if page is post back.
-
It was that. I first applied Index to the MeniItem and then added to the MainMenu.
I'm using MainMenu because I found easier(I think it's easier) way how to create menu dynamically.
Thanks a lot!
-
I can't assign index on the MenuItem. I tried to assign index directly from object's index but without success, still MenuItem.Index is -1.
mnuItem.Index =item.Index;
I tried first to...
-
-
In addition I put code file and whole test project where I'm creating menus dinamically.
I tried to compare current ToolStripMenuItem with ToolStripMenuItems in List with Contains method but it...
-
I have the following dictionary:
Dictionary<ToolStripMenuItem, ToolStripMenuItems[]>
and I'm calling recursive function to iterate throug dictionary and build menu items, but if I didn't...
-
Use Readers(TextReader) and Streams(StreamReader/StreamWriter) to read or write content of file.
Here is MSDN example for LoadFile method:
RichTextBox.LoadFile
-
From the code I can see you call methods from form not from Application, change Form1.methodname with Application.methodname.
Change this:
Form1.EnableVisualStyles();...
-
I'm think that attribute type is correct, and attribute is on appropriate type.
Here is the attribute and how it's attached on type:
[AttributeUsage(AttributeTargets.Class, AllowMultiple =...
-
Does Program.cs file in your project for UI contains definition for these methods?
Your Program.cs file should look like this:
static class Program
{
/// <summary>
///...
-
after "}" use else statement or in if{} use return keyword after sending mail.
private void button1_Click(object sender, EventArgs e){
if (textBox1.Text!="" ){
...
-
First, instantiate the class:
Email email=new Email();
Then use:
email.EmailSubject=textBox1.Text;
-
First I'm checking if custom attributes are different from null.
The condition is satisfied but within condition when I'm getting array of objects(or array of custom attribute) the method:
...
-
It's best to create custom texbox.
Things you need to do are:
1.Inherit from TextBox control;
2. Override events and add your own colors/border styles to textbox.
-
Yes, my question was how do I know which is the type the attribute list came from.
Thanks, for your answer.
-
How to determine on which class is attribute attached?
In one function I'm iterating through types and attributes, in another function I'm getting attributes as parameter and iterating through...
-
Use events to achieve this.
Use MouseHover or Enter event when mouse is over it.
Use GotFocus event when it gets focus.
-
In Links property of linklabel add website link, and in Text property write title(or whatever you want) of website.
Double click on linklabel to add event or in LinkClicked event add:
...
-
Yes, I wanted to say that, but how to iterate and create menu item from string?
-
The string needs to check if root menu exist, if exist check if submenu exist, if it doesn't exist need to create submenu in root menu.
Ex:
View;Toolbars;Help
Check if View menu exist, if View...
-
Maybe the appropriate word for this technique is formatting menus.
|
Click Here to Expand Forum to Full Width
|