15,746,795 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 Javascript questions
View C++ questions
View Python questions
View Java 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 Renat Khabibulin (Top 9 by date)
Renat Khabibulin
22-Nov-11 20:10pm
View
I know difference between Invoke and BeginInvoke :) I ll try to use EventLog to understand what happens...
Renat Khabibulin
22-Nov-11 20:08pm
View
In case when I use BeginInvoke() then foreach doesn't ends because I get exception after first result returned because it's navigation properties are NULLs and I am trying to use them. I think that I will have to solve problem of thread safety after I understand why navigation properties are NULL in case of BeginInvoke()
Renat Khabibulin
17-Oct-11 16:28pm
View
Just DataGrid...ok, I ll add some sources now
Renat Khabibulin
13-Oct-11 20:13pm
View
I remove TwoWay binding from SelectedIndex to prevent changes in DataContext. I have added following code that is called each time DataContext changed:
for (int i = 0; i < Tabs.Count; i++)
{
if (Tabs[i].IsSelected)
{
SelectedIndex = i;
OnPropertyChanged("Tabs");
OnPropertyChanged("SelectedIndex");
return;
}
}
SelectedIndex=0 (first tab), but NOTHING IS SELECTED!
Renat Khabibulin
13-Oct-11 19:36pm
View
I have tried force OnPropertyChanged("SelectedIndex") after DataContext's changed. Doesn't help. I select any Tab and begin change DataContext's, then while this process somehow SelectedIndex = -1...I just cant understand how...Seems that DataContext is not disconnected with another ListBoxItem where TabControl doesnt't has SelectedItem. And thanks to TwoWay binding, -1 from another ListBoxItem binds to DataContext and then to current TabControl
Renat Khabibulin
13-Oct-11 18:30pm
View
You are right, main DataContext contains another DataContext's. But Header and Data (from that contexts) are binded correctly. Problem is only with SelectedItem. I have tried to add SelectedIndex into main DataContext and create TwoWay binding with TabControl.SelectedIndex, but it doesnt help
Renat Khabibulin
5-Apr-11 2:28am
View
- The type or namespace name 'BinaryReader' could not be found .......
- The type or namespace name 'FileStream' could not be found ........
if namespace not found, place cursor on missed word and press Alt+Shift+F10. If it is available on any available namespace then VS will show popup with this namespace.
Renat Khabibulin
5-Apr-11 2:26am
View
add line
using System.IO;
Renat Khabibulin
4-Apr-11 11:59am
View
http://www.codeproject.com/KB/webservices/WebServiceWithEvents.aspx
this article should help you. There is described how to notify subscribers of web service
Show More