Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

dcode25

@dcode25
About
Posts
40
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • dispose on entity framework
    D dcode25

    ok. but should i call form1.dispose(true) or form1.dispose(false) ?

    Visual Basic csharp question

  • dispose on entity framework
    D dcode25

    i have a menu on my application.And the code in menu item to open this form is : form1.showdialog After the form is closed using x button

    Visual Basic csharp question

  • dispose on entity framework
    D dcode25

    ok maybe my question is wrong . The real situation is : i have a form with select buttons that i use to move through records.I select for example the third record and after that i close the form.If a reopen the form , the third record is selected.i don't want this situation.When the form is loaded , the first record should be selected.I know that i can put something like moveToFirst method , but i dont want this.I try to put bindingsource.dispose on closing form sub , and this has not resolved the problem.if i put bindingsource.clear() the problem is resolved. So i just want to understand the situation , after the form is closed the bindingsource keeps the records ?? Anyway , thank you !

    Visual Basic csharp question

  • dispose on entity framework
    D dcode25

    My request is for a specific situation : Entity framework created directly from existing database (sql server), A form with a bindingsource. When the form is open the code is : Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim f As unEntities f = New unEntities FaBindingSource.DataSource = f.fas End Sub What can i put on : Private Sub Form1_FormClosed(sender As System.Object, e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed f.dispose ???????????????? FaBindingsource.dispose ?????? FaBindingsource.clear() ?????????? or ???????? End Sub Thank you

    Visual Basic csharp question

  • dispose on entity framework
    D dcode25

    Hello ! have a form on vb.net bounded with a bindingsource on entity framework. when the form is closed , should i dispose entity or bindingsource?

    Visual Basic csharp question

  • problems add new record on entity framework
    D dcode25

    Hello ! i have a sql server 2008r2 database ( stu) with a table (st) with these columns : stID - identity (int autoincrement value) name - char(10) com - char(20) i have a project in vb.net 2010 , and i have generated entity framework model with the database. I have a form with a listbox and 2 textbox , and 2 buttons Addrecord and Saverecord. The listbox is bound with an object from entity (stBindingSource) and displayMember: name , Valuememeber : stID. The form is also binded with stbindingsource. ( textbox1:name , Textbox2: com) I want to add new record.The code is : ……----------------------------------- Dim stu As stuEntities Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load stu= New stuEntities stBindingSource.DataSource = stu.sts End Sub --------------------------------------------- Private Sub Addrecord_Click(sender As System.Object, e As System.EventArgs) Handles Addrecord.Click stBindingSource.AddNew() End Sub ------------------------------------------------- Private Sub Saverecord_Click(sender As System.Object, e As System.EventArgs) Handles Saverecord.Click stBindingSource.EndEdit stu.SaveChanges(System.Data.Objects.SaveOptions.None) End Sub So ,first i click to "Addrecord" , and after i fill the 2 textbox , i click Saverecord. The first record is saved with no problem.If a add another record , the record is saved , but when I open the table on database , the first record is saved 2 times , the second record is saved 1 time. I try to add 3,4… records and everytime the last record is saved 1 time the others are all duplicated If I call stu.SaveChanges() , with no parametres , I can’t add any records because I get an error : The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: AcceptChanges cannot continue because the object's key values conflict with another object in the ObjectStateManager. Make sure that the key values are unique before calling AcceptChanges. Please help me. Thank you.

    modified on Monday, August 29, 2011 9:41 PM

    Visual Basic help database csharp sql-server

  • a question for typed dataset
    D dcode25

    Thank you ! But why on internet there are many articles that describe the performance problems on typed dataset.i read that typed dataset hold an offline copy of database.Now dataset holds only the schema or with all the data ?

    Visual Basic database sysadmin question csharp

  • a question for typed dataset
    D dcode25

    Hello ! i'm new in vb.net.I have to create a project and i have a question : i'm thinking to use typed dataset.The database is on another computer in network (sql server 2008).The database has 20-30 tables and will grow not much (10-20 mb on every year) is true that the dataset keep a full copy of original database on my computer or only the database schema? ( i have read several articles but i don't understand this).is this a performance problem for my situation or no? Thank you in advance.

    Visual Basic database sysadmin question csharp

  • "waiting message" before complete loading ??
    D dcode25

    this is for whole page. i have a script in specific position on the page.and on this position i want to display a "waiting message" until the script full loads.

    JavaScript javascript tools help tutorial question

  • "waiting message" before complete loading ??
    D dcode25

    Please could you be more precise , because i'm not very familiar with javascript. My sricpt is : ---------------- --------------- ----------------- Where to put or to use readystate ? I have a animated gif "wait.gif" ? how to use this until the script is loaded ? Thank You !

    JavaScript javascript tools help tutorial question

  • "waiting message" before complete loading ??
    D dcode25

    Hello ! i have a javascript Photo Scroller in my page.But the script take some time to load.and the place on the page is empty until the script is loaded.I want to put in that place a " ...loading message" or a animated gif picture , until the script is full loaded. Can someone help me how to do that ? Thank you in advance !

    JavaScript javascript tools help tutorial question

  • hide partition from places
    D dcode25

    Hello ! i'm running redhat enterprise 5.5 on a computer with some other operating systems.I need to hide the partitions of other OS from places in linux for all users including root.What can i do ? Thank you in advance !

    Linux, Apache, MySQL, PHP linux question

  • javascript code and css inheritance
    D dcode25

    Hello ! i have a javascript widget included on my page , inside a div . But i have a problem : all the object inside widget are inheriting properties from CSS container div.The widget have same scrolling photos.When i preview the page all the photos have borders ..etc.But if i put this widget on a blank page , everythink is normal and photos have no border ( this is original widget design). Is possible to block css inheritance for the javascript widget only ? Thank you in advance.</x-turndown>

    JavaScript javascript css design docker oop

  • CDO emails lost when sended to hotmail addresses ?
    D dcode25

    thank you ! But the emails are lost , i check both inbox and Junk folder but i can't find them.If i try to send emails with the same configuration (smtp , user , password...) from outlook express the emails are received instantly on hotmail inbox. so , i think is possible to create a cdo email with the same header as outlook express email?

    Visual Basic com question

  • Sending email from ms Access using CDO , Problem ?
    D dcode25

    Thank you ! But i want to send email from inside my application without open outlook window.I have all the information like SMTP server , username , password , smtp port ...etc.so what's wrong with CDO ?Is CDO usable or not ?

    Database help database com question announcement

  • CDO emails lost when sended to hotmail addresses ?
    D dcode25

    Hello ! i'm using CDO to send email from my visual basic application.Everything is ok when i send emails to yahoo etc, i have problems only when i send emails to hotmail.com addreses.These emails are never received , are lost. What can i do ? Thank you in advance.

    Visual Basic com question

  • Access 2003 disable popup messages
    D dcode25

    Thank you ! I try this but doesn't work.

    Database help

  • Access 2003 disable popup messages
    D dcode25

    Hello ! i try to use the command DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Works just fine. I want this process to be automatic and hidden from the user, but a window pops up with a "Cancel" button. I don't want to allow the user the cancel option, and I'd prefer to have that pop-up window be invisible. Can I do either of these things: 1. Prevent that window from popping up (or make it invisible) in lieu of that, 2. Change that popup window to have no Cancel button. Help me ! Thank you in advance.

    Database help

  • Sending email from ms Access using CDO , Problem ?
    D dcode25

    Hello ! Thank you for your response. Is the same thing with gmail, hotmail , yahoo and with other domains.The emails are too slow ore never received.Another thing that i notice today is that mos of CDO emails that are received , are marked as spams.When i send emails with the same accounts but not with CDO everything is OK. What can i do ? Thank you.

    Database help database com question announcement

  • Sending email from ms Access using CDO , Problem ?
    D dcode25

    Hello ! i'm developping an ms-access database , and i need to send emails with attachment.i use CDO to send emails. this is my code : ------------------------------------------------- Dim cdoConfig As Object Dim msgOne As Object With cdoConfig.Fields .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.mail.yahoo.com" .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "myusername" .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mypassword" .Update End With Set msgOne = CreateObject("CDO.Message") Set msgOne.Configuration = cdoConfig msgOne.To = "adress@hotmail.com" msgOne.From = "myusername@yahoo.com" msgOne.Subject = "test" msgOne.TextBody = "this is a test" msgOne.AddAttachment "c:\test.txt" msgOne.Send ------------------------------------------------- The code is working but only sometimes.So i send email , no error is displaying , but the email is not received , or in rare cases the email arrive after 3-4 hours or more.but in 30 emails sended only 1 or 2 arrives. Is very strange because i don't get any error message. Can you help me ! Thank you in advance.

    Database help database com question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups