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

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

jschroeder

Member List

umer riaz
tviel
TkNeo
Tom25
bonni
Helan
Philipp Konradi
MariamCR
RafaDom
Rhubarb
Benin
Alessandro Camargo
Ricky Pusch
Xcel
forrestcupp
dima_ua
Rusty Trawler
DannyRC
Kevin Dente
CSharpShooter
Only Title

jschroeder's Q&A profile

  • Visual C# Getting shortcut properties

    Is it possible to get the values of properties from a shortcut that launched an application I've created a shortcut for an application and after right clicking on it and selecting "properties" I can see there are several items in the "shortcut" tab. What I'd like to be able to do is get the value of "Run:" in the application, so I could get it to start either normally or minimised. Is it possible to read these values Thanks, Stu Check this thread for code that uses Shell32.dll to manipulate a .lnk file. You'd want to create the shortcut in the Startup folder: string path = Environment.GetFolderPath(Environment.SpecialFolder.Startup); To set the window state for the appli ...Show All

  • Visual Studio Express Editions how to use a custom cursor (.cur)

    I have made a .cur file and have embeded it in my.resources so I can easily acess it from in my code but I don't know the correct syntax. Whatever I try never works. Can someone please tell me the few lines of code I need to use my cursor Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim Cur As Cursor = New Cursor( "c:\windows\cursors\pen_rm.cur" ) Me .Cursor = Cur End Sub ...Show All

  • Visual Studio How to integrate custom DSL with Class Designer?

    Hello, at PDC 05, Jochen Seemann demonstrated that a custom DSL can be integrated with the Class Designer that is part of Visual Studio 2005. I'm doing a quick research on this topic but found no good resources. Can somebody please point me to the appropriate documentation or samples I would be very graceful. Thank you, Borek Hi Borek, What do you mean by integrate Do you mean make a reference to Class Designer metamodel elements or something else I'm interested too in using in my DSL metamodel SDM domain classes, for instance. What I know that there is at least two problems: Class Designer and SDM are based on first version of DSL, it means that ModelElement classes are different in current version of ...Show All

  • SQL Server Query the results of another query

    I'm new to the database world - I know what I want to do, but not sure if or how to do it... Is there a way to run a query and then build on it to query the results of that query My example is as follows: Query the number of distinct machines by ID in Week 1 = Results Query the distinct number of machines by ID in Week 2 minus the Results from Week 1 - NOT EXISTS SELECT pub_name FROM publishers WHERE NOT EXISTS (SELECT * FROM titles WHERE pub_id = publishers.pub_id AND type = 'business') - Use NOT IN SELECT pub_name FROM publishers WHERE pub_id NOT IN (SELECT pub_id FROM titles WHERE type = 'business') - Perform a LEFT OUTER JOIN and check for a NULL condition SELECT pub_nam ...Show All

  • SQL Server Usage-Based Optimization

    Hi all, Im working on AS 2005. The users will use Excel 2003 pivot table to query cubes. The performances look fine so far but I read that the Usage-Based Optimization is a powerful feature from AS 2005. Do you think it will be a good idea to implement this optimization Regards, JL Yes, I know - I find myself cutting and pasting aggregation definitions on an all-to-regular basis nowadays. My point is that designing aggregations manually isn't something you should have to do except in very rare circumstances, and certainly not if all you want to do is use the Usage-Based Optimisation wizard. ...Show All

  • SQL Server SQL Server 2005 Log Shipping Query

    Hi, I have setup Log Shipping with SQL Server 2005 for my company's PRD database. Everything works fine till 6:30 AM of the next morning. At 6:30 AM the Log Shipping job fails with the error (*** Error: BACKUP LOG cannot be performed because there is no current database backup). Does this mean that I have to configure the job for doing full database backup daily in morning followed by Log Shipping process. Please clarify. I am using the Transaction Log Shipping tool in SQL Management Studio to configure Log Shipping. I did not find an option to backup the full database daily in there. The Log shipping process backs up the full database only once in the beginning. Also why the jobs fails exactly at 6:30AM daily. Any particul ...Show All

  • Visual Studio Express Editions How do I share my program or database?

    I have build a database program using C# and installed on my computer. How do I share it over the network with other users to have access to this program to beable to search, insert, and update just like I'm doing it on my computer. What will required on the other computer over the networks I don't know how to build a server or client program for this. Hi Ubon94, When you write your connections string for your Database you will have to change the string from whatever it says for your local machine, to a shared location for example \\ servername \ sharename you will also have to make sure that the database is in that shared folder. Scott ...Show All

  • Visual Studio 2008 (Pre-release) Customizing WPF DataTemplates....

    I have defined a dataTemplate as follows: <DataTemplate x:Key="photoTemplate_Small"> <Grid Width="Auto" Height="Auto" x:Name="Grid" Margin="10,10,10,10"> <Grid.ColumnDefinitions> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Margin="0,0,0,0" Width="Auto" Background="sc#1, 1, 1, 1" x:Name="Border" BorderThickness="0,0,0,0" CornerRadius="8,8,8,8"> <Image Source="{Binding Path=ThumbNailPhoto}" Width="100" Margin="5,5,5,5" x:Name= ...Show All

  • Windows Forms OnSizeChanged called twice when changing the property Size on a UserControl

    Hello! I have created a UserControl and load it in the constructor of a Form. UserControl c; public Form1() { System.Reflection. Assembly assembly; assembly = System.Reflection. Assembly .LoadFrom( "File with UserControl" ); Type t = assembly.GetType( "The type of the Control" ); c = ( UserControl ) Activator .CreateInstance(t); c.Location = new Point (0, 0); Controls.Add(c); } I then set the Size of the control doing something like this: int NewHeight = System. Convert .ToInt32(textBoxHeight.Text); int NewWidth = System. Convert .ToInt32(textBoxWidth.Text); c.Size = new Size (NewWidth, NewHeight); In my UserControl I have the eventhandler ...Show All

  • SQL Server Some strange behavior with parallelism

    Hi, In my package I have a source, a script component to make some changes to that and a destination. To speed up the process, within a data flow, I have created 6 copies of the above components and running them in parallel. Each source takes different set of data. I have divided the data using the record no such that, each set will read 1million records. Now, my question is, though each pipleline is supposed to process exactly 1million records, they are not running at the same speed. For example, 1 pipeline completes processing all 1million records whereas another pipeline processed only 250000 records in that time. I don't see any reason for why one should run slow while another is running fast considering that both are doing the s ...Show All

  • Software Development for Windows Vista How do you host WWF 3.0 as a webservice (instead of using ASP.NET as a host)?

    Tom/Vihang/All WWF Gurus, Can someone please provide an example of how to host WWF 3.0 workflows as a webservice, instead of using IIS (ASP.NET) to call and host XOML only workflows Tom has provided examples of ASP.NET hosting and calling XOML only workflows (using tracking and persistence). I need to do the same with a centralized web service. The labs provided with WWF 3.0 are very similar to WWF 2.0 labs. I cannot find any examples that offer samples on how to host workflow runtime services via a webservice that can be consumed by one or more websites (on one or more webservers). MS suggests using a centralized webservice to host workflow runtime services, instead of using IIS. Unfortunately I did not find any code examples (I ...Show All

  • Software Development for Windows Vista TransactionScope, State Machine, and Oracle DB

    Background: I have a web app (ABC), a state machine workflow (XYZ) and using Oracle DB (ORA). ABC is using ORA using iBatis.Net, which uses Microsoft's provider for Oracle (and not Oracle's ODP.Net). ABC also uses XYZ to store the states of its transaction. XYZ only contains states and events, there are no codes inside. Problem: In one page of ABC, there a process who do the following: - update table 1 - insert table 2 - send event to workflow XYZ to move from state X1 to state X2 - update table 3 All these steps are within TransactionScope. The problem is, if the transaction fails (let's say, update table 3 fails), the entire transaction is rolled back EXCEPT for the workflow. The state of the workflow is still X2, not rolled-back to X1. ...Show All

  • .NET Development differnce

    Hi, In the web service context,HTTP is used to transport SOAP messages i.e SOAP over HTTP. Then What is the difference between HTTP Protocal and SOAP Protocal Thanks in advance. This question could be answered in a book.. and in fact it has been. http://www.amazon.com/gp/product/0735621624/002-2125527-8248817 v=glance&n=283155 Not a fun read. A shorter answer: They are both in the Application Layer of the OSI model; however SOAP extends HTTP messages even further. HTTP is a Application protocol resulting in GETS, POSTS and PUTS HTTP might issue this statement to get a file: GET index.html HTTP/1.1 or POST file.asp var=value SOAP extends this and makes the POST statement even more rigid: All HTTP POSTS and its response mu ...Show All

  • Visual Studio 2008 (Pre-release) Import of a Signed SAML assertion in SamlAssertion class (May CTP)

    Hi, I have developed a STS on a device that generates a SAML Assertion which is signed. I have checked this XML assertion with an original created by WCF with the same parameters. I'm willing to use this SAML/RSTR using a WCF proxy but I'm building the RSTR/SAML without using a .NET framework on PC, so I cannot use any class of WCF to build this RSTR/SAML, I get a XML text representation. They perfectly match (Digest and Signature are perfectly the same). I can import this SAML when it's not signed in the SamlAssertion using ReadXml method, then I had the SigningCredential and it works perfectly. However if I import the same way the Signed XML it is imported but the RSTR built with this SAML is rejected by WCF. I found out ...Show All

  • Visual Studio Express Editions binary

    I know you can convert a string to hexadecimal using the Hex() function but is there one to convert a string to what it looks like in binary Public Class A2SB Private Function BCon(ByVal InputValue As String, ByVal InputBase As Long, _ ByVal OutputBase As Long) As String Const csValidChars As String = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" Dim cuOutputCharCount As Decimal, lInputCharCount As Long Dim lCounter As Long, sCompareWith As String, sChar As String Dim dDecimalChars As Double, lPos As Long, cuBitValue As Decimal Dim cuDecimalValue As Decimal, sOutput As String On Error Resume Next If (InputBase < 2) Or (InputBase > 36) Then BCon = "" Exit Function ...Show All

©2008 Software Development Network