Click here to Skip to main content
15,907,231 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
Dave Kreskowiak3-Apr-19 8:57
mveDave Kreskowiak3-Apr-19 8:57 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
desanti3-Apr-19 9:40
desanti3-Apr-19 9:40 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
Dave Kreskowiak3-Apr-19 10:30
mveDave Kreskowiak3-Apr-19 10:30 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
desanti3-Apr-19 11:16
desanti3-Apr-19 11:16 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
desanti4-Apr-19 0:41
desanti4-Apr-19 0:41 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
Dave Kreskowiak4-Apr-19 5:49
mveDave Kreskowiak4-Apr-19 5:49 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
desanti4-Apr-19 6:18
desanti4-Apr-19 6:18 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
Dave Kreskowiak4-Apr-19 9:22
mveDave Kreskowiak4-Apr-19 9:22 
Questioni want to import a text file to datatable or something like that Pin
Member 142077921-Apr-19 4:41
Member 142077921-Apr-19 4:41 
AnswerRe: i want to import a text file to datatable or something like that Pin
David Mujica1-Apr-19 5:37
David Mujica1-Apr-19 5:37 
GeneralRe: i want to import a text file to datatable or something like that Pin
Member 142077921-Apr-19 21:10
Member 142077921-Apr-19 21:10 
AnswerRe: i want to import a text file to datatable or something like that Pin
Richard MacCutchan1-Apr-19 5:55
mveRichard MacCutchan1-Apr-19 5:55 
GeneralRe: i want to import a text file to datatable or something like that Pin
Member 142077921-Apr-19 21:08
Member 142077921-Apr-19 21:08 
GeneralRe: i want to import a text file to datatable or something like that Pin
Richard MacCutchan1-Apr-19 21:20
mveRichard MacCutchan1-Apr-19 21:20 
GeneralRe: i want to import a text file to datatable or something like that Pin
Member 142077921-Apr-19 21:23
Member 142077921-Apr-19 21:23 
GeneralMessage Removed Pin
1-Apr-19 21:45
Member 142077921-Apr-19 21:45 
QuestionDataGridView Mouse Hover Event Pin
Give me a break I'm new31-Mar-19 5:54
Give me a break I'm new31-Mar-19 5:54 
AnswerRe: DataGridView Mouse Hover Event Pin
mo149231-Mar-19 7:45
mo149231-Mar-19 7:45 
QuestionJust wondering it this code is safe. Thanks for input. MESSAGE CLOSED Pin
mo149227-Mar-19 2:22
mo149227-Mar-19 2:22 
SuggestionRe: Just wondering it this code is safe. Pin
Richard Deeming27-Mar-19 2:44
mveRichard Deeming27-Mar-19 2:44 
AnswerRe: Just wondering it this code is safe. Pin
Dave Kreskowiak27-Mar-19 3:02
mveDave Kreskowiak27-Mar-19 3:02 
Yeah, there's lots of problems with it.

We'll start with your assumption that the control will over ever be dropped on a Panel control. What if you accidentally drop it on a Form instead? You're code is going to throw an exception and the designer is going to show a problem that prevents rendering it and you'll probably freak out when that happens.

A control can have many different control types as a parent. Change the references "Panel" to "Control" so you can support different container controls, including a Form since the Form class derives from Control.

It's also not a good idea to rename your event handlers, specifically PChanged, to whatever is shorter. It make the code harder to read and understand without your eyes darting to the end of each line to figure out which event this method handles. Your name is also not descriptive at all. What's a "P" and what changes about it?

AnswerRe: Just wondering it this code is safe. Sorry To All Pin
mo149227-Mar-19 3:33
mo149227-Mar-19 3:33 
GeneralRe: Just wondering it this code is safe. Sorry To All Pin
Dave Kreskowiak27-Mar-19 5:28
mveDave Kreskowiak27-Mar-19 5:28 
GeneralRe: Just wondering it this code is safe. Sorry To All Pin
mo149227-Mar-19 5:47
mo149227-Mar-19 5:47 
QuestionA faster way to find an item in a bindingsource and return its index Pin
desanti26-Mar-19 14:45
desanti26-Mar-19 14:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.