CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vedikaledange

Search: Search took 0.03 seconds.

  1. Re: Importing a drag icon into a VB6 image object.

    You may try this code:



    private void OnDragEnter(object sender, System.Windows.Forms.DragEventArgs e)
    {
    Debug.WriteLine("OnDragEnter");
    string filename;
    validData=GetFilename(out...
  2. Re: How to make automatic browsing to images from database ?

    You could refer to the following code to display the image in MVC:



    // GET: Home
    public ActionResult Index()
    {
    List<ImageModel> images = GetImages();
    return...
  3. Re: writing file Filewriter.write(blob) windows10

    You may try this code:



    public void LogFile(string sExceptionName, string sEventName, string sControlName, int nErrorLineNo, string sFormName)
    {
    StreamWriter log;
    ...
  4. Replies
    1
    Views
    17,685

    Creating Basic Wrapper Class in C#

    Creating a Basic Wrapper.
    These three patterns, proxy, decorator, and adapter are all implemented identically. They are all wrappers at the basic level. The functionality they provide is how we can...
  5. Replies
    4
    Views
    4,750

    Re: Bind Multiple Tables data in Datagrid

    You may try this code to bind tables.

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
    If Not Me.IsPostBack Then
    Dim sql As String = "SELECT TOP 10...
  6. Replies
    3
    Views
    4,985

    Re: image/icons in Windows form listBox

    You may try this code to add icon or image to listBox



    // GListBoxItem class
    public class GlistBoxItem
    {
    private string _myText;
    private int _myImageIndex;
    // properties
  7. Replies
    4
    Views
    5,444

    Re: Converting powershell file to C#.

    Thanks for helping out. Error got cleared.
  8. Replies
    2
    Views
    2,785

    Re: Custom Sync Tool

    You may try this code:



    public class FileSyncProviderSample
    {
    public static void Main(string[] args)
    {
    if (args.Length < 2 ||
    string.IsNullOrEmpty(args[0]) ||...
  9. Replies
    4
    Views
    5,444

    Re: Converting powershell file to C#.

    Yes, I am working on it but not getting desired output.
  10. Replies
    4
    Views
    5,444

    Converting powershell file to C#.

    I have tried this code, will it work to convert file to C#



    ## DEFINE FUNCTIONS
    function fcnLogEvent($strEventDescription,$strEventLevel) {$strDateTime = Get-Date -Format "MM/dd/yyyy...
  11. Replies
    1
    Views
    5,931

    Table View

    I am new to vb.net.
    I am not getting idea to connect to database server and get return values from table.
    Can anyone help me with coding to do it.
  12. Replies
    2
    Views
    9,390

    Re: CC and BCC not working in SMTP

    public static void Email_With_CCandBCC(String ToEmail,string cc,string bcc, String Subj, string Message)
    {
    //Reading sender Email credential from web.config file

    HostAdd =...
  13. Difference between Resonse.Redirect and Server.Transfer.

    In ASP.Net Technology both "Server" and "Response" are objects of ASP.Net. Server.Transfer and Response.Redirect both are used to transfer a user from one page to another. But there is some...
  14. Replies
    8
    Views
    3,459

    Re: MessageBox not working in vb.ne

    You may try this code:

    Private Sub cmdExit_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cmdExit.Click
    Dim intresponse As DialogResult
    intresponse =...
  15. Replies
    1
    Views
    10,766

    Re: Img Collection

    try this code:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"Inherits="Byte_array_gridview._Default" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
Results 1 to 15 of 15





Click Here to Expand Forum to Full Width

Featured