Posts

best way to save a value in C# App

i wondering whether better save value in global variable or save in invisibale label on c# windows application , retrieve whenever needed. and question have sql conneciton. have form during form_load, calls 6-8 functions from classes. in each function, sql connection opened and  closed. i'm kind of concerned memory management , speed of application. read somewhere better not pass sqlconnection ref funciton. best way implement this?   thank you,   thanks responses. helpful. sqlconnection, still i'm little bit confuse. imagine have 2 classes , call method form_load: ...form_load(...) class1.findname(); class1.findlastname(); class2.getinfo(); and in each method open , close each connection: sqlconnection1.open(); using(sqlconnection1) { ... } i'm calling 3 functions, different instances of sqlconnection opened , closed 3 times. connection string same i believe sqlconnection pool take care of still doesn't me. suggestion? does hav ...

ICeeFileGen deprecated

i noticed in documentation, http://msdn2.microsoft.com/en-us/library/ms404463.aspx , that iceefilegen has/will deprecated in future.  what should using, unmanaged compiler code, create pe files?    dave.net   microsoft wrote: after discussing clr team, confirmed interface deprecated in .net3.0, can use in .net 2.0 without any problems. many compilers using (c#, vb, j#, ...), not going disappear anytime soon. assume in .net3.0, there workaround interface. .NET Framework  >  Common Language Runtime Internals and Architecture

Difference between vb arraylist and c# arraylist

Image
is there difference  between arraylist in visual basic , arraylist in c#?  i had convert c# code vb , there call make in third party api requires me pass in an arraylist.  when in c# works fine, when in vb, vaque exception api.  ideas? hi beto363, thanks posting in msdn forum. this specialty forum visual studio tools office issue. recommend post in c# forum or vb.net forum better support. have day, tom tom xu [msft] msdn community support | feedback us Visual Studio Languages  ,  .NET Framework  >  Visual C#

referencing .net 1.1 3rd party component from .net 2.0

if reference .net 1.1 component .net 2.0 project 1.1 component run on .net 2.0 clr? cause compatibility problems?   thanks yes, 1.1 component run 2.0 clr.  there's possible compatibility problem although pretty unlikely.  check out full list of breaking changes between 2.0 , 1.1 .NET Framework  >  Common Language Runtime Internals and Architecture

relative path in App.config

i have following entry in app.config , use relative path. if use absolute path works fine. < enterpriselibrary.configurationsource  selectedsource = "file configuration source" >       < sources >          < add  name = "file configuration source"   type = "microsoft.practices.enterpriselibrary.common.configuration.fileconfigurationsource, microsoft.practices.enterpriselibrary.common"           filepath = "..\myproject\entlib.config"   />                </ sources >      </ enterpriselibrary.configurationsource >     and got error: 'microsoft.practices.enterpriselibrary.logging.logger' threw an exception. --- >   system.io.filenotfoundexception: the configuration file d:\develop\platforms\microsoft visual studio 9.0\common7\ide\..\myproject\entlib.config  how set relative path in app.config thanks in advance, tom no, sorry, there nothing. when run program, it's not project anymore - it's progra...

Control Scanner with WIA in C#, which property is necessary and some is not necessary?

im learning wia control scanner. but found there lot of properties, , want fast use. does have experience on part? thanks. easiest use wia.commongdialog: wia.commmondialog wiadlg = new wia.commondialog(); wia.imagefile imgfile = wiadlg.showacquireimage(wia.wiadevicetype.scannerdevicetype); Visual Studio Languages  ,  .NET Framework  >  Visual C#

can't save a file to a biztalk 2013 receive location while it is in enabled state

hello, i facing wierd problem.  i want put file in receive location used biztalk (shared folder). i have application generate csv fil , save sharred folder used biztalk receive location. when receive location enabled, can't not save file in shared folder :  you don't have permission  when disable receive location, can  save file in shared folder. have  this problem receive location/shared folder any idea!! sounds application creating file, closing it, trying re-open write it, in mean time biztalk picking file , deleting it. you need save different extension, .csvx, when written file rename .csv bill chesnut | biztalk server mvp | mexia consulting | melbourne australia http://www.biztalkbill.com | http://www.mexia.com.au please indicate "mark answer" if post has answered question. BizTalk Server ...