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

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

AYK

Member List

JavaBoy
In Over My Head
Roozbeh Sharafi
NeCrom
mig16
Tryin2Bgood
gisgeezer
T.Gunaseelan
Daniel Schlößer
Jamie Thomson
Alan M.
Hussain Saffar
vish2007
volleynerd
chaza
RoxaneKouassi
kimhoskin
Little Duck
pritha
tkroll
Only Title

AYK's Q&A profile

  • SQL Server Parent Package Doesn't Recognize Child Settings

    I have two issues: I have a simple parent that uses an Execute Package Task to call a simple child package. The child package has a Data Flow that I disabled. When running the child package by itself, the data flow task is bypassed. When running the package via the parent the data flow task executes. Second issue is when you disable the package configurations in the child, the parent doesn't recognize that it's diables and tries to load the configurations. It's almost like there are some settings in a child that get ignored by the parent Anyone else experience this thx ...Show All

  • .NET Development How to add ports to windows firewall by script

    Hello guys, I'm not sure if this is the right place to ask for this but I'll do it anyway :-) How may I add ports (to open them) to the windows xp firewall by script Would be nice to have a script that I might run without any copilation, but vb.net is fine, too. Thanks a lot for any suggestion! Regards, Fabian I think this is more of a Windows question than a .NET development question. Having said that, tried this http://www.activexperts.com/activmonitor/windowsmanagement/scripts/networking/windowsfirewall/   http://www.knoxscape.com/Upnp/NAT.htm you may also wish to look at the netsh command line utility http://www.microsoft.com/resources/documentation/windows/xp/all/pr ...Show All

  • Visual Studio Express Editions How do i stop people entering text instead of numbers ?

    I want to be sure that users only enter numbers into a particular textbox. Please keep answers simple, I've only been learning for 5 days. There are several ways to accomplish this here is a very simple means....However you would have to make exceptions for the backspace/delete/ or other control keys Private Sub TextBox1_KeyPress ( ByVal sender As Object , ByVal e As System . Windows . Forms . KeyPressEventArgs ) Handles TextBox1 . KeyPress If Not IsNumeric ( e . KeyChar ) Then e . Handled = True End If End Sub ...Show All

  • Visual Studio Express Editions I need help. I am going to try to explain this a best as I can.

    I am creating a webbrowser, and I have a question that I have been trying to ask, but knowone seems to understand. I am going to explain this question as best as I can so you guys can answer me. I created a web browser, and if you try to "open a link in a new window" with it, it opens the link with Internet Explorer. How do I fix this In your application (browser) you need to handle the NewWindow3 event and take the appropriate action. You can find mor information here: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/events/newwindow3.asp Hope this helps, ...Show All

  • SQL Server Return Code RC in Query Analyzer

    Hi, I've created a stored procedure which inserts values into a table and upon successful execution the RC column gets returned along with the Identity value (I'm using SELECT SCOPE_IDENTITY()), but I don't want the RC column, I only want to get the Id number of the current row. I'm doing this using the Query Analyzer. Is there a way to suppress the RC column I have run the same query on different servers and the RC col doesn't show up. I only want the ID value to put into an ASP.NET page. While testing different query methods from ASP.NET (Output parameter, Return_Value, etc) did I set a flag within SQL Server Sincerely, Fred Try: return <needly value> For example: return SCOPE_I ...Show All

  • .NET Development Determine percentage of rows looped through

    Hi, Given a statement like: for (int rowPos=0; rowPos<NoOfRows; rowPos++) is it possible to determine rowPos as a percentage of NoOfRows, or better yet, do something programmatically whenever rowPos is a 10% multiple of NoOfRows Obviously throwing away any decimal places and messy things like that. Thanks! In terms of getting the raw percentage without any decimal values all you need to do is a little division and conversion:       int percent = ( int )((( double )rowPos / NoOfRows) * 100.0); As for counting in 10% increments... one way to do it would be to do a little math to cause you to lose the ones place of the number:       int rounde ...Show All

  • Visual C# how to use DisplayMenber in DataReader?

    I am using the dataReader but I want to store the ID in something simillar to the ValueMember... in the datareader i can just do Items.Add which will add the text to the combobox but i need to add an ID to each item to use when saving to the database just like what i am doing using the ValueMember ...Show All

  • .NET Development Generating random numbers and Retreaving them in other forms in C#

    I admit it, this probably has been answered half a google times before in other threads, but I have not been able to find exactly what I'm looking for. I'm trying to make a rpg (hence the need for a number generator). But, I need to be able to have the spread of the nembers to be between 1 and 20, for example. Then, I need to call these numbers latter on. Obviously I'm learning the language and trying to modernize myself (I've only worked with QBASIC beore!) Can anyone help Oh yeah, I should mention that a psudorandom number would suffice. -Using the System.Random.Next(1,21) method- I need to generate a random number as variable Strength (Str) from 1 to 20 on the click of a button (button7) as we ...Show All

  • Visual C++ Using Windows API with managed code

    I am trying to read data from a Tape using the Tape Backup functions in Win32 in managed code. The problem is that the only function that I can find thah will read data from tape is ReadFile(), whose 2nd argument is an LPVOID. The buffer that I can use to store the tape data is an array<Byte>^ type, thus I need to convert the managed Handle ^ to an LPVOID. I tried using PInvoke, however the MarshalAs:: has no such type, LPVOID, among its parameters to convert. Does anyone know of a solution to this problem You can use pin_ptr ( http://msdn2.microsoft.com/en-us/library/1dz8byfh(VS.80).aspx ), to create a buffer usable by the unmanaged subsystem. I would think that there are alternative ways to read from tapes, ...Show All

  • Visual Studio 2008 (Pre-release) SQL Stored procs and LINQ

    I just heard about LINQ the other day so excuse my total ignorance but ..... if I can use, what used to be called "in line" sql, in my VB code, won't performance suffer compared to if I executed the same sql from a stored proc (From what I understand, LINQ uses remoting so the apparent client-side code actually runs on the sql server, but a database stored proc is pre-compiled and cached. I don't know if LINQ code is). TIA, Barkingdog For simple CRUD operations, performance isn't really much of an issue comparing ORM and SP (assuming the ORM uses parameterized SQL). As far as SQL server goes, the execution plan of both parameterized SQL and SP's are cashed similarly and thus perform ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Udder Assault XNA Warmup Submission

    When you get done with you game and sumbit it, crow about it here. A little over 24 hours left until the deadline and I'm so amazed I'm done, so much better than college Thanks to ZMan for his help, good luck all. I'll post the source code for my submission once the deadline hits. Bill Finished mine at about 1am PST last night. It's called SolarBall and it's basically like a two-man space soccer. After I've had a nap, I'll post the binaries if anybody's interested. I'm really looking forward to seeing everybody's entries. Two weeks is a very short amount of time to develop a game, even a simple one, but XNA seems to have brought back alot what it set out to do: the one man coding furiously alone in his bedroom. ...Show All

  • Visual Studio 2008 (Pre-release) Bug in Image and Media Element

    I've been reporting this bug for a year now..... If an ImageControl or MediaElement does NOT have its source property set, then the Width, Height, ActualWidth and ActualHeight properties are not accurate for those controls.... Please Fix! Thanks Ron @ Mobiform I can explain the thinking behind the Image and MediaElement behavior. I do not say current behavior is the only possible solution but it makes sense. Image may have 2 sets of W/H - the one that user sets on it and the one that gets computed when Image with certain aspect ratio will scaled to fit the user-specified W/H. The scaling behavior depends on Stretch and StretchDirection properties. Basically, if you have an image tha ...Show All

  • Visual Basic create key/value pair for filename/path_filename to use in combobox.

    What is the best way to create a key value pair for a filename and filepath with filename. 1. Obtain files within a directory for a known suffix (eg. html) 2. Set variable to filename only using GetFileName() 3 Add filename to Listbox, ComboBox, etc. 4. When user selects FileName, use value (path and filename c:/xxx/xxx/filename to use as argument for Process.Start(PathFileName) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For Each filePath In IO.Directory.GetFiles(path, "*.html", IO.SearchOption.AllDirectories) Dim fileName As String = System.IO.Path. GetFileName ( filePath ) ListBox1.Items.Add( filePath ) Next filePath End Sub Priv ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Spare 360 power supply to help with XNA development

    I have to move my xbox from the tv room to my computer room for doing XNA development - probably the same story for many of you here. So I figured I would just buy a second set of cables so it was easier to move - I can find the video cables all over but there appears to be no way to get a second power supply. There's a couple on ebay but they want $120 with shipping which seems a little much. So what is the magic search voodoo to find a spare one at a reasonable price. i do whireless i my place all include my coffe maschine is wireless conected so i just send a command to the coffe maschine and it make coffe if i rember to put the coffe in the container so i deploy wireless just rember to shot off your microwave good ...Show All

  • Visual Studio Tools for Office Email Address of the Current User

    Hi, How can I get the Email Address of the Login User from Outlook. The Me.Session.CurrentUser.address return a lot of additional data, what I want is just the Email Address. Thanks. Andy Ho After digging around for a while, I finally learned that I needed to search for a way to get a user's email address from active directory using only the user's login. The method I eventually used was to create a DirectorySearcher and apply a filter that uses the samaccountname. Here's a quick code example: Code Snippet string username = txtUsername.Text; DirectoryEntry domain = new DirectoryEntry("LDAP://adserver"); DirectorySearcher searcher = new DirectorySearc ...Show All

©2008 Software Development Network