.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

how to load image from button1 to button8 in my form ?

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :Windows Application
 

hi

i have 25 button's in my form button1..button2......button25

i need to load image only from button1 to button8 (in any loop)

how i can do it ?

thank's in advance




View Complete Post


More Related Resource Links

ASP.NET: How to Load image and save to database form clientside

  
Hello, can any one help? I am using HTTPHandlers for loading the image from the database I need to change the image and save it back to the database from the client side, that is I need to browse image at client side and save the image as bytes in to databases, how to do this? Regards, satish  

Infopath cannot load this form. Either the signature is corrupted, or the certificatie used to sign

  

Hello:

I have a whole bunch of forms contains errors like whenever you try to open it up.

Infopath cannot load this form.  Either the signature is corrupted, or the certificatie used to sign this form is expired or revoked.

The forms were orginally created with digital signature with it.  But we were in the middle of transition from one company to another company.  The digital signature was no longer valid.  Actually, the certificate should have been expired by now.  I removed all the signatures for all of the forms.  So they can continue using the forms to fill in the information.  The problem right now, is trying to open the old forms with digital signature on it.   Not only the company has changed.  We also moved sharepoint from the old server to the new server.

Any idea to resolve th

Insert image into Infopath form and save to SharePoint as PDF file

  

I have an InfoPath web-enabled form in MOSS 2007, that is integrated with a K2 blackpoint process for an approval workflow.

Once the form (a Purchase Order request form) has been approved in the K2 workflow process, I switch the form view to a "print-friendly" view for the requestor to view from the browser.  However, now I need to go one step further with this scenario:

1) I need to somehow insert/embed an image with the scanned-in signature of the approver (likely stored in a SP doc library) at the signature line section of my form.  Also, what are the security requirements for storing such images, but not granting all users access to these (e.g. only services accounts that need to access this for embedding into the form, etc.)?

