رفع خطای ttf, eot and woff font files در MVC , Asp.Net

برای رفع خطای 

فقط کافیست به خصوصیت این فایل ها رجوع کرده و خاصیت

Build action = 'content'

را به نال ست کنید


سال1393 ، 23 مهر

آواتر ایرانی و عربی

برای ایجاد آواتر Avater Arabic , Avater Irane از سایت زیر استفاده نمایید

http://wajhy.com/


سال1393 ، 23 مهر

رفع خطای unable to step attempt to get a ICorDebug Function for a function that

برای رفع خطای unable to step attempt to get a ICorDebug Function for a function that is not IL  

کافیست مراحل زیر را طی نمایید 

  1. ابتئا VS را ببندید 
  2. حال VS را Run Admin کنید
  3. In Solution Explorer, right-click the name of a Web project and select Properties.

  4. In the project properties page click the Web tab.

  5. Under Debuggers, select the ASP.NET check box.


سال1393 ، 23 مهر

قفل کردن USB

All computers with a modern version of Windows installed support the AutoRun technology. This technology is used to automatically start a program or open a document on a CD, DVD or USB flash drive (etc). But in some computers this feature can be turned off for some specific drive types. Administrators can disable this functionality in client computers for CD/DVD drives and USB flash drives for security reasons. And some programs, for example CD/DVD burning programs, can sometimes also turn off this functionality.


The 'NoDriveTypeAutoRun' subkey value in Windows Registry

If AutoRun is disabled for a drive that you want to have AutoRun on you can often enable it by changing a value in Windows registry. There is a value with the name NoDriveTypeAutoRun at the following two registry subkeys that can be changed to enable or disable AutoRun for different drives:
 

Current User: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Local Computer: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

 
The default value for NoDriveTypeAutoRun is 91 (hexadecimal) in Windows XP, Windows Vista and Windows 7. In older versions of Windows (Windows 2000 and earlier) the default value is 95 (hexadecimal). In Windows Vista and Windows 7 the NoDriveTypeAutoRun subkey value name often do not exists in the registry until it is changed from its default value. If the value name is not there you can add it yourself with Windows Registry Editor.
  
The NoDriveTypeAutoRun subkey value in Windows Registry
  
If NoDriveTypeAutoRun has another value than the default and AutoRun is not working with your CD/DVD or USB flash drive then you probably have found the reason. If the value is B1 or B5 (hexadecimal) then AutoRun for CD/DVD is turned off. If the value is B5 then AutoRun for USB flash drives has also been turned off. If you want to enable AutoRun for your CD/DVD drive you can change the value to 91, or to 95 if you want to keep AutoRun for USB flash drives turned off. After you have done your changes, you must restart your computer before AutoRun works again for the drive.



More details about 'NoDriveTypeAutoRun'

The NoDriveTypeAutoRun subkey value contains a bit mask where every bit that is set disables a drive type. The default value for NoDriveTypeAutoRun in Windows XP and newer is 91 (hexadecimal), giving a bit pattern of 10010001. Bit number 5 enables/disables AutoRun for CD/DVD drives and as default this bit is cleared (set to 0). By settingNoDriveTypeAutoRun to the value of B1 (hexadecimal), the bit number 5 will be set (have the value 1) and the CD/DVD drive is disabled. The bit pattern for B1 is 10110001.

By setting or clearing another bit in NoDriveTypeAutoRun another drive type can have the Autorun functionality disabled or enabled. In the table below you can see which bit that corresponds to which drive type:
 

Bit number Bit pattern Drive type
2 00000100 Disk that can be removed from the drive (such as a floppy disk or USB flash drive)
3 00001000 Disk that cannot be removed from drive (usually a hard disk)
4 00010000 Network drive
5 00100000 CD/DVD drive
6 01000000 RAM disk

 
If you for example want to turn off AutoRun support for USB flash drives (USB sticks) you must set bit number 2 in theNoDriveTypeAutoRun subkey value. If you clear this bit AutoRun will work again for USB flash drives. Expressed in hexadecimal: you must give NoDriveTypeAutoRun the value of 95 to disable AutoRun support and giveNoDriveTypeAutoRun the value of 91 to enable AutoRun support for USB flash drives. Bit number 2 will also turn on/off AutoRun support for floppy disks.



Summary - some possible values for 'NoDriveTypeAutoRun'

The table below summarizes the values for NoDriveTypeAutoRun that is mentioned in this article. These values can be used to enable or disable AutoRun for CD/DVD drives and USB flash drives. The values in the table are in hexadecimal:
 

Value Description
91 AutoRun is enabled for CD/DVD drives and USB flash drives
95 AutoRun is disabled for USB flash drives
B1 AutoRun is disabled for CD/DVD drives
B5 AutoRun is disabled for CD/DVD drives and USB flash drives

 
 

In Windows Vista / Windows 7 AutoRun can be disabled via the Control Panel

