Wojtek Podgorski's Q&A profile
SharePoint Products and Technologies workflow triggered during upload but after the user enters values in the properties dialog
1) When " Start this workflow when a new item is created " option is selected the workflow gets triggered as soon as the file is uploaded and even before the 'edit properties' dialog is displayed . I want the workflow to be triggered after the properties are entered by the user on upload. 2) Selecting "Start this workflow when an item is changed." option also does not trigger the workflow during upload. This triggers only when the user explicitly selects 'Edit Properties' dialog. So my question is, how to get the workflow triggered during upload but after the user enters values in the properties dialog. That didn't make any difference. I don't have a problem inputting the ...Show All
Visual C# accessing custom entity objects throughtout the project
Hi, When we define a ProductEntity class for example. If I want to use the class object myProduct in a form1 and form2 and access the properties from different forms. Let s say, first I load an mdi form mymdiForm, then I click a button that loads form1 and in form1 i click a button that loads form2 and so on.. My concern: 1- where do I instatiate myProduct object. In the mdi, or in form1 or in form2 knowing that myProduct properties are assigned from controls located in the form form2. Also I want to make sure that I can access those properties in the mdi and form1 forms and all the project Do I declare myProduct as public or friend or what Also how can I access the object myProduct and ...Show All
Windows Forms Vista Controls coming soon?
When, if ever, will VS be updated to the new Vista forms controls I have found a few add-ins on the net that will give my form that Office 2007 feel, but the last thing I want to do is purchase something that will be outdated with a service pack. I have been toying with these: http://devcomponents.com/dotnetbar/ But dont want to purchase anything if VS is going to be updated with something similar. ...Show All
Visual Basic Math Questions
This is my code I'm working with. I'm trying to use the sum from the lhGal to show in lhGal2.Text. Dim FirstNum, SecondNum, ThirdNum, FourthNum As Double 'Intial Fuel Add FirstNum = lhPounds.Text SecondNum = lhDensity.Text ThirdNum = lhGal.Text FourthNum = lhPounds2.Text lhGal.Text = FirstNum / SecondNum - 0.4 'Additional Fuel Added to bring to 1200 lhGal2.Text= FourthNum / SecondNum - lhGal I take it you are having a problem with the last line An error something along the lines of: Operator '-' is not defined for types 'Double' and 'System.Windows.Forms.TextBox'. If so... the problem is that you are trying to get your value out of lhGal differently ...Show All
Visual Basic Unloading a picture from a picturebox in VB.net
I have done some code to load a picture in an array of bytes. The data is saved in a file in the Hard drive. There is also another piece of code to display the image. My issue is that I need to unload the picture before the user press the button to refresh and therefore reload the image. Generally I would have an error when I try to download the file and save it. I will have an error that the file is being used by another process. Noticed that picturebox1.load = nothing will unload the picture from the picturebox but it will not close the file completely before going the next instructions. Checking "If picturebox1.load is nothing = true will be true and therefore there will no way to identify if the file has been closed or not. I do ...Show All
Visual Studio 2008 (Pre-release) TreeViewItem: hide item when it is the last node in the tree level
I have a TreeView and for the TreeViewItem I have created a style with a ControlTemplate in it. One of the elements is a line to connect all the tree nodes (visually, that is). But for the last node in the tree level it should hide this line, because there is no other node to connect to. The way I was thinking to do this, is to set the Visibility of the line element by using a Binding string/statement/whatever it is called: Visibility="{Binding Path=..., RelativeSource={...}}" RelativeSource should then point to a property of some sorts which tells me if the current TreeViewItem is the last node in that level. Is there such a property available Or has anyone done something like this before and knows how to do it ...Show All
SQL Server Import Column Transformation
I have a SQL Server table that has a "Text" type column. RTF files are stored in this column. On a monthly basis, new or updated RTF files are dropped into a shared folder. I need to upload these into the SQL Server table. Reviewing some of the entries in this forum, I know I probably should be using the Import Column Transformation, but for the last week I can't get it to work successfully. Another column in the table contains the unique file name(varchar). At runtime the user inputs the fully qualified path to the RTF files which I store in an SSIS variable. Within the package I use a Derived Column Transformation to concatenate these two elements and then pass them as input to the Import Column. I'm expecting the RTF file ...Show All
.NET Development Help....
Hello, If i merge a dataset with a binary deserialized dataset containing a nullable datetime field, the merged values is not null anymore. If i merge a xml deserialized dataset there's no problem. How can i merge a binary serialized dataset with nullable datetime fields Console app sample: class Program { static void Main(string[] args) { // switch this bool for testing bool datasetBin = true; DataSet ds = CreateEmptyDataset(datasetBin); ds.Tables["Test"].Rows.Add(new object[] { null }); Console.WriteLine("Value of row 0, column 0: {0}",ds.Tables["Test"].Rows[0].IsNull(0) "Null" : ds.Tables["Test"].Rows[0][0]); // serialize ...Show All
Visual C# Playing cd's with mci question
I am trying to write some code to play a CD from a drive and the user can indicate what track to play. I should be using this format, as far as I know: mciSendString("open cdaudio", null, 0, IntPtr.Zero); mciSendString("play cdaudio from 3:00:00:00 to 4:00:00:00", null, 0, IntPtr.Zero); So this would play from the 3rd track to the 4th. This does not work, it seems to start in the middle of the first track or the track that I want to paly (3). Any advice Thanks you should really stay away from using mciSendString and move on to newer better methods. Why don't you embed WMP into your application and use that to play your CD http://msdn.microsoft.com/w ...Show All
Visual Studio Express Editions Timer won't fire
I have a timer on form1 with the timer_tick set up like this: Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick teaTime = False MessageBox.Show("End timer") End Sub In a module I have: Public Sub Transition1() Form1.Timer1.Enabled = True teaTime = True Dim st As Integer = 0 Do While teaTime ...Show All
Visual Studio 2008 (Pre-release) MergedDictionaries problem
Hi! Assume I have the following style in a file called myControlStyle.xaml: <ResourceDictionary> <Style TargetType="myControl"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="myControl"> ... <Border BorderBrush="{StaticResource myBorderBrush}"> ... </Border> ... </ControlTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary> As you can see, it uses a brush called myBorderBrush. What I now want to do is to create a separate file for each color theme where each file defines an own myBorderBrush: File blueColors.xaml: <ResourceDictionary> ... <SolidColorBr ...Show All
SQL Server Question On How to get the Table object to filling blank space on page???
Greetings, I have reports which use a table object with various groupings and this table object has a footer row w/ a sub report that displays dynamic address information based on the groupings. I would like to have the address information located at the bottom of each page. Based my interpretation of following solution taken from the RDL Specification {see bellow excerpt} I have moved my table object within a rectangle object which is sized the page size but the table does not grow to the rectangle size…Can anyone tell me what I am missing here RDL Specification (2003) excerpt: Q: How can I indicate that my table should grow to fill the blank space below it (rather than preserving the blank space) A: Group the tabl ...Show All
SQL Server WHAT NEXT AFTER INSTALLING SQL SERVER EXPRESS?
I have installed SQL Server Express with Advanced Services SP1 option. I am not really sure if I should have done this but I could not resist the temptation to have as many options as I could get. I even installed some samples/sample databases. However, I cannot understand how to start using the SQL Express package which (unlike the Visual Basic 2005 Express or the Web Developer Express I also downloaded) does not show me a start up page. I get SQL Server Configuration Manager, SQL Server Error and Usage Reporting and SQL Server Surface Area Configuration, all from Configuration Tools. I have no idea how to proceed. Could I have downloaded the wrong package Ok well I'd install the tools next. You ca ...Show All
Visual Basic VB Screen Sharing
I'd like to write a program that allows me to work on my PC from other PCs in our LAN, or over the internet. (a kind of screen sharing app). I think it would be fairly easy by sending compressed images over TCP to the guest, then having the guest sending input back to my PC. So how do I: Take a screenshot Compress it to a small JPG Send it over a TcpClient connection Thanks in advance. funny I've done this! Take a look at this on creating screen shot: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=841156&SiteID=1 with that you can save it to any file format you like. to send it over tcp connection, when saving just give it the network stream/socket stream to send it to instead of the filename ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vertex Buffer question
I'm writing a small 2D engine based on sample from DX SDK. Everything's fine, but I wish to see shaders in my program. That's why I messed with Vertex Buffers. I'm a noob in D3D, so I used some tutorials to make the folowing code: (Managed DX & C#) (Creation) tex = Load(); //Load our texture Vector2 [] verticles = new Vector2 [] { new Vector2 (0,0), new Vector2 (tex.GetLevelDescription(0).Width,0), new Vector2 (0,tex.GetLevelDescription(0).Height), new Vector2 (tex.GetLevelDescription(0).Width,tex.GetLevelDescription(0).Height), }; verts = new CustomVertex . TransformedColoredTextured [vertices.Length]; for ( int i=0;i<vertices.Length;i++) verts[ i ] = new CustomVertex . TransformedCo ...Show All
