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

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

K_L

Member List

Helen999888
EisenB
Horst Klein
Romano Jerez
Sergei Dorogin
JIM.H.
Timbob888
Andreas Maurer
Wouter Veugelen
TroyDT
KarlZheng
chatz
Dave Ehrlich
sanjeevm
olarsson
cisfreak2
Sotham
lavez
Robert duario
MK_India
Only Title

K_L's Q&A profile

  • Visual Basic haw To Create ......!!

    Hi all im ayman From EGYPT This My first once with help msdn ....... so i wanna Know haw to Create User Name For Windows By Code VB.Net2005 i Wanna Help For That thanks for Read ayman Eldoktor >>>> MCAD create user names programmatically depends really, for local or domain accounts   For local, try this: Add a reference to System.DirectoryServices import it   Dim theEntry as new System.DirectoryServices.DirectoryEntry("WinNT://" & Environment.MachineName & ",computer") Dim theUserAccount as System.DirectoryServices.DirectoryEntry = theEntry.Children.Add( username , "user") theUserAccount.Invoke("SetPassword", new object () { password } ) th ...Show All

  • SQL Server Writing MDF to SQL Database

    Hi, I've been searching the internet for hours and the code i'm finding is just not what i'm wanting to do. Heres the story, I have a database file "MyDatabaseFile.mdf" I am making a form when you click a button I want it to create the "MyDatabaseFile.mdf" in MS SQL Server. Is this possible if so how I it something like "CREATE DATABASE MYNAME ". I jsut want the MDF file i dont want the log file inserting or anything. Is there any tools out there that anybody can recommend that will help me with T-SQL   Cheers, Rob There are several ways, you can fire a sql statement using a sqlcommand against SQL Server, or use the SMO / DMO classes (preferable the SMO classes, as they are written in .NET) to create a datab ...Show All

  • Windows Forms Slow User Defined Control

    I'm creating a custom control that has contained within it a large number of buttons. The code is extremely slow (taking about 12 seconds to display). I've had no success in making it faster. The problem seems to be centered around a single statement: Controls.Add(my_button_ctl); I tried to use the Controls.AddRange(...) member instead of Add(), but there was no speed improvement as was implied in the documentation. If I remove the Controls.Add() call (or AddRange), the display is almost instant. Is anyone aware of a way to speed up a user defined control that contains a large number of button controls In my case there are up-to 550 buttons contained on the control and I would like to get them displayed in under 1 second. The custom ...Show All

  • Smart Device Development What wrong in this code for smartphone work well in pocket PC

    #include "common.h" #include "MYappext.h" #include "MYContactsProvider.h" extern LONG g_cRefDLL; extern HINSTANCE g_hinstDLL; UINT cmdCtxCustom = 0; UINT cmdCtxJournal = 0; UINT cmdCtxSales = 0; UINT cmdCtxFax = 0; UINT cmdCtxAdd = 0; UINT curCtxCmd = 0; const int WM_CUSTOM_FLDS = 0x0415; const int WM_JOURNAL_FLDS = 0x0416; const int WM_SHOW_SALES = 0x0407; const int WM_FAX = 0x0431; const int WM_EDIT_CONTACT_EXT = 0x0408; ContactsContextMenu::ContactsContextMenu() { MessageBox(0, L " ContactsContextMenu " , L " Constructor " , 0); m_cRef = 0; m_punkSite = NULL; ++g_cRefDLL; ...Show All

  • Software Development for Windows Vista Validator, Designer Disconnect

    Hello all, In order to understand how all of the various components of an activity work together as a unit, I am attempting to build an custom activity that enables the user to associate a form with an activity at design time. I have an activity that exposes a FileName property, a designer that allows the user to drag and drop a form from the Visual Studio Solution Explorer onto the activity and a validator that ensures that the FileName property is indeed set. When I add the activity to a workflow it correctly displays a warning stating that the FileName needs to be set. When I drop a form onto the activity the FileName is set and displayed in the properties window, however the validator still shows its warning. How do I let the validato ...Show All

  • .NET Development base-method bindings incorrect when updating a referenced assembly

    I have detected some strange behaviour on overriding methods. Hopefully this is by design because if not this could be a major bug in .NET! First of all, I am developing a framework containing multiple assemblies. This framework contains several base classes that developers can descent from. When I update the framework (when fixing a bug) I used to tell customers just to delete the old assemblies and replace them with the new versions I had send them. Sometimes this did not solve the problem. Customers sometimes needed to recompile their entire project against my updated framework assemblies before the bugs disappeared. I now have discovered what causes this strange behaviour. Let me show a small code example: Version 1 of Step ...Show All

  • Visual C# Implementing a UI Type Editor – How to get a reference to the property owner class.

    Hello, In my application I am using the PropertyGrid control to edit the properties of a class (MyClass). To edit one of its properties I am writing a custom System.Drawing.Design.UITypeEditor . Like described here: http://msdn2.microsoft.com/en-us/library/ms171840.aspx To validate the property (for witch I am writing the property editor) I need to call a method on the class(MyClass) in which the property exists. My question: how do I get a reference to MyClass, or a reference to the PropertyGrid.SelectedObject from within the UITypeEditor EditValue method public override object EditValue( ITypeDescriptorContext context, IServiceProvider provider, object value) { ........... } Probably via the IServiceProvider GetService ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Dream Build Play Contest Question - Using languages other than C#

    I've managed to use Chrome ( www.remobjects.com ) to create some small XNA demos that use the content from SpaceWars. The rules do not mention whether non C# langauges are allowed to enter the contest. Since there are several .NET 2.0 compatible compilers out there shouldn't this contest allow these entries as well as they can use both the Windows and XBox 360 XNA assemblies. Just to clarify, I have Visual C# Express and Game Studio Express installed on my machine, but am using Chrome via Visual Studion 2005 to write and compile my XNA demos and the plan is to use that combination to write future XNA games and contest entries. Could someone from the XNA contest team please clarify your position on the use of non C# languages for the Dream ...Show All

  • SQL Server SSIS Logging to Flat File Destination

    Hi I am trying to use a conditional split task so that I can check for specific fields. If the value doesn't exist I am piping the records to a derived field task, where I add an error. I then try to send these records to a flat file destination so that I can keep track of them. However, when I execute the SSIS data flow task I get the following error [Log Invalid Records [5496]] Warning: The process cannot access the file because it is being used by another process. This file isn't being used by any other process as far as I can tell, and the only process using it is the SSIS task trying to write to it. If anyone has any ideas, then I would really really appreciate it Thanks Darrell I s ...Show All

  • Visual Basic All Help Required

    As some of you will know from the questions I've been asking, I have created a screensaver where the user can add a Theme of their own and share it with others. I now need others with more VB Knowledge than myself to take a look at it, add to it, polish it up, make suggestions etc, so that it can be released to the public at large. If you contact me I will zip it up and send you a copy of all the code so far, at the moment it has two Themes, you can choose which one you want to use by using the options form. Thanks for looking. Hello whoisit, If you would like to share your code with other developers I suggest using www.GotDotNet.com that site can be used for sharing of user code...These forums here a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Deciding where to land the main window when it's constructed

    I have two monitors, one 19" CRT (main) at the right, and a 26" LCD at its left. So far, the XNA examples (the packaged one and some from people) have a tendency of making this window lie on both monitors. There's about 100 pixels laying on my left screen and the rest in the right screen. This makes it the program run VERY choppily, until I move the window fully into only one monitor. Also, while I'm accomplishing this moving task, the mouse cursor refreshes in windows about once per second, increasing the difficulty of that small task. I've tried doing: graphics.GraphicsDevice.Viewport.X = 10; graphics.GraphicsDevice.Viewport.Y = 10; but it doesn't appear as if I can. Well, instead of trying to ...Show All

  • Visual Studio Express Editions full screen media player

    Is there a code to make windows media player go into full screen apart from right clicking on the player What i want to do is have a button that makes the player go into full screen is it possible if you do a Me .AxWindowsMediaPlayer1.fullScreen = True that will do it click the full screen to return cheyenne ...Show All

  • .NET Development About SmtpMail.Send() Method

    Hi all, This is Hari, In my application I need to generate a report for different people and send it through mail as attachment, and my approach to this task is I will generate a report for single person ,And send it to his Mail ID and then I will delete the report and generates next person’s report and send it. To send the report I am using SMTP server. I am able to send the mails if all the mail ids are correct, if the mail id of a person is incorrect in between I am able to handle the exception but I am not able to delete the report of that person the error I am getting is "Internal system error. Access to the path.... "Even I am not able to delete the file manually .How can I come out of this plea ...Show All

  • SQL Server accessing SQL Server Compact Edition from VBA

    Is it possible to connect to SQL Server Compact Edition with Visual Basic for Application I want to connect to *.sdf file from MS Access. I suppose you can do it using OLEDB if VBA allows you to use COM objects (which you should know better as I've never used VBA). ...Show All

  • Visual C# Is Form Loaded

    How do I know when a windows Form is loaded.. For example.. If i wanted to run a function one the form loads.. how would I do this P.S: Sorry If Im not clear.. but If Im not please let me know. Unfortunately there is no event to detect if form is Loaded or not but i think there is not condition where you really need it strictly and your work cannot be done elsewhere. I would suggest using Load event instead becuase its really close to what you need and Load also occurs after Initialization of all the controls and fields on the form so there is negligible difference between Load event and what you desire to get (Form Loaded). I hope you understand! Best Regards, Rizwan ...Show All

©2008 Software Development Network