In Windows Vista and Windows 7 it is possible to disable AutoRun for drives by using the Control Panel. If you open the Control Panel and chooses Hardware and sound and then AutoPlay, a dialog box that can be used to change settings for AutoPlay and AutoRun is opened. The combo box at Software and games can be used to change settings for AutoRun (see the picture below):

Settings for AutoRun can be changed by using the Control Panel (in Windows Vista and Windows 7)

By choosing the Take no action option the AutoRun functionality will be disabled in Windows. When you insert a disc in the drive nothing will happen. By choosing Install or run program AutoRun will work again. But you should be aware of that the NoDriveTypeAutoRun subkey value in registry has higher priority than the setting in the Control Panel, so if AutoRun for a drive is disabled via NoDriveTypeAutoRun then you can not enable it by using the Control Panel. You can only enable it by changing the NoDriveTypeAutoRun subkey value in registry.


سال1393 ، 13 مهر

Show Hide Maximized Minimized کردن پنجره دیگر process ها

با کد زیر می توانید سایز و نمایش پنجره  از یک process other را تغییر بدید

 

 private enum WindowShowStyle : uint
    {
        /// Hides the window and activates another window.
        /// See SW_HIDE
        Hide = 0,
        /// Activates and displays a window. If the window is minimized
        /// or maximized, the system restores it to its original size and
        /// position. An application should specify this flag when displaying
        /// the window for the first time.
        /// See SW_SHOWNORMAL
        ShowNormal = 1,
        /// Activates the window and displays it as a minimized window.
        /// See SW_SHOWMINIMIZED
        ShowMinimized = 2,
        /// Activates the window and displays it as a maximized window.
        /// See SW_SHOWMAXIMIZED
        ShowMaximized = 3,
        /// Maximizes the specified window.
        /// See SW_MAXIMIZE
        Maximize = 3,
        /// Displays a window in its most recent size and position.
        /// This value is similar to "ShowNormal", except the window is not
        /// actived.
        /// See SW_SHOWNOACTIVATE
        ShowNormalNoActivate = 4,
        /// Activates the window and displays it in its current size
        /// and position.
        /// See SW_SHOW
        Show = 5,
        /// Minimizes the specified window and activates the next
        /// top-level window in the Z order.
        /// See SW_MINIMIZE
        Minimize = 6,
        /// Displays the window as a minimized window. This value is
        /// similar to "ShowMinimized", except the window is not activated.
        /// See SW_SHOWMINNOACTIVE
        ShowMinNoActivate = 7,
        /// Displays the window in its current size and position. This
        /// value is similar to "Show", except the window is not activated.
        /// See SW_SHOWNA
        ShowNoActivate = 8,
        /// Activates and displays the window. If the window is
        /// minimized or maximized, the system restores it to its original size
        /// and position. An application should specify this flag when restoring
        /// a minimized window.
        /// See SW_RESTORE
        Restore = 9,
        /// Sets the show state based on the SW_ value specified in the
        /// STARTUPINFO structure passed to the CreateProcess function by the
        /// program that started the application.
        /// See SW_SHOWDEFAULT
        ShowDefault = 10,
        /// Windows 2000/XP: Minimizes a window, even if the thread
        /// that owns the window is hung. This flag should only be used when
        /// minimizing windows from a different thread.
        /// See SW_FORCEMINIMIZE
        ForceMinimized = 11
    }

    [DllImport("user32.dll")]
    static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow);

    static void Main(object obj, EventArgs ea)
    {
        ShowWindow(Hwnd, WindowShowStyle.ShowMaximized);
    }

سال1393 ، 31 مرداد
اولین 1 2 3 4 5  ... اخرین 
کلمات کلیدی
   spiral       image       نسخه       safe       RDBMS       CSS3       stylesheet       because        cnc       Frame        Essential       sitemap       modifed       telerik       Entity       etag       XmlSerializer       mail       oracle       dblp       MAKEFILE       ESET Smart       attribute       موشک       چند سطحی       naccode       rule       ScriptService       cpu-z        up-to-date       مشکل       get       backlink       is        viewstate       raf       refresh       vs2012       ss        mtp usb drive add       yy       socket       نرم افزار       item       تجارت        file system       XPRESS       standard       switch       ruls    

صفحات ما در فیس بوک
ASP.NET



Google ++

طراحی وب سایتطراحی وب سایت با جدیدترین تکنولوژی های روز

طراحی و پیاده سازی وب سایتهای شخصی و تجاری و اداره ای با جدیدترین تکنولوژی های دنیا
به زبانهای

Asp.net{C#, Vb.Net, J#, Ajax}, Php{Html, Ajax}, js



بهینه سازی صفحات وببهینه سازی صفحات وب برای موتورهای جستجو

بهینه سازی صفحات وب برای موتور های جستجوگر برای افزایش بازدید و معرفی بهتر برای کاربران که به اصتلاح seo نامیده میشود

برنامه نویسیتولید و ساخت نرم افزار

ساخت انواع نرم افزارهی تحت ویندوز و وب و سرور و موبایل و میکروکنترلرها و... ساخت انواع سرویس دهنده های وب و سرور و ... ساخت انواع انالیزگرها و...