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

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

Burney

Member List

Shady9399
MikeHNatti
Sami Karaeen
Lee Eden
Dave Perry
Tanmaya
Dejan Kocijasevic
Son_seph14
CHEN YU-TIEN
HanSoloIsSoCute
waruwaru
CHEN YU-TIEN
chance1166
Dobyns
Raj Parmar
Jiajia
Aneo
JavaBoy
Rick T
learnerplates
Only Title

Burney's Q&A profile

  • Software Development for Windows Vista Adding and then Removing Directory On Vista Start Menu

    Hey Guys, I have another vista related issue. What is the proper or offical way to add/remove items to the start menu. I have tried to no avail to make this work correctly. Adding the files is all good, I see them and they show up and work as expected(they are just shortcuts to applications), But when I go to remove the folder that contains the lnk's it removes it but there seems to be a second folder in its place right afterwards. Basically I am doing this to add them: string startPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu) + "\\Programs" + "\\Application_Shortcuts"; if (!Directory.Exists(startPath)) { Directory.CreateDirectory(startPath); }//if And this is what I am doing on the removal of ...Show All

  • SQL Server Access/Server

    How do you change the connection string of a DataSet We have been using MSAccess for our database, but have recently upgraded to SQLServer Express. I was able to successfully upsize the Access database and now all information resides on the server. In my VisualBasic program, the dataset itself has around 200 queries total spread out on multiple table adapters. The problem now is that none of these queries work because the dataset is bound to the Access table. I have changed connection string through code and am able to display the information, but am unable to interact with it until i get the dataset connection changed. I would rather just change the connection of the dataset somehow rather than build a new dataset, reconnect all form ...Show All

  • .NET Development Multiple Client Connection Simultaneously

    hi , I am working on a Server-Client Game on which multiple user can play this game. I have implemented this with the TCPListener and thread. but the problem is that connection can't be by more than one user at a time. When one connection is made then other can be made else it go to hung state. Can I implements this with asynchronous server-client techninque. Only Client code is for the user's who play the game . Server only send message to clients. Can Any one help me How can I achieve this problem. If any one have code for this plz send it to me at rathi.0709@gmail.com or post the answer. public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); clients = new ArrayList(); processor = new ...Show All

  • SQL Server measure's name can not be same in different cube?

    BY using the SSAS ,I find much problem,can someboby help me. The problem : 1,why measure in different cube can not have the same name 2,where I can modify the partition's ID? 3,where is the profile >2) Why do you want to modify partition ID (it is possible, but I wonder why) BI Studio generates from AN_IMPORTANT_FIELD or AnImportantField the ID "An Important Field". It is total uncomfortable to have spaces in the IDs. Why BI Studio thoughts that it is wiseacre that knows better as the rest Why it doesn't leave ID untouched or doesn't ask for ID of the new being created item It is possible in the AMO to spesify ID at the time of an item creation, but it isn't in BI Studio. What a pity! I want and I s ...Show All

  • Visual Basic Math Questions

    This is my code I'm working with. I'm trying to use the sum from the lhGal to show in lhGal2.Text. Dim FirstNum, SecondNum, ThirdNum, FourthNum As Double 'Intial Fuel Add FirstNum = lhPounds.Text SecondNum = lhDensity.Text ThirdNum = lhGal.Text FourthNum = lhPounds2.Text lhGal.Text = FirstNum / SecondNum - 0.4 'Additional Fuel Added to bring to 1200 lhGal2.Text= FourthNum / SecondNum - lhGal lh = Left Hand because there will eventually be a right hand once I learn the code for the left.  Actually Pounds is a known number, this is what I have now. lhGal.Text = 80 / lhDensity.Text - 0.4 lhGal2.Text = 1200 / lhDensity.Text - lhGal.Text lhAddLip ...Show All

  • Software Development for Windows Vista Wait until time/Persistence & Tracking

    Hello, I have to questions based on waiting/persistence/tracking scenarios: 1. Suposse that I want to wait until a specific day. If I use a delay or something like that I understand that at this point the wf becomes idle and the persistence service writes it down. What happens later if I turn off the runtime engine and I want to start it later. How do I continue with the saved instance without explicit set this Is there any standard solution to this 2. Suppose that I want to track the wf states and I implement a tracking service that also persist data. How do I solve the scenario where the wf has changed but the tracking updates are interrupted Does anyone know a solution or better approach to them Regards, M ...Show All

  • Visual C# Generics Problem in Operators

    Hi , I am trying to design a Generic Method which can add any type of data. while i am compiling it is giving following error: 2 Operator '+' cannot be applied to operands of type 'T' and 'T' Following is the code: Please help using System; using System.Collections.Generic; using System.Text; namespace GenericsConsoleApplication { class Program { static void Main( string [] args) { } } class GenericClass1 <T> { public T result; public T Add<T>(T vara, T varb) { return result = vara + varb; } } } The problem you are having is because the compiler needs to know at compile time that any type you create the generic class w ...Show All

  • Visual C# Best practice in multilingual applications (Resource Files)...

    What is the best practice structuring resource files when developing multilingual applications... The options that I have so far: Few resource files containing a lot of texts. Customers only have to translate texts once. Resource file may become large, may have to load more than one file to be able to get the text we are after. Many resource files, e.g. one per form. Customers have to translate texts multiple times. Resource file remain small, only load one per form. Are there any performace issues when loading resource files Does anyone have any comments or thoughts. Maybe you have done it completly different Appreciate any comments. Anders... In my past experiences we always ended up with few resourc ...Show All

  • Visual Studio VB add-in suddenly stops working

    I'm using VB 2005 to develop a Visual Studio add-in. It adds a few commands to the Code Window context menu. To test it, I simply click the Start Debugging button, which then launches a second instance of VS. I load a project and test the new context menu entries. This has been working fine, but occasionally, it all stops working.  The add-in disappears from the Add-in Manager, and the new context menu entries don't appear.  I haven't touched the OnConnection or Exec since I first got them working a few weeks ago, and the project settings are unchanged. I can't find any way of getting it working again except for creating a new add-in project and copying everything across from the old project. There must be an easie ...Show All

  • Windows Forms Data bound on DataGridView with Custom columns.

    Hello, I have created a datagridview with the 5 following columns. 1)CourseName (Combobox) 2)CourseType(Combobox) 3)DateFrom (DateTimePicker) 4)DateTo (DateTimePicker) 5)CourseDetails (Textbox) What i want to do is to fill this datagridview with data from an Access database (Table Courses). What i thought so far is to have a define an OledbCommand and fill a OledbDataReader, and then based on the values from the database set the datagrid cells. Is this correct Or is there a better and more clean way of doing this. Thank you in advanced. I know how to access the Access database and how to query it. My problem is which data object should i use to fill the datagrid view a ...Show All

  • Visual C# Callback from C++ .dll fails with "The memory could not be written"

    Hi, I'm having serious problems getting code that used to work in Visual Studio 2003, to work in .NET 3.0. I'm using Microsoft Expression Interactive Designer, but I figure my question is not really related to that product at all. I have a dll that controls a USB device (an ArtLebedev Mini 3). I can call bits of the dll fine and correctly set up my USB device. The problem is using a method within my c# code for the callback when a button on the device is pressed. After setting up the callback, pressing a button on the USB device causes the whole application to crash with a "The memory could not be written" error. Which i'm assuming means the dll is trying to call my method in c# but for some reason can't (memory address has chang ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. input handling

    i was trying to get some basic input handling done but i get this error Error 1 The type 'Microsoft.Xna.Framework.Input.KeyboardState' has no constructors defined  be nice please i am new to the language and xna namespace LearnXNA { /// <summary> /// This is the main type for your game /// </summary> partial class Game1 : Microsoft.Xna.Framework. Game { int posx = 240; int posy = 320; SpriteBatch spriteb; Texture2D spritetex; KeyboardState input; public Game1() { InitializeComponent(); spriteb = new SpriteBatch (graphics.GraphicsDevice); spritetex = Texture2D .FromFile(graphics.GraphicsDevice, "ship.jpg" ); input = ne ...Show All

  • Visual Studio Express Editions Newbie Scope Question

    Please could someone explain the flow on loading a form please. When you open a new form with the form show event does the class run before the load event If something is within the load event does that have form wide scope or is it only things in the class Thank you for that explanation it makes things clearer for me. One other question springs to mind can you declare an new instance of a program global class and make that global within a form class If so how would one do this ...Show All

  • SQL Server Script Source: Error on truncation etc

    I have a script source to deal with a source that has different "record types" (first 3 columns are the same then the remaining 2 to 30 columns are different based on the record type). Script source was working fine... then one of the columns that I had set to String with length of 2 came in with a length of 3 (which is not per spec)... instead of failing - all the columns after the one that had the bad value were null and the script just stopped as soon as it hit that.. AND said it was success.  Which means it imported the data incorrectly and since the script says it was a sucess you'd never know anything went wrong and it only imported 30 rows instead of 10k+ Any ideas on how to capture this error Code (shortened ...Show All

  • SQL Server SQL Server 2005 Mobile edition using server tools

    I have installed SQL Server 2005 Mobile edition and also the server tools. I configured a website to sync with my mobile application. When I go t check the SQL server Mobile agent with this url: http://localhost/MobileTest/sqlcesa30.dll i get a http 500 internal error I am using remote desktop to access the machine, when I am directly on the machine there is no error I get the correct message in the browser "SQL Server Mobile Server Agent 3.0" Is access to the web site via remote desktop a problem jawahar ...Show All

©2008 Software Development Network