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

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

Diango

Member List

guyinkalamazoo2
SQLBOY36
Drksrvnt
Gautam Vaid
mdthanh
lurch_man
Dr.Pepper
tsingleton
jkirk
SnakeSV
js123
Naolin
arro239
Spenceee
dbldown768
a.d.m
GTH
barkest
TechNoFear
ivj
Only Title

Diango's Q&A profile

  • .NET Development WebClient.DownloadFileAsync method

    Hi, I wrote a program that need to download on demend a file from a given url. I built a download form that gets the url and the file path to save and it shows a progress bar. The path and filename are given to the form on the c'tor and the download itself starts when a method is being called. Here is the code: (It is written in VS2005 beta 2) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.IO; using System.Diagnostics; namespace TechnoTask.View {     public partial class DownloadWin : Form {         private String url;     ...Show All

  • Visual C++ passing and returning arguments to functions

    for the life of me i dont know how to make this work in Managed C++. what am i doing wrong ref class Test { public : static void testFunc(String^ buffer) { buffer = "altered" ; } }; int main( array <System::String ^> ^args) { Test^ testClass = gcnew Test(); String^ buf = gcnew String( "some string" ); Console::WriteLine( "before {0}" , buf); //should print "some string" testClass->testFunc(buf); Console::WriteLine( "after {0}" , buf); //should print "altered" return 0; } You need to pass the handle to the String by ref ...Show All

  • .NET Development Web Service Reference not correct for WCF service

    I have a WCF service that has an operation signature that returns a boolean and has a complex type as the ONLY input parameter. public bool PublishRequest(PublishMetaData request) When I add a reference to this via Add Web Reference in a web application, the resulting operation has a different signature, it now returns void, and has three parameters, one of which is the complex type as before, but the other two are being set as "out" booleans one name <MethodName>Result and the other <MethodName>ResultSpecified. public void PublishRequest(PublishMetaData request, out bool PublishRequestResult, out bool PublishRequestResultSpecified) Is there any reason why it should do this and not just hav ...Show All

  • SQL Server Dynamic Logging Properties in MS SQL DTS packages

    Since I can't seem tofind the Microsoft SQL 2000 forum, I will post this here: I currently have logging enable on several of my packages. However, we are still in development of our packages and are reaching upwards of 100 and logging will eventually need to be active on all of them. In production, there will still be a development server and a production server, both with different server names and user id/pwd. I am looking for a way to dynamically change the logon information for the logging so that we do not have to have someone go through and manually change the options. I have tried using Dynamic Properties Task, but this only works on the 2nd run of the package. ----- As a second question: can anyone explai ...Show All

  • Visual Studio Express Editions Using button to browse a image file and load into database

    Hi im a begineer. the following is what I do. I created a database table and 1 of the field i put it as varbinary(MAX) let call this field "SmallPhoto" I drag the picturebox from the toolbox to my form1 and i drag a button to my form1 too. Now I need to configure that when i click on the button i can open an explorer to search for an image file and load into the picturebox, and click on the save button to save this image file to the database. Please advise how to do it as i am running out of idea. yep, lastly i had been watching the video clip from visualstudio.net for solution too... thanks in advance Sorry, where are you doubleclick this :-) This is code for VB.NET, I am sure you know. what date format are you aft ...Show All

  • .NET Development string.format problem

    i want to write a string to the label..and the output must be like this: soner altin 25.12.2006 14.53 kemal yilmaz 26.12.2006 14.55 ....... ...... ...... name=max 22 chars date=10 chars and hour=5 chars and so on.. how can i make this format this method does not work! label1.Text=String.Format("{0,-22}",name)+date+" "+hour+"\n"; label1.Text+=String.Format("{0,-22}",name1)+date1+" "+hour1+"\n"; output of the above code is like this: soner altin 25.12.2006 14.53 kemal yilmaz 26.12.2006 14.55 i need to parse pixel for each member (i mean name,date,hour) in the label.can i use label like form is it possible The output that must be... soner altin 25.12.2006 14.53 kemal yilmaz 26.12.2006 14.55 And the output tha ...Show All

  • .NET Development Dataset to Xml file with sub nodes

    Hi, I am trying to write an XML File in the following format <xml> <Person> <Name> <FName>John</FName <LName>Philip</LName> </Name> <Address> <Blk></Blk> <Unit></Unit> </Address> <Sex>Male</Sex> <Age>33</Age> </Person> <Person> <Name> <FName></FName> <LName></LName> </Name> <Address> <Blk></Blk> <Unit></Unit> </Address> <Sex></Sex> <Age></Age> </Person> </xml> I have a dataset (dataset schema) with multiple tables. Table 1 with Person information, Table 2 with Name information, and Table 3 wit ...Show All

  • Visual Studio Express Editions Problem downloading visual basic

    I recently restarted my system, which had visual basic 2005 express edition, and i downloaded it with no problems. However, when i restarted the system and tried to download Visual Basic or Visual C++(from http://download.microsoft.com/download/C/E/3/CE3EB81B-12FE-4503-A566-0E0F49E4A5ED/vbsetup.exe ), nothing happens. I mean, it is a completely blank screen, and no download dialog appears. I tried to right click-save as, but the file was an html file. When i viewed the source, it just shows the <html> and a couple of other tags, none download related. I have internet explorer 7 beta 3, and i downgraded to 6 and temporarily disabled pop-up blockers and firewalls, but it still didnt work. What could be the problem ...Show All

  • Visual C# Picking at random, with varied probabilities

    One part of a program that I'm writing requires me to pick an object at random out of a collection. Each object has a different weight (probability), currently stored as a Double, associated with it, and the number of objects varies. The total probability, 1.0, is equal to the sum of the weights of all the objects in the collection. Is there a commonly used, efficient algorithm for picking random objects in this situation Currently, the only one I can think of (and this is pretty tedious): Load the keys and weights of the collection's objects into structures inside an ArrayList. Sort the ArrayList in ascending order, by weight. Add on another value (CumulativeWeight) to each structure that represents the sum of all the weights up to and ...Show All

  • .NET Development Problem calling Scalar-valued Function

    Why can't I call a Scalar-valued Function stored on a SQL2005 server from a VB.Net program The member function System . Data . SqlClient . SqlCommand.ExecuteScalar () returns "nothing". Yet when the function is excercised from SQL Server Management Studio, it returns the expected value. I have included below a VB procedure which demonstrates the problem by creating, calling, and removing a temporary scalar-valued function on some Server2005 instance. I have tested this against both SQLexpress2005 and a full SQLserver2005 installations. For the function creation code to work, you may have to set project references to Microsoft.SqlServer.ConnectionInfo, Microsoft.SqlServer.Smo. Imports System.Data.SqlCli ...Show All

  • Visual Studio How do you get a report to automatically generate?

    I created a report in standard table format. Part of the report contains a parameter search box. However, when the report page comes up, it is always blank until the user hits "view report" or inputs and parameter and searches for it. Is there any way to have the program automatically bring up all the data in the report from the jump This is driving me crazy. Any help is appreciated. LU ...Show All

  • SQL Server How to identify Memory Leak caused by bad written stored procedures?

    Does anyone has experience in monitoring Sql server memory leak I am suspicious of some of the user stored procedures causing the memory leak. Can anyone who has such experience explaine how to find the offened stored procedures Thank you very much for any kind of suggestions and recommendations! Unless you're talking about extended stored procedures, then stored procs themselves don't have memory leaks as such (like normal code), however, they may be doing things inefficiently, or you may have missing table indexes. The best way to start is to use the SQL Profiler tool to monitor stored procedure execution and look at the duration field. If you capture results to a table, you can then select the slowest queries by orde ...Show All

  • SQL Server why won't this work? select stmt

    select uid, OrderID, Count(OrderID)As DupCnt from OrdDetails group by uid, OrderID having count(OrderID) > 1 this returns no rows, can't I show another column to identify which uid goes with the dups, I did it before and now it doesn't work, probably something silly I'm missing. thx, Kat Hi Joey, The problem is that UID is an identity column and it doesn't look like it will work that way. It is the same dup questions I had before. Since UID is unique, it looks like I can't do it this way. Still Learning Had another MS interview on the phone. They are really looking for people ramped up on reporting services... guess what I'll be doing from now on! thx, Kat ...Show All

  • Software Development for Windows Vista Freeze and Crash

    I try and start cardspace. My computer freezes. I hit the shutdown button on the front of my computer and boom unfrozen but its shutting down. System is a AMD 2800 on xp sp2(oem). Thank you. 1st error An error occurrred while accessing the card collection. An invalid file path was specified.     Additional Information: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at Microsoft.InfoCards.Diagnostics.InfoCardTrace.BuildMessage(InfoCardBaseException ie) at Microsoft.InfoCards.Diagnostics.InfoCardTrace.TraceAndLogException(Exception e) at Microsoft.InfoCards.Diagnostics.InfoCardTrace.ThrowHelperError(Exception e) at Mi ...Show All

  • .NET Development Joined tables, update database with many rows, What is Best Practice?

    I have 3 tables(A, B, and C): A and B have identity fields and C is an associative table with each row referencing back to the identity of A and B. To better describe the tables, A will represents objects, B will represent predefined items the object can have, and C will contain any object/item relationship. I will then have a data grid displaying a handful of objects and the items that could be set. Items already configured for an object will display with a check box, and the rest will be unchecked. When a new association is set, a row will be inserted into table C. When an association is un-set, the row will be deleted from table C. Let's say the situation is like this: initially one object in A has 20 items set, and another object has n ...Show All

©2008 Software Development Network