short background: we are migrating from vb6 to c#/wpf. there are pieces we were simply launching via an executable from the vb6 application. the desire now is to move those controls into a library.
this migration is causing a headache when it comes to accessing the resource tree...
i solved my issue this morning.
in my worker completed event i am doing the following:
private void bgw_RunWorkerCompleted( object sender, RunWorkerCompletedEventArgs e )
{
CheckDelegateAndBuildList();
}
private delegate void ListBuilder();
private void CheckDelegateAndBuildList()
{...
hello,
i am writing up my first backgroundworker and while it seems like a great tool i am running into a wall.
scenario: we have a vb6 project that we are slowly migrating to c#. all of our new tools/windows are planned to be written in c#. so i have a class that is com accessible that...
sorry for the late reply. family is over for the holidays and all.
pwd's suggestion is the kind of thing I'm going to go with. pick up the string from the cell and handle it manually.
I did forget to mention the abbreviations are stored in an external file. so the current workaround is to...
hello all,
i have a function that replaces abbreviations in a sheet with the actual word(s) associated with the applicable abbreviation. the problem i'm running in to is which properties of the replace function to set.
code:
Sheets(shtName).Cells.Replace what:=abbreviation...
wow... really wish i had remember to post that code earlier this weeek. my blinders i had on completely missed that. i was assuming that closing the WB would do that for me. threw a disconnect from WS for good measure (assumed the WB close was good enough for this too...).
took out the...
here is the full code snippet causing me multiple headaches:
MacroPath = G.getServerFile("Update\MacroUpdate.bas")
UserModulePath = G.getServerFile("Update\User_Module.bas")
If dir$(MacroPath) <> "" Then
UpdateModule = ""
UserModule = ""...
I've been chasing this guy around for the better part of this week and haven't gotten anywhere. dilettante's code snippet was a good example and showed me where i was leaving some crumbs in my own code. even getting things screwed together as tightly i could and getting our lead developer...
sorry the late reply on this.
i tried the suggestion dilletante gave and that is closing out the background process properly.
still need to read up a little on the article tyson provided, though. when it comes to late vs early binding i am still a student for sure.
i will be trying out some...
Hello Gurus,
i've got an app that uses excel as its reporting component. in our excel templates we have a macro to execute a bunch of different stuff. when users try to "reload" an older report (reload pushes new data into an old report) we check the macro version and if required, delete it...
i hadn't actually seen that post; thanks for the read.
we have a number of big clients that have moved to 2010 64bit to handle massive amounts of information; more than i thought one of our users would ever use.
in my case here, this is a development machine i installed on so i can test if...
hello all,
today i upgraded to office 2010 64bit with much excitement. but disappointment set in when i realize MZTools does not support 64 bit office.
anyone out there know of a good tool to replace MZTools with for Office 64 bit.
if you are unaware of the greatness of MZTools you must...
solved it
solution was: book.CheckCompatibility = False
of course this is only a solution if you do not want the compatibility check to be invoked during book.save. in our case it didn't need to be checked.
CBlair
Crystal, InstallShield, branching out in other programming realms.
we use LEAD tools for our viewer: http://www.leadtools.com/ it lets you use a multitude of tiletypes and has all the functionality you would need.
not sure if its the best out there but its functional
CBlair
Crystal, InstallShield, branching out in other programming realms.
currently our application only works with XLS files. we'll be updating soon but for now if a user has a XLSM spreadsheet they have to save it back to XLS for us to populate it. thats not a problem. but when my VB6 code updates and saves a macro in the XLS a compatibility check window appears...
I am honestly not sure of that... I'm guessing the aren't? So assuming they aren't for now, how would I hide fields that I don't want other than removing them from the source data?
CBlair
Crystal, InstallShield, branching out in other programming realms.
Hello All,
I have a PivotTable that is not allowing me to hides its PivotFields.
Here is my code for the hide:
For Each Pf In Pt.PivotFields
temp = Pf.Name
If temp = "Description" Then
Pf.Hidden = True
End If
Next
When the hidden flag attempts to change I get: Run-time error...
gryph-
thats perfect. thanks for your help. there are a handful of queries where i know only one result will be returned and this works brilliantly. thanks.
-chris
CBlair
Crystal, InstallShield, branching out in other programming realms.
i am just getting into the Entity Framework stuff of 4.0 and i'm running into a little issue that is driving me crazy.
Here's my code:
var partTypeGUIDQuery = from p in ecEntities.Parts where p.PartID == pGUID select p.PartTypeID;
foreach (Guid g in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.