|
If you look in the Solution Explorer (use View | Solution Explorer menu to open it, if it isn't already open) select the project that couldn't be located and then press F4. That will bring up the properties window for that project and the last line will contain the path where the solution file expected to find it. Change that to the actual location of the project file (whatever.csproj). An ellipsis will appear if you click on the path, clicking it will open a file browser.
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
can any one tell me how to take backup and restore of mysql through c# using ODBC connection?
regards,
Mariam
|
|
|
|
|
Like this[^]
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks but they show backup of microsoft sql server while my query is related to MySQL
regards,
|
|
|
|
|
|
|
Dear Fellows,
I have an xml file
<subjects>
<publishers name="wrox">
<book>
Beginning c#
</book>
<book>
Beginning ASP.NET WITH C#
</book>
</publishers>
<publishers name="Masters">
<book>
master in c#
</book>
<book>
master ASP.NET WITH C#
</book>
</publishers>
</subjects>
First I only want to display its publishers name in datagridview. When a user press any publisher name he will be able to see name of books in datagridview below the publisher name on which he click.
You can say it as a tree view operations that I want to perform in datagridview.
I need your help to understand this problem that how can I overcome it and how I can solve it. Codes and references will certainly help alot.
I will be thankful to all those who help me.
Thank you.
Regards,
Zeeshan Ahmed.
|
|
|
|
|
I am using Ajax Timer control in my OnlineTest Application.
suppose if exam duration 45 mintes means i am adding 45 minutes to server time and i am subtracting with current server time and i will get 45 minutes with that i am reducing time in the form of seconds
like 45:59,45:58.
I am using ASP.Net 2.0,Ajax1.0, MS Access Database.
but during postback means if i click on "Next" button(next question will appear in the next page)
that time i am not able to maintain time what ever time it has taken during postback again from that i am able to continue again..please could u help me regard in this
this is my aspx page
<asp:UpdatePanel runat="server" ID="uppnlTimer" RenderMode="Inline" UpdateMode="Conditional">
<triggers>
<asp:AsyncPostBackTrigger ControlID="tmrTest" EventName="Tick" />
</triggers>
<contenttemplate>
<asp:Timer ID="tmrTest" runat="server" OnTick="tmrTest_Tick" Interval="1000">
</asp:Timer>
<asp:Label runat="server" ID="lblStartTime" Text="Start Time:" CssClass="lbl" />
<asp:Label runat="server" ID="lblStartTimeValue" CssClass="lblbold" />
<asp:HiddenField ID="hid_Ticker" runat="server" Value="0" />
</contenttemplate>
</asp:UpdatePanel>
this is Code behind code
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataSet dsServerTime = new DataSet();
DataSet dsExamTime = new DataSet();
dsServerTime = objOnlineTestPaperBAL.GetServerTime();
dsExamTime = objOnlineTestPaperBAL.GetServerTimeWithExamDuration(ExamTime);
if (dsServerTime.Tables[0].Rows.Count > 0)
{
string serverTime = dsExamTime.Tables[0].Rows[0]["ExamTime"].ToString();
minutes = Convert.ToInt32(serverTime);
hid_Ticker.Value = new TimeSpan(Hours, minutes, seconds).ToString();
if (Session["time"] != null)
{
string time = (string)Session["time"];
string[] str1 = time.Split(':');
minutes = Convert.ToInt32(str1[1]);
seconds = Convert.ToInt32(str1[2]);
lblStartTimeValue.Text = Convert.ToString(minutes) + " : " + Convert.ToString(seconds);
hid_Ticker.Value = new TimeSpan(Hours, minutes, seconds).ToString();
Session["time"] = hid_Ticker.Value;
}
else
{
lblStartTimeValue.Text = Convert.ToString(minutes) + " : " + Convert.ToString(seconds);
}
}
}
Session["TestStart"] = System.DateTime.Now;
}
please help me regard in this....
|
|
|
|
|
If I understood your question correctly, you do not want to penalize the user for the time it takes the Page to PostBack. Why don't you add an OnClick() event to the Next button to capture the time remaining and send it to a Session variable, first, before calling the next question, etc. Then once the page has posted back you can retrieve the time remaining from the Session variable?
Regards,
Gary
|
|
|
|
|
Hello all,
I have a little problem that I cant seem to understand, maybe someone has come across this before.
Basically I have a panel in a form. The only thing that is in this panel in 1 Label control.
The following properties have been changes:
RightToLeft set to yes
TextAlign set to TopRight
Anchor set to BottomRight
AutoSize set to true
FontStyle set to Bold
The text should say "Email Address:"
This displays in XP fine, however in Vista the text is displayed as ":Email Address"
if I set text to "Email Address:a" then it also displays fine (in both XP and Vista)
Any ideas?
Thanks
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: RightToLeft set to yes
Why ? Doesn't this seem like it could be the issue ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Yep
That's the problem. I set that to make sure it auto sizes in the right direction. But I will change it to default now and move the label with code if need be.
Still I would have expected all characters to be reversed thou.
Anyway, Thanks
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi all,
I want to do something like this.
A collection, which is not sorted in insertion(added in the next index) and avoid duplicate. Which can I use?
Thanks.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
There is no set class in .NET. You'd have to add set behaviour to a list, by searching for items and not inserting them if they exist.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
AFAIK there isn't one. You can always create your own and use new a new Add method - something like
public class MyList<T> : List<T>
{
public new void Add(T item)
{
if (!Contains(item))
base.Add(item);
}
} You'll need to do something similar for AddRange, and keep track of any changing items to make sure they don't create duplicates.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
There is library available from Wintellect that has unordered set, the one you are looking for. You might try it if you wish.
|
|
|
|
|
It's worth remembering that there isn't a one-size-fits all algorithm to do stuff like this. The framework provides a set of general purpose collections and algorithms, but they might not be good enough in specific scenarios.
An unsorted list, which is what I understand you want, is going to be very slow at detecting duplicates. And its going to seriously degrade if you've got lots and lots of things in your collection. It might be worth running two data structures alongside each other to mitigate this.
So, roughly how many things are you going to insert into this? Is memory consumption an issue for you? Can we remove duplicates later on, or does it have to be done on insertion?
Regards,
Rob Philpott.
|
|
|
|
|
If you can use .NET 3.5, there is an HashSet class.
Otherwise, you have to build one, as others have said.
|
|
|
|
|
|
We have a WPF forum. Try to speak english, 'dat' is not a word, for example.
If your control is data bound using an observable collection, swapping the items in the collection, will swap them in the control.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Try not to delete questions, often people get referenced to these questions. Deleting them is pointless.
|
|
|
|
|
Please help
I am developing a CISCO IPPhone Solutions, and one of the feature is RTP streaming. As I search on the the web (including on CISCO) there is no any simple exmple how to implement this. However, on codeproject, I found one but seem like not match with my requirment. WinRTP should the correct solution, but I have no idea about it. Can any one englight me please.
Thank for advacned.
|
|
|
|
|
Dear All,
Our requirement is a cab has assigned to Pick and Drop the employee for each and every shifts for the selective date. So, we need to show how much distance a cab has travelled, then we need to show that cab has been assigned for Pick/Drop for all the selective date.
As per my Procedure we can get the "Shift Date Time", "Cab No", "Pick/Drop" value, etc....
In Range chart I need to show the "Shift Time" in "X Axis" like "9 AM", "10 AM", "11 AM".....upto Next day "8 AM".
then In "Y Axis" I need to show "Shift Date Time" & "Cab No." which come from table.
In "Y Axis" i can not show the "Shift Date Time", So, I tried to show in "X Axis", but I can show only shift Date not time.
Actually I need to show the shift date in "Y Axis" only.
If any one have the solution, Please reply me.
Thanks in Advance.
Regards,
Jegan.K
9994388922
Jegan
|
|
|
|
|
Hi!
I have ha promblem with adding items to a DataGridViewComboBoxCell. This is what I am doing.
private void SetUpforDataGridView()
{
dataGridViewSearched.ColumnCount = 5;
dataGridViewSearched.ColumnHeadersDefaultCellStyle.BackColor = Color.Navy;
dataGridViewSearched.ColumnHeadersDefaultCellStyle.ForeColor = Color.White;
dataGridViewSearched.ColumnHeadersDefaultCellStyle.Font =
new Font(dataGridViewSearched.Font, FontStyle.Bold);
dataGridViewSearched.Name = "Users Searched";
dataGridViewSearched.AutoSizeRowsMode =
DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders;
dataGridViewSearched.ColumnHeadersBorderStyle =
DataGridViewHeaderBorderStyle.Single;
dataGridViewSearched.CellBorderStyle = DataGridViewCellBorderStyle.Single;
dataGridViewSearched.GridColor = Color.Black;
dataGridViewSearched.RowHeadersVisible = false;
dataGridViewSearched.Dock = DockStyle.Fill;
DataGridViewComboBoxColumn dataGridViewcombobox = new DataGridViewComboBoxColumn();
dataGridViewSearched.Columns.Add(dataGridViewcombobox);
dataGridViewSearched.Columns[0].Name = "UserId";
dataGridViewSearched.Columns[1].Name = "Förnamn";
dataGridViewSearched.Columns[2].Name = "Efternamn";
dataGridViewSearched.Columns[3].Name = "Legitimation";
dataGridViewSearched.Columns[4].Name = "Yrkesroll";
dataGridViewSearched.Columns[5].Name = "Enheter";
dataGridViewSearched.Columns[5].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
dataGridViewSearched.Columns[0].Visible = false;
dataGridViewSearched.Columns[0].DefaultCellStyle.Font =
new Font(dataGridViewSearched.DefaultCellStyle.Font, FontStyle.Italic);
dataGridViewSearched.SelectionMode =
DataGridViewSelectionMode.FullRowSelect;
dataGridViewSearched.MultiSelect = false;
}
And the I am trying to set the table with an object it works fine with the text propertis but not with the DataGridViewComboBoxCell.
public void BindUserList(List<User> userList)
{
dataGridViewSearched.Rows.Clear();
object[] row = new object[5];
foreach (User p in userList)
{
row[0] = p.UserId;
row[1] = p.FirstName;
row[2] = p.LastName;
row[3] = p.MedicalProfession;
row[4] = p.ProfessionalRole;
dataGridViewSearched.Rows.Add(row);
foreach (var unit in p.UnitActivationPeriods)
{
((DataGridViewComboBoxCell)dataGridViewSearched.Rows[dataGridViewSearched.Rows.Count - 1].Cells[5]).Items.Add(unit.ToString());
}
dataGridViewSearched.Rows[dataGridViewSearched.Rows.Count - 1].Tag = p;
}
labelNumberOfUsers.Text = userList.Count.ToString();
dataGridViewSearched.Refresh();
}
Thanks, Mjelten
modified on Tuesday, June 23, 2009 6:51 AM
|
|
|
|
|
Is there a better way to code the second foreach...?
bool blnAccepted = false;
IList<Country> ftList = svc.GetCountryList;
IList<County> CountyList = svc.GetCountyList;
foreach (Country c in ftList)
{
blnAccepted = false;
foreach (County ic in CountyList)
{
if (ic.County == c.County)
{
blnAccepted = true;
break;
}
}
if (blnAccepted)
{
}
}
|
|
|
|