我需要能够在标签上滚动文本我正在使用这个用于tic tac toe游戏的信用部分.我怎样才能实现这一点我们只被教导滚动滚动条中的数字值而不是文本.
private void xGameCreditsButton_Click(object sender, EventArgs e)
{
this.xWinnerLabel.BackColor = Color.White;
this.xCreditsScrollBar.Visible = true;
this.xWinnerLabel.Text = "This game was made possible with the help of: blah bla blah";
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试重新创建一个基于asp的时间表,我无法弄清楚如何获得当前周的开始日期"6-13-2010"并让它填充一个组合框你可以帮助我这个我是C#和asp编程新手.
你能告诉我如何以第5范式获得这个ERD吗?昨天我们做了一个班级任务,我们有一个真正的客户进来并向我们解释他的需要我的小组想出了这个模型我试图更进一步看看我是否可以把它变成第5范式以便我可以更好地理解它,因为下周我们将做另一组ERD,必须在5nf,事情是我不知道从哪里开始,这本书没有通过我.你能帮助我吗?Erd Model http://img534.imageshack.us/img534/2118/capturekk.jpg
新信息"虚假客户需求"
客户有两个部门"实验室1,实验室2"从他那里订购医疗用品,如手套和π宠物等.部门已经增长,他想跟踪库存中的供应商销售的产品最优惠的价格和成本中心.
他解释这个项目的方式是,一个人去找他,然后要求他提供物资,然后他从人名和成本中心写下这个人的实验室.但他也希望跟踪按日期购买的商品以及库存和必须购买的商品.他还举了一个例子,一些用户希望来自特定供应商的商品可能没有最优惠的价格,并且他还在邮件中收到了一些他想跟踪的价格目录.
如果它混乱,我道歉,但这都是记忆.
一位兼职漫画家的奶农也有几头奶牛.他将每头牛分配给一个特定的牛群.在每个牛群中,农民都有一头他最喜欢的牛 - 通常是牛在动画片中的特色.每个牛群中的一些不满,主要是那些认为应该出现在卡通片中的人,不同意农民对最喜欢的牛的选择,他们贬低地称之为神圣的牛.结果,每个牛群现在都选出了一个牧群领袖.
这就是我认为表格应该是什么样的,如果可以做得更好,你可以告诉我吗?到目前为止,我正在使用喜欢的表做多对多,因为中间是这是最好的解决方案,也不需要SQL语句这只是出于设计目的.
先感谢您
Table Herd Table Favorite Table Cartoon Table Cow
PK herdID Intermediate Table PK cartoonID PK cowID
herdname cartoonTitle cowName
herdleader cartoonType
cartoonDate
Run Code Online (Sandbox Code Playgroud)
编辑图片@ 3:01 pmEST这是对的吗?
cowErd http://img838.imageshack.us/img838/1268/capture3h.png
添加了新的图像@ 8:57 am 7/20/2010可以有人评论这个ERD请 Erd2 http://img37.imageshack.us/img37/5794/capture3fc.png
添加新图片@ 12:47 pm 7/20/2010除非有任何异议,这是每个Mark的解释标记ERD的最终草案 http://img651.imageshack.us/img651/691/capture4b.png
我试图从3个表中获得结果,但它重复了PART_ID并反复显示相同的id.我怎样才能解决这个问题?
<?php
$product_list = "";
$sql = mysql_query("SELECT * FROM PART, PART_TYPE, RACK");
$productCount = mysql_num_rows($sql);
if ($productCount >0){
while($row= mysql_fetch_array($sql)){
$id = $row["PART_ID"];
$PART_DESC = $row["PART_DESC"];
$SERIAL_NUM = $row["SERIAL_NUM"];
$RACK_NUM = $row["RACK_NUM"];
$PART_TYPE_ID = $row["PART_TYPE_ID"];
$PART_TYPE_DESC = $row["PART_TYPE_DESC"];
$product_list .= " <strong>PART_ID:</strong> $id -<strong>$PART_DESC</strong> -<strong>Product Type</strong> $SERIAL_NUM - <em><strong>RACK_NUM</strong> $RACK_NUM - <em> <strong>PART_TYPE_ID</strong> $PART_TYPE_ID - <em> <strong>PART_TYPE_DESC </strong> $PART_TYPE_DESC - <em> <a href='inventory_edit.php?pid=$id'>edit</a> • <a href='inventory_list.php?deleteid=$id'>delete</a><br />";
}
}else
$product_list = "You have not items in …Run Code Online (Sandbox Code Playgroud) 我在这做错了什么?我希望用户名在输出中显示为正确但我无法弄明白.
string proper = this.xTripNameTextBox.Text;
CultureInfo properCase = System.Threading.Thread.CurrentThread.CurrentCulture;
TextInfo currentInfo = properCase.TextInfo;
proper = currentInfo.ToTitleCase(proper);
this.xTripOutputLabel.Text = proper + Environment.NewLine + "The total gallons you would use: " + Output.ToString("0") + Environment.NewLine + "Total amount it will cost you: " + Coutput.ToString("C") + Environment.NewLine +" Your customer number is " + rnd1.Next(1, 1000).ToString();
Run Code Online (Sandbox Code Playgroud) 我的公司丢失了用于delphi的CD,现在我们正在尝试搜索我们确实拥有我们的CD密钥的副本而不是实际的CD有没有人有副本或知道我可以在哪里购买?
我试图使用逗号作为分隔符从文本文件填充组合框一切正常,但现在当我调试时,我得到"索引超出范围异常未处理"警告.我想我需要一双新眼睛看看我哪里出错了,我评论了得到错误的行// Fname = fields [1];
private void xViewFacultyMenuItem_Click(object sender, EventArgs e)
{
const string fileStaff = "source\\Staff.txt";
const char DELIM = ',';
string Lname, Fname, Depart, Stat, Sex, Salary, cDept, cStat, cSex;
double Gtotal;
string recordIn;
string[] fields;
cDept = this.xDeptComboBox.SelectedItem.ToString();
cStat = this.xStatusComboBox.SelectedItem.ToString();
cSex = this.xSexComboBox.SelectedItem.ToString();
FileStream inFile = new FileStream(fileStaff, FileMode.Open, FileAccess.Read);
StreamReader reader = new StreamReader(inFile);
recordIn = reader.ReadLine();
while (recordIn != null)
{
fields = recordIn.Split(DELIM);
Lname = fields[0];
Fname = fields[1]; // this is where …Run Code Online (Sandbox Code Playgroud) 如何在某人按下表单上的回车键的情况下将其提交给提交此代码?
香港专业教育学院尝试过KeyPress活动......但我似乎无法弄明白.
private void
xTripSubmitButton_Click(object sender, EventArgs e) {
// Calculates the numbers from the input and output boxes/labels
Miles = double.Parse(this.xTripDestinationTextBox.Text);
Mpg = double.Parse(this.xTripMpgTextBox.Text);
Price = double.Parse(this.xTripPricepgTextBox.Text);
Output = Miles / Mpg;
Coutput = Output * Price;
//displays a message and the result for the numbers the user inputs
this.xTripOutputLabel.Text = "Total gallons you would use: " +
Output.ToString("0") +
Environment.NewLine + "Total amount it will cost you: " +
Coutput.ToString("C");
}
Run Code Online (Sandbox Code Playgroud) 当我按下表单上的X时,如何阻止消息框显示两次?仅供参考,但是按钮点击工作正常,这是提示我两次的X.
private void xGameForm_FormClosing(object sender, FormClosingEventArgs e)
{
//Yes or no message box to exit the application
DialogResult Response;
Response = MessageBox.Show("Are you sure you want to Exit?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
if (Response == DialogResult.Yes)
Application.Exit();
}
public void button1_Click(object sender, EventArgs e)
{
Application.Exit();
}
Run Code Online (Sandbox Code Playgroud)