Software Development Network Logo
  • Windows Forms
  • VS Team System
  • Visual Studio
  • Audio and Video
  • Smart Devicet
  • IE Development
  • Windows Vista
  • Visual C++
  • SQL Server
  • Microsoft ISV
  • Visual Basic
  • Game Technologies
  • Visual FoxPro
  • .NET Development
  • SharePoint Products

Software Development Network >> Bahman223's Q&A profile

Bahman223

Member List

Corey Furman
Rab Lucas
OldCDude
Heinz Krug
rgreene62
jnelsonjr
Bizzeh
Abbasi
ooper
Steve Furby
Naveeeen
bslim
StarPilot
Gnanadurai
pauloschultz
adorablefaith
Netoblivion
Attila Fogel
figo2476
markdrury
Only Title

Bahman223's Q&A profile

  • Software Development for Windows Vista What happens to running workflows when the workflow is changed?

    Hello, My website uses a workflow for document approval. I was wondering what happens to running workflow instances when I exchange the workflow for a different workflow. For instance, what happens if the current state of the document is removed from the workflow Or what happens if some transitions are different in the new workflow Or is the complete workflow instance stored in the database each time and will the new workflow only be used for the new instances created after the update I hope my question is clear... Hi Urs__Eichmann, Please look at this post, it maybe contains a solution for our problems: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=708524&SiteID=1&mode= ...Show All

  • SQL Server ssis dinamic build variable

    hi, i have a global variable that is a file dir param lets say: d:\input\2006_07_18.bcp. this param supposed to be built from other 3 params i.e: day, month and year. how do i build it dinamically i need the exact syntax. i have already put the filedir param as an evaluated expression but when i try to do somthing like: @[User::Filename] + @[day] + @[month] + @[year] i get an error, although i succeed in putting only one param at its expression i.e: @[user:filename]. the question is how do i build the parameter that will b built from these 3 params in its expression. Brian, i will b happy to hear from you in regard. thx, Tomer tomerlev wrote: brian, i think i am soon t ...Show All

  • Visual C++ Getting garbage setting dialog box text

    Hi Folks; I'm trying to set the text of a dialog box with SetDlgItemText. As an example I'm trying: SetDlgItemText(hwnd, IDC_F1, "Some text"); where IDC_F1 is defined as the ID for an edit box. What I'm getting is just garbage and I thought maybe it was my font but I've set it do Courier New, size 8 which I thought was pretty standard. Maybe someone could shed some light on my sitation. OK thanks, that worked. But suppose "Some text" is actually a variable. I confess I'm new to this but I was wondering if anyone could tell me how to apply the L to a variable. Thanks again einaros. ...Show All

  • Visual Studio 2008 (Pre-release) SvcUtil in June CTP is outputting userPrincipalName element in app.config

    In Beta2, the visual studio 'Add Service Reference' when pointed to a wcf service created following information in the app.config file: <configuration> <system.serviceModel> <client> <endpoint address="http://machinename/WCFService/Service.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_MyContract22" contract="WCFServiceClient.MyService.MyContract2" name="WSHttpBinding_MyContract2"> </endpoint> </client> </system.serviceModel> </configuration> In June CTP, it changed to following: <configuration> <system.serviceModel> <client> <endpoint address=" ...Show All

  • Visual C# using controls form VB in C#

    Hello everyone, is it possible to use controls from VB like InputBox in C# projects thanks Just add the reference  "Microsoft Visual Basic .NET Runtime" to your project. you needs to import " using Microsoft.VisualBasic;" then try to access the inputbox method. For ex:- string x = Interaction.InputBox("hi","hello","nothing",10,10); MessageBox.Show(x); ...Show All

  • Windows Forms how do you suppress code from running in design mode?

    hi, i have a valid peice of code that gets executed in a load() event for a C# form when the app is executed. the trouble is, in design mode it is not valid so when i try to open the form to edit it i get the ugly pink banner error message. here is what i did to suppress this: if (AppDomain.CurrentDomain.FriendlyName != "DefaultDomain") { //design time offending code... } is this the correct thing to do thanks, scott ...Show All

  • Visual Studio Tools for Office Insert contents of a byte[] or stream object into current word document

    Hi, I am currently working with VSTO for Word and SharePoint 2007. I have extended the Actions pane to provide me with functionality to browse a SharePoint document library. Once the user selects the document from the Actions Pane (displayed in a List Box), I want to insert the contents of that document in the current document at the current cursor position. So far I have been able to read the document from Sharepoint document library in a Stream object. Where I am struggling is in inserting the contents of the stream object in the current document. Can anyone lead me in the right direction as to how to insert contents of a document to the current document I have seen examples of inserting plain text in the document, b ...Show All

  • Visual C# CS0117: 'System.Web.UI.WebControls.DataKeyCollection' does not contain a definition for 'Item'

    CS0117: 'System.Web.UI.WebControls.DataKeyCollection' does not contain a definition for 'Item' void articleshare(Object Sender, DataGridCommandEventArgs E) { articlecolumn artcol = new articlecolumn(); artcol.colid = labcolid.Text; artcol.articleid = dg.DataKeys.Item(E.Item.ItemIndex); //<--Error Line if (artcol.addarticlecolumn()) { labinfo.Text = "Sharing Success!"; } else { labinfo.Text = "Sharing Failure!"; } artcol = null; dg.EditItemIndex = -1; bindgrid(); } Hi, Item members in c# are accessed as indexers, so try rewriting the error line like this: artcol.articleid = dg.DataKeys[E.Item.ItemIndex]; Hope this helps. BR, Dimitar ...Show All

  • .NET Development OraclePermission

    I keep having this problem when I tried to run a program from another machine. {"Request for the permission of type 'System.Data.OracleClient.OraclePermission, System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."} Any comments The best thing to do is to copy it to a local drive and run it from there. Allowing programs to run from a network share is an increased security risk. If you absolutely must do so, you can modify permissions in the configuration files manually or using caspol.exe. Here's a link describing the latter: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconUsingCodeAccessSecurityPolicyToolCaspole ...Show All

  • Visual C# Learning how to call form components

    I want to read up on how to do things like.. CheckBox chk = panel1.Controls[ i ] as CheckBox; anyone has any tutorials for this Like were did you learn how to declare codes like this Also is there another way to select certain childs from a certain parents Yes a panel can hold any types of controls. In c# to test the type of the control you can use the is keyword. if (ctrl is TextBox) {...} if (ctrl is CheckBox) ... Generally more complex controls are made of other controls. for example the datagridview is made of dozens of them. Charles ...Show All

  • Visual C++ C++/CLI .NET threading model differences?

    Hi, We have a native application in C++ using several threads and criticalsections between them. We've been developing this app using VC++ .NET 2003 and has been working quite good so far. Now we must use C++/CLI as a wrapper for presenting GUI to our native app. So far things went ok with the side by side managed and unmanaged code. However our threads starts to deadlock when they reach criticalsections. At first thought we figured it was perhaps a deadlock due to same thread aquiring same mutex twice. However the way that criticalsections often work is that they allow double locking by same thread. We've been going through our code but so far there's been no indications of errors. This leads me to think that the .NET threading m ...Show All

  • Windows Live Developer Forums a weird problem with my Windows Live Messenger, help would be appreciated thanks

    I cannot paste or copy on my MSN name, but it was working before, I can copy and paste everywhere else though, wondering maybe I might have done to disable it or whats wrong cause I already tried reinstalling and etc, if some1 could help me with this it would be great thanks Hiya, i read ur post about not being able 2 copy and paste into your msn name,i have the same problem! i was wondering if u had sorted it ...Show All

  • Visual Studio Team System create automated and customized assembly files

    hi, i want to create automatically an assemblyinfo.cs file when i build a project. the file should contain some info from related requirement work-items. the file should contain data like the following: [assembly: AssemblyVersion ("1.0.0.0")] [assembly: AssemblyFileVersion ("1.0.0.0")] [assembly: AssemblyInformationalVersionAttribute("4.3.2.1")] is this possible in tfs is there somewhere a how to thanks in advance yes that is what i`m looking for. i`m not familiar with the build process. but it is a beginning. so i read more about the build process and i possibly will ask further questions. thank you. ...Show All

  • SQL Server Custom Resolver for merge replication

    Hi there! I'm trying to create a custom resolver for merge replication exactly like in the MS example . It seems to work, but only ONE time. If I change, insert or delete a record in a table the second time, the subscriber monitor comes with the following errors: Error messages: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147199411) The Merge Agent encountered an error when executing code in the 'UpdateHandler' method implemented in the business logic handler 'D:\Program Files\Microsoft SQL Server\90\COM\MyResolver.dll'. Ensure that the overridden 'UpdateHandler' method has been properly implemented in ...Show All

  • Visual Studio 2008 (Pre-release) Error in WCF course demo code - where is Httpcfg

    In the Microsoft Learning course Clinic 5137 : Introduction to Developing WCF & VS2005 I get the following error running the WCF Demo. System.ServiceModel.AddressAccessDeniedException was unhandled Message="HTTP could not register URL http://+:80/Greeting/ . Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/ LinkId=70353 for details)." Source="System.ServiceModel" StackTrace: ... I go to the above link and it directs me to use the Httpcfg tool but I cannot find Httpcfg any where on this released version of Windows Vista. With Windows Vista is it better to develop on another platform, i.e. Win 2003 and then deploy to Windows Vista Or do I j ...Show All

©2008 Software Development Network