Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

benqazou

@benqazou
About
Posts
82
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Browsing a ListBox
    B benqazou

    Thank you. I found some help here : http://www.eggheadcafe.com/articles/20051130b.asp[^] In fact here is the code : foreach (DataRowView drv in lbox.SelectedItems) { //Display column Id MessageBox.Show(drv.Row["Id"].ToString()); }

    Windows Forms

  • Browsing a ListBox
    B benqazou

    Hey, Of course I've done many research before asking here.. The problem i have is not with getting the collection of selectediems (lbox.SelectedItems and lbox.SelectedIndices..etc) but when trying to retrieve the Value associated to a selecteditem.. Thanks.. for not helping..:-D

    Windows Forms

  • Browsing a ListBox
    B benqazou

    Hey, I need to browse a multiselection ListBox, especially getting the Values of selected items. I filled it like this : lbox.DataSource = 'some datatable'; lbox.DisplayMember = "Col1"; lbox.ValueMember = "Col2"; The SelectionMode chose is : MultiSimple I need something like this foreach (item in the selected items) { Display its value.. etc } Thank you.

    Windows Forms

  • Session like variables
    B benqazou

    Hello, Thanks gajatko for your help. Your code uses generics and SettingsClass that are not available in C# 1.1. How can I rewrite it to make it work in VS2003? Thanks. -- modified at 10:25 Monday 24th September, 2007

    Windows Forms design regex architecture help question

  • Session like variables
    B benqazou

    Hello, In fact i've been misunderstood. I am talking about Winforms not Webforms. You know that in Webforms you have predfined classes that allows the persistence of variables (or objects) and sharing them between Webforms (Application and Session classes). What I want is to implement something similar in Winforms, i.e declaring some variable in Form1, and using it in Form2 .. FormN.. I guess that the first answer of gajatko would help. Thank you.

    Windows Forms design regex architecture help question

  • Session like variables
    B benqazou

    Hey, I need to share variables among forms in the Web session (or application) manner. I used to have some code - which I don't have now- that implements the singleton design pattern and allows adding and retrieving objetcs this way : Application["MyObject"] = object; Can you help? Thanks.

    Windows Forms design regex architecture help question

  • Global variables (WinForms)
    B benqazou

    Hi, I have developped no more Winforms applications since quite long. I can't see how to create "global variables or objects" that would be shared among all the winforms? In the webforms I was used to Session variables, but with winforms..? Any clue to do the same? Or in message driven way? Any help is welcome. Thanks a lot.

    C# csharp winforms help tutorial question

  • Please Help
    B benqazou

    Salam, First, do you have an SMTP server installed on one of your machines?? Or do you have an email with SMTP support (free webmails like yahoo, hotmail..etc do not allow to send emails programmatically through their SMTP servers...) Once you have a valid SMTP server, here's some code to do so : MailMessage mail = new MailMessage(); mail.To = "xxxx@yahoo.com"; mail.Bcc = "yyyy@yahoo.com; sersif@mce.gov.ma"; mail.From = "your email or name"; mail.Subject = "your subject"; mail.Body = "your subject"; mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "YOUR EMAIL USERNAME"); //set your username here mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "YOUR EMAIL PASSWORD"); //set your password here SmtpMail.SmtpServer = "10.4.1.2"; //your real server goes here SmtpMail.Send(mail);

    ASP.NET help

  • rediobutton
    B benqazou

    Hey, You need to set the radionbutton AutoPostback property to 'true'.. Then by double clicking the radiobutton, VS creates a method radiobutton_checkedchanger(..) where you write the code to enable the dropdownlist.. I'd rather suggest you use a checkbox instead of a radiobutton. Good luck.

    ASP.NET question

  • When Send Email this error is occur
    B benqazou

    That's very likely because your machine (localhost) is not an SMTP Server. حظا سعيدا

    ASP.NET help sysadmin data-structures debugging

  • Where in('aa','na'dn') Problem
    B benqazou

    In fact these are two single quotes (not a double quote).

    ASP.NET help csharp database mysql

  • Where in('aa','na'dn') Problem
    B benqazou

    If you were using SQL Server, you would have to write : select * from cars where car_make in('BMW','Mercedes','Accura','infin**''**it') For MySQL I am not sure, but try it this way.. I hope it'll work.

    ASP.NET help csharp database mysql

  • .net Language Interoperability
    B benqazou

    Hey, I don't have the magic solution for you, but just a remark. Your VC++ program compiles into an exe, because there it's designed to.. You can try to encapsulate the logic you need in it into a dll, but then you need to create another project.

    ASP.NET csharp c++ asp-net help tutorial

  • why the web is stateless?
    B benqazou

    This will illustrate my previous post : http://www.csd.uoc.gr/~hy556/notes/extra/HTTP/node5.html[^] Good luck.

    ASP.NET question

  • why the web is stateless?
    B benqazou

    Hey, The Web is stateless because HTTP is connectionless. That's to say for every ressource the a client wants, it(they) must send a request and wait for a reply. And that's all. There is no connection that is open at the beginning and maintained, but : A request and a reply for every ressource (html file, image, ..) -- modified at 11:46 Tuesday 4th April, 2006

    ASP.NET question

  • How to store a password field in the SQL database?
    B benqazou

    Hey, Here are some tips for a better password management: 1-Access to the user table (at least) should be very limited! 2-Do never store passwords as they are in the database; just store their hashes (or digest) (Look for md5 and c# for example in Google) Good luck

    ASP.NET database tutorial question

  • Erorr..!!
    B benqazou

    Hey, IMO it's a configuration problem. I mean your application is not set as a Web application in IIS. To check this, run INETMGR (run command), look for your application folder and see if it's marked as a Web application.. Good luck.

    ASP.NET sysadmin windows-admin security help workspace

  • asp.net vs php
    B benqazou

    Assalamu alaikum, You can use PHP with almost any RDBMS, all you may need is to install a specific provider to each RDBMS. For .Net it is the same, you can use MySQL as well as any other RDBMS. Good luck.

    ASP.NET database csharp php asp-net mysql

  • What is the datatype of a control's width property?
    B benqazou

    Hey, Clearly the width property is always an integer. The problem (I guess) in your code is that Me.width * (test/100) is not always an integer (eg. test = 3.. or so) But a float.. And C# (or VB.Net) does not convert (or cast) implicitly an integer into a float or decimal.. Just try this : label1.width =(int) Me.width * (test/100) //C# not VB Good luck.

    ASP.NET question csharp asp-net help

  • Client Emails
    B benqazou

    Is this what you mean by your first question : [tell a friend](mailto:someone@somewhere.com?subject=look at this website&body=Hi, I found this website and thought you might like it http://www.geocities.com/wowhtml/) ?? -- modified at 9:22 Monday 27th March, 2006

    ASP.NET design help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups