|
Hi,
those are bit fields, not a bitmap. And C# doesn't offer any help at all for doing such things. You could define a struct with public properties that contain code to perform all the bit operations (AND, OR, SHIFT).
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
This struct is equal unsigned long variable which is similar to ulong .NET type.But you should define your own logic to extract the members from the variable.This stuff should help.
Life is a stage and we are all actors!
|
|
|
|
|
This looks a little like a BitArray . You might take a look at the documentation MSDN[^], and see if it suits.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hi,
i have tiny c# apps and when i try to make setup and trying to install it on 32 bit then it is working fine but when i am trying to install it on 64 bit then it is giving error after few minute of installation. so please tell me someone how to generate a setup which work on all the machine mean 32 & 64 bits both.
please help me.
Thanks in advance
tbhattacharjee
|
|
|
|
|
|
Is it possible to add tree control in sourcegrid column?///
|
|
|
|
|
|
I want to make one of the ActionPaneItems in MMCListView to be not available or gray when user right click a SelectedData.
But I dont know how,please help me
|
|
|
|
|
I am binding dropdownlist zone from database and want to add keyword "SELECT"
as first values (at 0 index).
My code is
ddlZone.Items.Insert(0, "SELECT");
but its not working.
Can anyone help me
Thanks
|
|
|
|
|
Hmm.. looks ok to me. Do you databind before you call the Items.Insert method?
Maybe you could post some more code..?
|
|
|
|
|
Yes i binding data. My complete function is
private void BindZOne()
{
using (Common ComObj = new Common())
{
DataSet Ds = ComObj.BindZone();
if (Ds.Tables[0].Rows.Count != 0)
{
ddlZone.DataSource = Ds;
ddlZone.DataTextField = Ds.Tables[0].Columns["ZONE"].ToString();
ddlZone.DataValueField = Ds.Tables[0].Columns["ZONE"].ToString();
DataBind();
ddlZone.Items.Insert(0, "SELECT");
} Ds.Dispose();
}
}
|
|
|
|
|
It might just be a typo from your part, but unless you have a method called DataBind that takes care of the databinding part for your drop down list, you should probably call the ddlZone.DataBind() method instead..
|
|
|
|
|
I am binding dropdownlist zone from database and want to add keyword "SELECT"
as first values (at 0 index).
My code is
ddlZone.Items.Insert(0, "SELECT");
but its not working.
Can anyone help me
Thanks
|
|
|
|
|
Bind an Empty string as the First item
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Take a look at Unbound items in a bound ComboBox[^].
Alternatively in this[^] thread (scroll down to the bottom and look for a reply from 'BOZ') there is a solution that seems to work.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
modified on Tuesday, August 18, 2009 7:52 AM
|
|
|
|
|
I was wonder if it was possiable to create a bar code reader for in c# for a windows mobile device which can use photos taken by the camera while the program is running.
Also is it possiable to pass another program information and reutrn this information back to my c# program?
I am doing research into a possiable dissatation preposal to create and GPS orinting game.
Any help on how to do this would be very helpful.
|
|
|
|
|
Paul Harsent wrote: I was wonder if it was possiable to create a bar code reader for in c# for a windows mobile device which can use photos taken by the camera while the program is running.
I'm not sure about C#/WinMo but there's a few Android offerings that may be good for research purposes for you. One of the apps hooks into this[^] I believe.
Paul Harsent wrote: I am doing research into a possiable dissatation preposal to create and GPS orinting game.
Google around for "Augmented Reality", a few apps already exists, e.g. Wikitude and Layar. Although they're not games, they might prove an interesting read for you.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Hi
I have a SortedDictionary and I need to find the first key match with the character(s) given. For example, if c has been pressed, I need to get the first word in the SortedDictionary that starts with 'c'. Is that possible?
I've read about
SortedDictionary< TKey, TValue> .First Method and
Enumerable.First< TSource> Generic Method (IEnumerable<TSource>, Func<TSource, Boolean>)
in MSDN, but I can't understand it.
|
|
|
|
|
I believe the second is telling you that you can write a function that takes the tsource and returns a bool to tell you a match, and pass it to the First method.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
In IE, when You type some URL in the address bar, corresponding web page will be displayed on screen.
How to catch this web page data on IE, using c#.
|
|
|
|
|
If your IE is a browser control inside your app, you can examine the HTML from there. If it's just IE, you may well be screwed.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
i am also working in the similar type of problem.
using SHDocVw.InternetExplorer, you can get the DOM object.
from that you can get the entire source...
i am just struggling to get the frame element values in Gamail because it uses some strange format. by all means you can just catch the data from the DOM.
Regards
.....Jack
|
|
|
|
|
My project is large, so I can't remember when I last made any changes to this particular form, which used to work.
To bind the my datasets to the datagridviews I have:
bsUsers.DataSource = dsUsers;
bsUsers.DataMember = "UserList";
dgvUsers.DataSource = bsUsers;
bsRoles.DataSource = dsRoles;
bsRoles.DataMember = "RolesList";
dgvRoles.DataSource = bsRoles; The grids display the correct data.
At the start of saving changes I have:
Validate();
BindingContext[dsRoles, "RolesList"].EndCurrentEdit();
BindingContext[dsUsers, "UserList"].EndCurrentEdit(); The last line gives the runtime error "Child list for field UserList cannot be created". The previous line (dsRoles) works.
I have copied and pasted "UserList" just to make sure that there are no invisible spelling mistakes.
In the Watch pane I can't find any property for dsUsers where one can check if "UserList" is still correct.
|
|
|
|
|
Are you trying to reinitialize your grids bindings few times?
Life is a stage and we are all actors!
|
|
|
|
|
I want to make a C# calendarin which I want to show all the events( plans, appointments, festivals etc) from a database.The application should be a Windows application.
Would you please list me the possible( some easiest) ways of doing that.
1) Is there any to to select a date and write some text in it?
2)If I am making a custom calendar by inheriting the monthCalendar class, what are the extra things I need to do or learn?
3)Is there any way to bind the monthcalendar or a class inherited from monthecalendar class, in which I associate it to a
source and the events goes to their respective dates?
Any help will be highly appreciated.
|
|
|
|