15,892,005 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ramana Bellary (Top 20 by date)
Ramana Bellary
28-Sep-18 2:27am
View
Below is what I have come with, let me know if you have any better solution.
public abstract class Creature
{
public virtual void Walk()
{
}
public virtual void Run()
{
}
public virtual void Swim()
{
}
}
public class Tiger : Creature
{
}
public class Horse : Creature
{
public override void Walk()
{
throw new Exception("Can walk");
}
}
public class Fish : Creature
{
public override void Walk()
{
throw new Exception("Can walk");
}
public override void Run()
{
throw new Exception("Can Run");
}
}
public class Tortoise : Creature
{
public override void Run()
{
throw new Exception("Can Run");
}
}
Ramana Bellary
26-Oct-17 5:11am
View
My doubt is if the source.CopyTo is still holding the reference to the file.
Or is it caused because of using AsParallel !!!
Ramana Bellary
6-Jul-17 5:15am
View
I know how to insert single record at a time into Oracle DB, but I want to know how to bulk insert. I did this for SqlServer, but never did this for Oracle.
Ramana Bellary
5-Jul-17 13:08pm
View
I mean, I have selected a csv file, right clicked and chosen the option "Send to Compresed Zip folder", which has created a zip file.
Ramana Bellary
5-Jul-17 9:14am
View
I have created the .zip file manually, which has one csv file inside it. If the zip file has a .txt file, in that case am able to unzip it.
Ramana Bellary
24-Nov-14 5:27am
View
Below is my code:
public class TextBoxBehavior
{
public static DependencyProperty OnLostFocusProperty = DependencyProperty.RegisterAttached(
"OnLostFocus",
typeof(ICommand),
typeof(TextBoxBehavior),
new UIPropertyMetadata(TextBoxBehavior.OnLostFocus));
public static void SetOnLostFocus(DependencyObject target, ICommand value)
{
target.SetValue(TextBoxBehavior.OnLostFocusProperty, value);
}
///
/// PropertyChanged callback for OnDoubleClickProperty. Hooks up an event handler with the
/// actual target.
///
private static void OnLostFocus(DependencyObject target, DependencyPropertyChangedEventArgs e)
{
var element = target as TextBox;
if (element == null)
{
throw new InvalidOperationException("This behavior can be attached to a TextBox item only.");
}
if ((e.NewValue != null) && (e.OldValue == null))
{
element.LostFocus += OnPreviewLostFocus;
}
else if ((e.NewValue == null) && (e.OldValue != null))
{
element.LostFocus -= OnPreviewLostFocus;
}
}
private static void OnPreviewLostFocus(object sender, RoutedEventArgs e)
{
UIElement element = (UIElement)sender;
ICommand command = (ICommand)element.GetValue(TextBoxBehavior.OnLostFocusProperty);
if (command != null)
{
command.Execute(e);
}
}
}
---------------
public class Customer : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public void RaisePropertyChanged(string propertyName)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
private string name;
public string Name
{
get
{
return name;
}
set
{
name = value;
//RaisePropertyChanged("Name");
}
}
private string country;
public string Country
{
get
{
return country;
}
set
{
country = value;
RaisePropertyChanged("Country");
}
}
private int id;
public int Id
{
get
{
return id;
}
set
{
id = value;
RaisePropertyChanged("Id");
}
}
}
public class MyViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public void RaisePropertyChanged(string propertyName)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
private ICommand nameChangeCommand;
public ICommand NameChangeCommand
{
get
{
if (nameChangeCommand == null)
nameChangeCommand = new RelayCommand(ValidateAndChangeName);
return nameChangeCommand;
}
}
private void ValidateAndChangeName(object obj)
{
}
private Customer customer;
public Customer Customer
{
get
{
return customer;
}
set
{
customer = value;
RaisePropertyChanged("Customer");
}
}
}
----------------
Ramana Bellary
4-May-11 23:30pm
View
Thank you Pete O'Hanlon.
Ramana Bellary
2-May-11 8:43am
View
No, I want to disable the close button of an excel file .
Ramana Bellary
25-Apr-11 4:58am
View
I need to open a .txt file as .xls file in WPF window and I should be able manually edit(copy/paste/Cut) the content.
Ramana Bellary
19-Apr-11 6:29am
View
It may take much time to loop through each and every cell and read the content. Instead I'm looking for some approach where I can read the entire content at once.
Ramana Bellary
19-Apr-11 6:27am
View
I want to read the excel content , convert it into binray format and then insert into DataBase. I'm not sure if it can be done by using Ado.Net or not. If it is possible can u provide me the source code ?
Ramana Bellary
19-Apr-11 6:27am
View
I want to read the excel content , convert it into binray format and then insert into DataBase. I'm not sure if it can be done by using Ado.Net or not. If it is possible can u provide me the source code ?
Ramana Bellary
19-Apr-11 5:11am
View
Instead of looping through each used cell , can't get the entire data at once ?
Ramana Bellary
19-Apr-11 5:05am
View
I want to read the content present in a Excel WorkSheet without loopiing through each cell.
Ramana Bellary
19-Apr-11 5:04am
View
I want to read the excel content without looping through each cell , even in case of Used range also. Is it possible to do so ?
Ramana Bellary
19-Apr-11 4:50am
View
Thanks for your reply. I don't want in Ado.Net .
Ramana Bellary
19-Apr-11 4:50am
View
Thanks for your reply.Even here it will loop through each cell, which I don't want.
Ramana Bellary
19-Apr-11 4:49am
View
no
Ramana Bellary
15-Apr-11 1:53am
View
Hi,
from that handle how can I read the content present in the excel file ?
Ramana Bellary
10-Mar-11 22:40pm
View
DatePicker will not accept the text entered through the keyboard,will allow the user to ender some text, which should not be the case.
Show More