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

Software Development Network >> Arslan.Ahmed's Q&A profile

Arslan.Ahmed

Member List

pessi
tranders
AbhijeetG
Rajesh batchu
LindaR
Mark Goldstein
Bluehunter
Ali Kazim Telli
caesarkim
Syed Mahmood Ali
Adriaan W
Solk
Jehan Badshah
gmcbay
Muricy
Corby111
lou_RUS
espirit
Dustin_H
MagedSalah
Only Title

Arslan.Ahmed's Q&A profile

  • SharePoint Products and Technologies Programmatic access to Custom List Form fields, How?

    The Scenario: I have two lists that are linked to each other in a sort of Parent/Child record relationship. It makes perfect sense, from a user experience perspective, to create child record(s) when creating the parent record. (As an example think of an Invoice and InvoiceItems type of relationship.) On the other hand, it is not a requirement from the client so my intention is to customize the Parent record form to take you to the child record NewForm.aspx with some kind of logic that would pass the Parent record ID parameter to the child record and also select that record in the default drop down that MOSS renders for that field. Supporting Material: I am not the strongest MOSS developer, although I've been a developer for many ...Show All

  • Visual C# {"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."}

    So i have method which is executing in loop, there is this method: public void Play() { MemoryStream tempStream = new MemoryStream (memStream.GetBuffer()); //everytime i create new memorystream try { applicationBuffer = new SecondaryBuffer (tempStream, applicationDevice); //create directsound secondary buffer to play data in stream } catch ( Exception ex) { MessageBox .Show( ex.ToString()); } if (applicationBuffer != null ) applicationBuffer.Play(0, BufferPlayFlags .Default); //play data //tempStream.Flush(); //tried this //tempStream.Close(); //and this tempStream.Dispose(); tempStream = null; //GC.Collect(); //this didn'd help //GC.WaitForPendingFinali ...Show All

  • Visual Basic Import text and loop using array

    Ok, what I want to do is to open a text (txt) file and store its words into an array. An array per word and then looping through the array and flashing the text(words). What I done so far is to open the txt file as a string, and then used this within a function: Dim words() As String words = textfile.Split Dim tempStr As String Dim i As Integer i = 0 For Each tempStr In words Label1.Text = tempStr Next tempStr Label1.Text = "END OF TEXT" Return 0 "words" is supposed to be the array that will contain the words "textfile" the string that contains the whole text of the textfile "Label1" is a label that shows a word per time in the loop The problem: when I run this code, the only thing I see i ...Show All

  • SQL Server SSIS Performance

    I am currently in the process of migrating DTS packages to SSIS. I am finding that most of the packages are running faster, but some of them are taking longer to execute. The DTS package copies data from our Production server to Development. It uses a Copy SQL Server Objects Task to copy only the data from about 50 tables. This takes about 3.5 minutes. I created the exact same package in SSIS using the Transfer SQL Server Objects Task and it is running about 5 minutes. Another package I am having this problem with is only copying data from 1 table using a Copy SQL Server Objects Task. This package executes in 19 minutes. I have created the exact same package twice. Once using Transfer SQL Server Objects and once with a data flow task ...Show All

  • SQL Server adding new objects to sql server

    We have an instance of sql running on one box. We're going to be making a copy of a database on another server. I've been working on a local copy of the db and I've had to add a few new stored procedures and tables along with some fts catalogs. When we set up the copy on the production server, I figured I'd set up the new version that I've been working on so it has the latest structures in place. However, we then have to pull all the data over from the existing database to the new one. Obviously the new tables won't get any data input from the pull, but aside from creating a dtsx project to pull it all over, is there any other way to do it a little easier and faster Thanks. ...Show All

  • Windows Forms Disable Close button on the form

    Hello; I have searched the forum, but could nof find the answer for this question. Is it possible to disable the X button on the form, as I need to be able to minimize the form, and it also have a button wich hides the form from the screen (not the minimize button), but this form must not be closed by user in any condition. Best regards. (Moderator: Thread moved to this forum for better responses) Hi you can do as folllow : add : using System.Runtime.InteropServices; add in your class: [DllImport( " user32 " , EntryPoint = " GetSystemMenu " , SetLastError = true , CharSet = CharSet.Unicode, ExactSpelling = true , CallingConvention = CallingConvention.W ...Show All

  • Visual C# C# - How powerful?

    I know C# is sort of like C++, but is it as powerful as C++ If you want to learn C++, the best tutorial I can suggest is the second edition of "C++ Primer" by Stanley Lippman. The third edition tries to be too many things at once. The second edition will tell you 'almost' everything you need to know about C++. Windows programming, if that's what you want to do, is better covered by other books. I liked Jeff Prosise's "Programming Windows with MFC" second edition, but obviously it covers the 'old' way of doing things. For MFC programming another good reference is Mike Blaszczak's "Professional MFC with Visual C++ 6". Note the 'Visual C++ 6' but MFC hasn't chang ...Show All

  • Visual Studio Tools for Office How to do something when create a new workbook?

    Hi Super Men, I wanna know how can I do something when I click the "New" button of Excel to create a new workbook I try to use "this.New += new Microsoft.Office.Tools.Excel.WorkbookEvents_NewEventHandler(ThisWorkbook_New);" in "ThisWorkbook.cs", and write something in "void ThisWorkbook_New()" method, but when I click the "New" button, it doesn't run this code!!! Actually, I try it in this way: ////////////////////////////////////// Excel.Workbook workbook = new Excel.Workbook(); ((Excel.AppEvents_Event)workbook).NewWorkbook += new Excel.AppEvents_NewWorkbookEventHandler(workbook_NewWorkbook); void workbook_NewWorkbook(Excel.Workbook wb) {      ...Show All

  • SQL Server Problems connecting to SSAS instance over HTTP in Excel 2003

    Our Biz users are all running Excel 2003, and we've recently set up a bunch of cubes that we'd like to open up to them. I followed the steps here: http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx to set up HTTP access to SSAS2005. It works great from my machine, I figured because I had SQL 05 installed locally and all the requisite drivers, etc. On our biz users' desktops, however, it wasn't as peachy. I first figured out I had to install MSXML6 and the SSAS 9.0 driver on their machine to connect to the cube. I downloaded those from here: http://www.microsoft.com/downloads/details.aspx familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en Once I was able to set up the connection to the cube, and abo ...Show All

  • Visual Studio 2008 (Pre-release) Propogating inherited DPs to the adorner layer

    I have a TextBox whose adorner layer has an adorner which contains a ListBox. The ListBox displays strings (suggested spellings for misspelled words in the TextBox). When the user spells a word incorrectly, they can press F1 to display a list of suggested spellings in the adorning ListBox. After they select a suggestion, the typo in the TextBox is replaced with the selected suggestion. That part works. I'm having a problem with visual settings. If I'm not mistaken, the adorner (and, hence, the Listbox) is not in the Window's visual tree. That means that the inherited dependency property values of the Window (let's say the FontSize property) will not propogate to the ListBox. With that being the case, how can I achieve such propogation ...Show All

  • Visual Studio 2008 (Pre-release) Demo III: Offline Application – WebService

    Hello all, The N-Tier demo has finally arrived. This demo shows you how to take the server side code, basically the ServerSyncProvider along with all SyncAdapters that we build in the last demo, and expose it as a web service. On the client side, you generate a web service proxy and build a thin wrapper around it to be able to plug it into the sync agent. These steps and more are described in the accompanying readme.txt file. For more details and to download the project please visit my blog at: http://blogs.msdn.com/synchronizer/ Download sample: http://blogs.msdn.com/synchronizer/attachment/1554160.ashx Hi Nick, Good stuff. I looked at the code and I think it is really useful to move the settings to XML config file. I am ...Show All

  • Community Chat ImageListBox Control

    Hi, i hope i played this post right, if not i am sorry for that. I have written a little or more complex control called "ImageListBox", it has a more complex definition of an item than a normal ListBox. So every item can contain an image, header text and normal text. I wanted a much more attractive version than a normal ListBox, so i wrote it. I would like to hear your opinions about it and some bugs that maybe someone will find ;) http://www.thunder-development.de/typo3/index.php id=55 (Unless i dont know what to do exactly with it, it contains a "Demo" string, please dont get angry by this) CU Thunder2002 Yes shareware would be good, with either some option limitation or, i think t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Sizeof(Color) struct / Terrain Rendering issue

    I'm working on translating a Terrain generation project from a Direct3D book that I purchased into C#/XNA. I so far have accomplished 1) Generating a height map using the algorithm in the book adapted to C# 2) Taking that height map and rendering it to the screen using a Panel in a Windows Forms app (the panel is passed to the GraphicsDevice). Everything works beautifully. Last night, I built out the classes/structs I needed to convert the heightmap into a grid of patches that then are rendered as a model to the panel. I had some bugs in translating to XNA because of no Mesh object. However, I was able to overcome those. It looks like my terrain is rendering, however, I don't think its correctly using my COLOR data. I built out the s ...Show All

  • Visual C# NEW ROW IN DATAGRID

    How can i create a New row in datagrid..... Can i Use datagrid in javascript.How to handle Datgrid properties through Javascript. Waiting for ur repliess........... With regards, Mahender hi, datagrid is just a UI to draw the data which stored in your datasource, so insert row in the datasource and the datagrid will show it, if this datagrid is web control you better use this forum http://forums.asp.net hope this helps ...Show All

  • .NET Development Unregistered custom channel still being used!

    I created a custom client formatter sink to pass some information. I can create it as follows: BinaryClientFormatterSinkProvider binarySink = new BinaryClientFormatterSinkProvider(); ClientSecuritySinkProvider secureSink = new ClientSecuritySinkProvider(username, password); secureSink.Next = binarySink; _tcpChannel = new TcpClientChannel("tcp", secureSink); ChannelServices.RegisterChannel(_tcpChannel); Activator.GetObject(...) This works the first time. However, if I call: ChannelServices.UnregisterChannel(_tcpChannel) and repeat the procedure with a different username and password, it still uses the first channel I registered (even though it has been unregistered!) I verified that the new channel is being crea ...Show All

©2008 Software Development Network