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

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

TillmanJ

Member List

sammy chen
cdun2
Michael McBryde
WineNCheese
arby99
ProdigySoft
rs12345
FriedConsole
Rick Strahl
compjb
ro88o
Phil Winstanley ASP.NET MVP
LKeene
Paulustrious
RJBriscoe
TechedRonan
nbot
Sergey Pikhulya
ClaudiaHelpOnVSTO
Monah84
Only Title

TillmanJ's Q&A profile

  • Windows Forms Send http request without webbrowser

    Hi, How can I send http request without webbrowser and get the result Thank's Alexei Hi Alexei, one of possible solutions would be using the following code: string url = " http://www.mysite.com " ; HttpWebRequest request = ( HttpWebRequest ) HttpWebRequest .Create(url); using ( Stream stream = request.GetResponse().GetResponseStream()) { using ( StreamReader reader = new StreamReader (stream)) { string response = reader.ReadToEnd(); } } Andrej ...Show All

  • Visual C# predefined attributes

    Are there any references on the ~200 predefined attributes in .Net/C# I can't find -any- information.. Can only get references on STAThread, Obsolete, Usage, Conditional.. Is there a way to create a customized attribute interacting with the IDE such as the ObsoleteAttribute one, which underline in blue the element... In fact I want to create my own MyHintAttribute attribute in order to display in the console during the compilation phase the hint specified... ...Show All

  • Internet Explorer Development Favicon in IE7

    Hi My site uses a FAVICON, which works well in IE7. However, I've noticed that if you create a shortcut to a webpage on your XP desktop, the FAVICON is used as the desktop icon. My favicon.ico file has 2 res images of the file, 16x16 and 32x32. However, the desktop icon picks up the 16x16 version and uses that. Is there a way to make it use the 32x32 version. Or can I get windows to use a default icon. Thanks I used a binary method for transfer of a favicon.ico made at 16 x 16 px. I cannot get it to show up on my web site either. I have many of them showing up from other sites though. It works fine in Netscape and Mozilla FF. Could it be that even though the file extension is .ico it may be .b ...Show All

  • SQL Server "Launch Database Mirroring Monitor" is not an option

    Good morning all... I would like use the "Database Mirroring Monitor" to track what's going on. All three of my servers have SQL Server 2005 x64 edition installed with SP1. Server A is mirroring to Server C Server B is mirroring to Server C Following the instructions at http://msdn2.microsoft.com/en-us/library/ms365786(d=ide).aspx : On Server A and C, "Launch Database Mirroring Monitor" appears. On Server B, "Launch Database Mirroring Monitor" does NOT appear. Is there something I have to do to get this tool installed on the machine, or it is an automatic thing Thanks! Forch I suspect that by now you've figured this out but, in case it helps othe ...Show All

  • Visual Studio Express Editions Counting pixels in a region

    Yet another question.... I have a region that's made up of several shapes; some connected, some not. Is there an easy way to determine how many pixels that region is occupying I was hoping I'd find a solution in one of its methods but that doesn't seem to be the case. All of the shape information is stored in the region, you'd think it would be easy to count all the pixels in a given region. I will need to count/recount the number of pixels often so I'm hoping there is an easy/non-expensive (CPU/time wise) method for this. Because the region will contain non-connected shapes, and because the region is a solid color, would it be best to convert it to a 1-byte bitmap, then count that way Looking for any advice ...Show All

  • SQL Server Can't connect to SQL Server 2005 Express from another machine

    I know there have been many posts made on this subject; however, despite the resources available, I have not been able to get this to work! I've spent time working on this here and there over the last couple of months only resulting in frustration. I am finally posting to solicit help for my situation to figure out what is wrong with my SQL Server or firewall configuration. Two machines connected to a router, one wireless, one wired. Both have SQL Server Express and the Management Studio tools installed. From either machine I can connect to its local SQL Server Express instance. I have enabled Shared Memory, Named Pipes, TCP/IP, and VIA in the SQL Server Configuration Manager. (BTW what is VIA ) I have added sqlsrvr.exe and sqlbro ...Show All

  • SQL Server Problem installing server instance on windows xp sp2

    Hello all (sorry for the cross post, I previously posted that message in getting started) I have a problem installing a SQL Server 2005 (developper edition) on my windows XP SP2 machine. When I launch the setup, all the requirements are ok, but I'm just allowed to install client components and documentations. I can't install the database server instance. The Sql Server is downloaded from MSDN (2 iso files extracted to my HD) My machine is a P4 2.8Ghz HT with 1Gig of RAM. Thanks for your help FYI, here's the Report for the system configuration check: ------------------------------------------------------------------------------ System Configuration Check - WMI Service Requirement (Success) Messages W ...Show All

  • Visual Studio 2008 (Pre-release) Using Images and/or Accessing a ControlTemplate Item in a Custom Control

    I have a custom control with a simple Image object in the generic.xaml: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Logo_Asset" > <Style TargetType="{x:Type local:Logo_Asset}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type local:Logo_Asset}"> <Image Name="LogoImage" Source="Resources/the_image.bmp"/> </ControlTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary> The image exists in the project in the resources folder and its build action is set to "Resource". The custom cont ...Show All

  • Visual C# quick help with ExecuteNonQuery

    im using the following code to insert to database and i wish to know if it was a success but it insets into database but doesnt return the result, it just locks up. Any ideas System.Data.SqlClient. SqlConnection conn = new System.Data.SqlClient. SqlConnection ( "Server=SERVER1;Database=data;Trusted_Connection=True;" ); System.Data.SqlClient. SqlCommand cmd = new System.Data.SqlClient. SqlCommand ( "addData" , conn); cmd.CommandType = CommandType .StoredProcedure; cmd.Parameters.AddWithValue( "username" , a_username); cmd.Parameters.AddWithValue( "password" , a_password); conn.Open(); if (cmd.ExecuteNonQuery() != -1) // locks up here am i doing it right { ...Show All

  • SQL Server Need help with a query 2

    My last post was perhaps unclear. So we will start all over again. I have a table with four columns. Guid Saleid icecreamType icecreamflavour It contains several rows of icecreams 1 A GB Glace null 2 A GB Glace chocolate 3 A GB Glace null 4 A GB Glace vanilla 5 B Ben & Jerrys null If the icecreamflavour-field is null this means the sale is for all flavours. If I SELECT * FROM Icecreams WHERE icecreamType ='GB Glace' I will get four rows. I would like it to return only two: 2 A GB Glace chocolate 4 A GB Glace vanilla But in the case (id= 5) where there is no data in the icecreamflavour field I want it to return that row anyway. Select ...Show All

  • Software Development for Windows Vista .NET 3.0 and wsFederationHttpBinding changes???

    I am working through Security Token Service Samples Walkthrough for September 2005 Community Technology Preview and trying to adapt it to CTP June. What is the new configuration supposed to look like for the following chunk I took from my service sample's web.config <bindings> <wsFederationHttpBinding> <binding name='helloFederatedBinding' > <security mode='Message'> <message> <claims> <clear /> <add claimType='http://schemas.microsoft.com/ws/2005/05/identity/claims/emailaddress' /> </claims> </message> </security> </binding> </wsFederationHttpBinding> </bindings> I get the foll ...Show All

  • Windows Forms Loading data into winforms with strongly typed datasets

    I've been experimenting with strongly typed datasets and relational databases with winforms. I am wondering if there is a better established approach then the approach that I am taking to store and update data. The method that i'm currently employing goes like this: I have an mdi parent form which has mdi children. Each mdi child (for example) represents a file. That file will have a unique ID, so the file can be loaded in two ways - creating a new file or loading an existing file. The file will have misc properties made up of textboxes, comboboxes etc. So the file objects have the following properties and methods: class File : Form int FileID ; File() - basic constructor AssignID () - uses stored proc to create a row in da ...Show All

  • SQL Server TRyign to extract Top 3 records using Partitioning

    Hello, I have a table containing 3 columns Department Name, RiskScenario and Cost. I am trying to create a data extract that contains the top 3 Risk Scenarios (sorted by Cost) per Department. I tried using this sql statement in MSQuery but it doesn't work. Any ideas where I'm going wrong or if there is a simpler way to do this Select * from ( Select DepartmentName, `Risk Scenario`, Cost, row_number() OVER (PARTITION BY DepartmentName order by Cost) rn FROM 'Departmental Risks`) where rn <=3 Please help. Just can't figure this out! Meera Select * from ( Select DepartmentName, `Risk Scenario`, Cost, rank() OVER (PARTITION BY ...Show All

  • Visual Studio 2008 (Pre-release) Error using custom username/password authenticator

    Hi, I am encountering some strange behaviour implementing a custom username/password authenticator. My custom authenticator wraps the default WindowsUserNameSecurityTokenAuthenticator, but resolves the username the user provides into a domain account using some custom logic. So my custom authenticator looks something like: class MyUserNameTokenAuthenticator : WindowsUserNameSecurityTokenAuthenticator { protected string ResolveUserName(string userName) { // My custom logic here ... } protected override ReadOnlyCollection<IAuthorizationPolicy> ValidateUserNamePasswordCore(string userName, string password) { string resolvedUserName = ResolveUserName(userName); return base.ValidateUserNamePasswordCo ...Show All

  • SQL Server Activation proc failed

    Good day, I have send a msg successful,but the proc failed. I altered the proc to correct the problem in the proc. The msg are still in the queue. Is there a manual way to excute the proc again to process the msg in the q or do I wait for service broker to do it after a retry time (self recover) thank you in advance. If the proc fails (i.e. throws an exception), Service Broker will try to restart the proc every 5 seconds. However, if your proc actually did a RECEIVE which was rolled back, then the rollback handler will detect this as a poisoned message and disable the queue. You can check this by doing: select is_receive_enabled from sys.service_queues where name = 'YourQueue ...Show All

©2008 Software Development Network