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

Software Development Network >> Elham Sarikhani's Q&A profile

Elham Sarikhani

Member List

Alistair4267
Heng-yi Liu
Makutaku
Terence Tung
wilhil
Brad_SAN
vkv
Docpro777
GS80
flash.tato
Ishfaqa
WXS123
Pma_1
bilalso
Jason Bolstad
Matt24
Frankelman
David Parreira
Hussam44
Kosmo007
Only Title

Elham Sarikhani's Q&A profile

  • .NET Development Optimize Memory within seconds using C#

    Mechanism: Consume physical memory to force OS to allocate more physical memory to you, then free them. You can recoding the code so that you can control the amount of physical memory you want to free or the time spent for optimizing or both. It will not terminate other processes but may cause other processes running slower for a while. Then they will run better after they warm-up again. This application will try to FREE as much memory as possible within 10 seconds. It will free unused resources first then follow by resources using by other processes. It all depends on your machine speed, total avaible physical memory etc. So, smart in adjusting the total memory that you want to free or time taken to free resources or both to suit ...Show All

  • Visual Basic how to open ms word in windows application

    in my project i have a requirement of opening the msword application and editing and saving this document can any one help me how to solve this problem in windows application . i have VS Pro edition and i want to work MS word inside my application not seperately Unfortunately there is no solution for working with Word inside an application. The OLE control solution is not supported by Win Forms in .NET. About the only alternative is the Web Browser control, but it will not provide the user interface necessary to work with Word inside the application. INFO: Visual Studio .NET Does Not Provide an OLE Container Control for Win Forms ...Show All

  • Visual Studio Express Editions Missing bindings

    I created a database and added fields. Then i created the diagram and dataset for this setup. The next thing i did was add bindings for the dataset to textboxes. I had to add more fields but the dataset did not have the connection so i deleted the diagram and dataset, I created a new dataset from the new diagram which then reflected the added fields. The bindings and the dataset that were listed below on my form are not there anymore. I then attempted to recreate the dataset and bindings but vb spits out an error and says that they (dataset or bindings) are already there. I tried to create new named dataset and bindings to these textboxes but the program crashes. Only the table adapter lines are listed in the pseudo code. Que ...Show All

  • Visual Studio Tools for Office Displaying Excel Chart In Windows Forms

    Hi, I am using VSTO to get access to excel charts. It there anyway to have the created charts be displayed in windows form rather than within Excel When I run my application Excel starts up and my chart is displayed there in a worksheet, but I want the chart to be displayed in a form. And I don't want Excel to be openned at all. Best Regards, Armand Armand, In view of Your explicit requirements they require a total different approach. Instead of using VSTO & Excel You can consider to use the Chart component in Office Web Components (OWC) in a standalone Windows Form's solution. This will require either C# or VB.NET (or VB 6.0) The free OWC kit is available on the Office CD (OWC11.exe ...Show All

  • Visual Basic "Cannot create ActiveX Component" when run from a service

    Hello, I've been having this issue for a little while now and it's getting to be a bit of a headache. I'm writing a service that calls a DLL, that DLL uses the CreateObject statement to call an application, Cognos Impromptu. Cognos provides no API for its app, only macro scripting, thus I have no Import statements or references. Upon running the service, once it reaches the CreateObject("CognosImpromptu.Application") statement I get the error "Cannot Create ActiveX Component." However, I am able to create other ActiveX objects, such as Internet Explorer, so I don't know what the problem with this program would be. For a further explanation please refer to the thread: http://www.vbforums.com/showthread.php p=2619238 An ...Show All

  • Visual Studio Team System What's the proper way of documenting our code?

    In the past I have used Java and and placed header comments in my code so that javadoc could produce excellent documentation from the code. I have also use something called doxygen to document my C++ code to produce similar documentation for C/C++ code. From using Visual Studio 2005, I can tell you guys are doing or planning on something similar with .NET code. In VB.NET, when I type three consecutive ''', it automatically generates header comments. Same with C# when I type three consecutive ///. Unfortunately, C++/CLI doesn't have this feature. From the project settings, I can get Visual Studio 2005 to generate an XML document from these header comments.  But this XML document is not very useful as a form of AP ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Loading textures as an embedded resource

    I have been trying to get my textures to load from the assembly rather than disk but have come across a strange problem: When loaded from disk the image size is correct at 1280x720: backgroundTexture = Texture2D .FromFile(graphics.GraphicsDevice, "./Textures/twistBkg.png" ); When loaded from a resource stream it thinks the image is 1024x2048: System.Reflection. Assembly a = System.Reflection. Assembly .GetExecutingAssembly(); System.IO. Stream s = a.GetManifestResourceStream( "Textures.twistBkg.png" ); backgroundTexture = ( Texture2D ) Texture2D .FromFile(graphics.GraphicsDevice, s); Any ideas why/how to correct this This might be something to do with how ...Show All

  • SQL Server variables in data flow OLE DB

    I'm storing a sql command (could be an SP call or simple select) that I would like to pass into the "OLE DB Source" container in my data flow task. If I choose Data Access Mode: SQL Command from variable, I get an error saying there is a data source column with no name. I've fought SSIS pretty good up to this point. I realize you need to "initialize" variables & expressions in the control flow ahead of time if you want to access them in the data flow. But I was kind of hoping that all I would need to do in this case would be pass a SQL command into a variable and access that somehow in the data flow without jumping through any hoops. Is this possible This is a great forum btw, thanks, Phil ...Show All

  • Software Development for Windows Vista ActiveX OCX / Registry call fails

    I have an ActiveX OCX that runs in a web page. It works fine except when run under Vista. The call that fails is RegConnectRegistryW. The return error is 1346. Meaning "Either a required impersonation level was not provided or the provided impersonation level was not valid". This call fails when attempting to return any hive handle --even a local hive handle. Obtaining hive handles via another fashion isn't possible as the OCX needs to be able to remotely connect to other system's registries --whether they be Vista or less. I'm pretty sure the cause for the error is due to insufficient rights and that the process which calls this API needs elevated privileges. How can I accomplish elevating this process Can I use a manifest file ...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

  • Visual Basic where's step into

    In vb6, it was possible to step into (F8) or step over (shift+F8) during debugging. VB8 has step over (F10), but there is no step into on the menu or the toolbar. Doesn't VS2005 have a step into; if so, where is it One other point... you can also change your overall profile to accomodate a particular coding style (VB6, for example), which sets up commands, menus, and windows for you... see http://msdn2.microsoft.com/en-us/library/zbhkx167(d=ide).aspx (Visual Studio Settings) for more details. ...Show All

  • Windows Forms Where are my buttons?

    I am trying to display two text boxes when the edit button is clicked. The MemberName textbox does "disappear" but the other two textboxes remain invisible. The textboxes are in a panel and I thought by inserting the control.BringToFront(), it would put the control into the panel. What am I missing using System ; using System . Collections . Generic ; using System . ComponentModel ; using System . Data ; using System . Data . OleDb ; using System . Drawing ; using System . Text ; using System . Windows . Forms ; namespace bindDbToDataGridView { public partial class Form1 : Form { #region Strings TextBox ...Show All

  • SQL Server Passing a variable to the from statement

    Hi, I have the following sql that I execute against a flat file. The flat file has a fixed length header and trailer but variable length data section. I execute this sql to get the header and trailer details the data section is put through a process in integration services: SELECT substring ( bulkcolumn , 1 , 5 ) --<HeaderIdentifier, char(5),> , substring ( bulkcolumn , 6 , 10 ) --<SenderIdentifier, char(10),> , substring ( bulkcolumn , 16 , 10 ) --<RecipientIdentifier, char(10),> , substring ( bulkcolumn , 26 , 30 ) --<FileType, char(30),> , substring ( bulkcolumn , 56 , 8 ) --<CreationDate, char(8),> , substring ( bulkcolumn , 64 , 6 ) --<CreationTime, char(6),> , substring ...Show All

  • Visual Studio 2008 (Pre-release) Use of <dataContractSerializer>

    It's possible to specify the KnownType of the DataContract in the configuration file with <dataContractSerializer> element. I tried to use the following: The code snippet: [DataContract] public class SomeSet { ... [DataMember] public IList items; } [DataContract] public class SomeItem {...} Configuration file contains the following (in the <system.runtime.serialization> section): <dataContractSerializer> <declaredTypes> <add type="SomeSet, SomeData, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"> <knownType type="SomeItem, SomeData, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/> </add> </declared ...Show All

  • Windows Forms How can I override the default Text when extending a toolbar in VS 2003 version?

    I wanted to extend the toolbarbuttons with mytoolbarbutton. How can I override the default Text when extending a toolbar in VS 2003 version Here is the sample I wrote (I know this is very awkward workaround) and wanted to make it proper. public __gc class MyToolBarButton : public ToolBarButton { private: String* _title; public: MyToolBarButton() : ToolBarButton() { ... } __property String* get_Title() { return this->_title; } __property void set_Title(String* value) { this->_title = value; this->Text = this->_title; } } Instead of get_Title and set_Title, I want to use get_Text and set_Text (or whatever way to override the default text property) like this. ...Show All

©2008 Software Development Network