2) Then I need to convert this final "print-friendly" view of the form (with the signature image) to a PDF document so that I can store it in SharePoint (and email it to the requestor using K2's email event capabilities).

Can anyone help me with a solution to both of these requirement, or point me to some resources for this (even 3rd party components are open-game).

thanks!


--Thiago

opening a web browser without opening form on windows form load event

  
Hello All, I have a main frame which has a display button. after clicking on display button I usually open a windows forms. Now I have a requirement to open a web page after clicking on display button. I should not show windows form to the user. for that I had written following code in the Form_int (override) event of windows form. System.Diagnostics.Process.Start(http://www.google.com); and I commented out ShowDisplay(); code.  Everything looks good till now and when I run the project and clicked on display button web browser has been opened, but if I click again another web browser is being opening. but I don't want another browser to be opened. can anybody please help me in that. Thanks in advance.

User selectable background image for Form.

  

I have played around with the BackgroundImage option in C# and it works very well. My question is related to having the user select the image that will be the "Skin". Does anyone have or know where to find a good sample application that does something like this?

Thank you!

Sepoto.


Picture failing to load on form

  

 I have an .aspx page with a gridview and a details view for looking up products. It is working perfectly. When I select "Details" on the gridview the details view accurately populates.

I added an image named TagImageand need that image to display the correct one based upon the product changed when "Details" is hit. I'm using code behind and have checked my image directory string to make sure it is OK but the images do not display. Here is the vb.net code hehind I am using that successfully populates the details and was hoing it to display the picture:

    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

        AccessDataSource2.SelectParameters("ProdID").DefaultValue = _
        GridView1.SelectedDataKey.Value.ToString()
         TagImage.ImageUrl = "www.somewebsite.com/images/" + "ProdID" + ".jpg"     'e.g. image name = 1234.jpg and ProdID = 1234

    End Sub

 

 

p.s. I tried 

TagImage.ImageUrl =

Web form page load event

  

I have  Web page that uses LinkButton control inside Template Fields of Gridview.

I am trying to work on LinkButton Click event and trying to preserve the Value of LinkButton that user click, and based on that value, i want to refresh tha page data.

I used CommandName and CommandArgument property of Linkbutton, but i can use that property only in GridView_RowCommand method by checking e.CommandName expression. But the problem with that Gridview_RowCommand event fire after all other page_load activity. So the value never used in the page_load event to refresh the data in all other control.

I also tried to use OnClick Method, Session variable and Hidden variable. but when i run Response.Redirect method from Gridview_RowCommand, it clear all the Session and Hidden variable values. also tried (Response.Redirect(,false)) method but never got success.

Any suggestion will be appricated in advance.


problem with XamlReader Load/Parse image

  

I got error with this below:

string imageCompXaml = serialized image (bitmap)

Image imgObj = XamlReader.Parse(imageCompXaml) as Image

err: Property 'UriSource' or property 'StreamSource' must be set

i can workaround the problem by

  imgObj = new Image();
  imgObj.BeginInit();
  imgObj.Source = BitmapImageObject;
  imgObj.EndInit();

problem is by doing i missed out lot of other details.

I have a string, this is the serialized of the Image object, which is BitmapImage

I missed out the Image.prop details, like the width/height.

the image size is not same as the BitmapImage object, its a scaled/sized-down bitmap.

so using the 2nd Source workaround, i can't get back the actual image sizing (b4 serialize)

is there a way i can tackle at the XamlReader.Load/Parse() to resolve the err

or how to get back the image prop/details with my workaround?


how can i load a window1.xaml form from click event fuction of a button

  
how can i load a window1.xaml form from click event fuction of a button

problem with XamlReader Load/Parse image

  

I got error with this below:

string imageCompXaml = serialized image (bitmap)

Image imgObj = XamlReader.Parse(imageCompXaml) as Image

err: Property 'UriSource' or property 'StreamSource' must be set

i can workaround the problem by

  imgObj = new Image();
  imgObj.BeginInit();
  imgObj.Source = BitmapImageObject;
  imgObj.EndInit();

problem is by doing i missed out lot of other details.

I have a string, this is the serialized of the Image object, which is BitmapImage

I missed out the Image.prop details, like the width/height.

the image size is not same as the BitmapImage object, its a scaled/sized-down bitmap.

so using the 2nd Source workaround, i can't get back the actual image sizing (b4 serialize)

is there a way i can tackle at the XamlReader.Load/Parse() to resolve the err

or how to get back the image prop/details with my workaround?


How to make GIF image transparent on windows form app

  
Hi

I got transparent image saved in GIF format, and I want to put this image on other image. The problem is that this gif image is not transparet anymore when I use picturebox or pannel. I also set BackColor to transparent, but it not works :S ... here example:

Image

That white background needs to be transparent .. how can I do that?

I'm using Microsoft Visual C# 2010 Express

How Image add to any control of infopath 2007 form.

  

Hi,

I have create a BITMAP in my code i want to attach this image to infopath form... please help....

public void FormEvents_Loading(object sender, LoadingEventArgs e){

Bitmap BM = barcode_generator("*ABCD*");

}

private Bitmap barcode_generator(string data)
        {
            Bitmap barcode = new Bitmap(1, 1);
            Font font = new Font("Free 3 of 9", 60, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
            Graphics graf =  Graphics.FromImage(barcode);
            SizeF datasize = graf.MeasureString(data, font);
            barcode = new Bitmap(barcode, datasize.ToSize());

            //graf = new Graphics.FormImage(barcode);
            graf.Clear(Color.White);
            graf.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixel;
 &

edit form load slow

  

Hi

I have recently noticed that ,my list edit form page load time is more compare to old version .

I have a large list with 15,000 items and 43 fields. Out of 43 fields only 25 fields available for edit in edit form.

and 12 fields are lookup and I have field edit permissions(code art codeplex solution http://sppex.codeplex.com/) enabled for different users.

My new item form is loading very quickly but edit form taking more than a minute. I tried with helath reports and firebug and yslow tools.

I didn't success with any reason. I request you to send me why it is happening to the edit form page only and that too with IE 8

In mozilla it is loading in max 20 seconds. I tried all IE 8 testings but no success.

Let me know what can I do to improve page load time for my list edit form.

Please help it out.

I am reposting again in this forum from other sp2010 forum

 


Auto click Literal Control on Form Load

  

Hi Everyone,

          How can one Auto click a Literal Control button on Form Load???


Converting windows form to bmp - image crops when the screen resolution is changed

  

I am converting windows form to a bitmap file using   DrawToBitmap method.  My code looks like this.

            Dim wid As Integer = 760 '  Me.Width
            Dim hgt As Integer = 780 ' Me.Height
            Dim bm As New Bitmap(wid, hgt)
            Me.DrawToBitmap(bm, New Rectangle(0, 0, wid, hgt))
            bm.Save(CurDir() & "\sample.bmp")

This code work fine on desktop/laptop with the screen resolution 1024 x 768  or above.   If I use app on a table pc – with the screen resolution is 800 x 480, the image gets cropped. 
Any suggestion or alternate mode.

Thanks


problem with Form in visual studio load with delay

  

my project have a base form

all form in project loading bad. mean tha control on it splash.

where is problem?


C# Is My World

how to run from button1 to button5 in my form ?

  
hi

i have 5 button's and 3 textbox in my form (WinForm)

i need to run from button1 to button5 and change the text to "aa" for example

how to do it ? (in C# code)

thank's in advance

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend