|
Some models do render with color, but from what I see, it is the material color included within the model itself.
I don't think the textures are rendering. As I said in a previous reply, the textures are compiling.
|
|
|
|
|
OK, I've done some research and I've found the trouble, though I still haven't quite worked out a solution.
It's something to do with the way I'm rendering the models. It works fine in XNA but not in Monogame.
Something along these lines will solve the problem.
foreach (var pass in effect.CurrentTechnique.Passes){
pass.Apply();
}
|
|
|
|
|
I had developed a dot net website in c#.I want to embed a video in my website,which should be compatible in all browsers without using html5.I had tried but the video is playing or compatible on IE only.What should i do.please provide some suggestions or code.I will be grateful to you.
thanks
|
|
|
|
|
Please don't cross post. By posting in multiple places, you minimise your chances of getting an answer because the threads become scattered all over the place.
|
|
|
|
|
Hi,
I am new to automation and I would like to know whether coded UI tool supports automation of WPF application? If Yes, then which Version supports the same? My application has 90% of Telerik Radgridview features.
Your feedback is highly appreciated, please do the needful ASAP.
Thanks,
QA
|
|
|
|
|
|
i want to use external physical combobox which is filled with dataset .i want this combobox to be available in the grid at particular cell address when i enter into that cell. navigation should be with keyboard.
thanks in advance
i use following code but it does not available in Cell enter & also keyboard navigation are not working.
1-Formload
datagridview1.Controls.Add(conbobox1);
2-Cell Begin Edit
private void datagridview1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
{
if (datagridview1.CurrentCell.ColumnIndex == 16)
{
conbobox1.Visible = true;
conbobox1.Size = datagridview1.CurrentCell.Size;
conbobox1.Location = datagridview1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true).Location;
}
|
|
|
|
|
I'm accessing WCF via Excel VBA using WCF Service Moniker[^].
Despite issues with https, non-intrinsic types (enum, Dictionary)...etc which all resolved (well, *avoided* by not using these, not resolved), I still face one obstacle - while invoking operations and sending to WCF interface with data of appreciable length OK (by setting Binding.ReaderQuotas.MaxStringContentLength to a big number on server side), unfortunately: retrieving data > 8192 characters from WCF interface seems like a show stopper. You can't configure proxy on Excel/VBA side to override ReaderQuota.
"The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader..."
It appears to properly consume WCF from Excel/VBA, you'd need do this thru calling dotnet dll from Excel/VBA[^]. But even this strategy is unproven... for example, your dll not going to have config where you can specify endpoint ReaderQuota overrides. There's a little article on this though[^]
I Googled around no joy. Any help/suggestion? Thanks!
dev
modified 12-Oct-14 11:56am.
|
|
|
|
|
Does this have anything to do with C#?
|
|
|
|
|
Nope!
|
|
|
|
|
yea the server side of things if you have anything to offer
dev
|
|
|
|
|
We found VBA to be completely impractical, so much so that the team moved to VSTO, lost a major resource and put development back 2-3 months. It sounds like you got further down the line than we did . The whole construct became too fragile and required too much support. And getting VBA resources is almost impossible.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
VBA is extensively used in Banking industry unfortunately.
dev
|
|
|
|
|
I know.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
every bank has this problem
dev
|
|
|
|
|
I want to delete member of list with ID that user enter in textbox in form (WPF C#)
my code is:
class Course
{
public int CodeCourse { get; set; }
public string NameCourse { get; set; }
public int UnitCourse { get; set; }
}
class Education
{
public Education()
{
courses = new List<course>();
studentes = new List<student>();
}
public List<course> courses { get; set; }
public List<student> studentes { get; set; }
}
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
education = new Education();
}
private Education education;
private void AddCourse_Click(object sender, RoutedEventArgs e)
{
Course crs = new Course();
crs.CodeCourse = int.Parse(CodeCourse.Text);
crs.NameCourse = NameCourse.Text ;
crs.UnitCourse = int.Parse(UnitCourse.Text);
education.courses.Add(crs);
}
private void DeleteCourse_Click(object sender, RoutedEventArgs e)
{
//delete a member of list<course>
}
private void EditCourse_Click(object sender, RoutedEventArgs e)
{
//edit a member of list<course>
}
modified 12-Oct-14 10:58am.
|
|
|
|
|
Start by using the editor here to insert <> so your generic Lists appear correctly.
Then, study the basic operations on generic List<T> [^]:
Remove Removes the first occurrence of a specific object from the List<T>.
RemoveAll Removes all the elements that match the conditions defined by the specified predicate.
RemoveAt Removes the element at the specified index of the List<T>.
RemoveRange Removes a range of elements from the List<T>. Unless you establish a habit of using the documentation to answer very simple questions like this one, you are going to have great difficulty learning any language.
Obviously, you are going to need a Button, and to have some way to pass the information about which List Item to delete to the EventHandler assigned to that Button that actually deletes the Item from the specific instance of your List<Course> stored in the instance of the Education Class.
« There is only one difference between a madman and me. The madman thinks he is sane. I know I am mad. » Salvador Dali
|
|
|
|
|
Hi,
I am trying to use this article to generate a unique identifier:
Generating Unique Key (Finger Print) for a Computer for Licensing Purposes[^]
I created a project, the added a class called FingerPrint.cs
Now I want to know how can I get the result?
I tried:
FingerPrint finger_print = new FingerPrint();
this.Text = finger_print.ToString();
but not getting the license key!
Kindly help...
Technology News @ www.JassimRahma.com
|
|
|
|
|
first of all, these sort of questions are better posted to the article themselves - that way they get the attention (hopefully) of the author
second, where do you see ToString() defined for the fingerprint class, hmmmm ? if your answer is 'I dont'', then that's why you're not seeing a result - it looks like you need you use :-
this.Text = finger_print.Value();
|
|
|
|
|
I'm new to c# and i'm using vs 2013 and access database..my i need to do multiple update records after I filtered the records in datagridview
in my database table I have these fields ID(PK/autonumber), EID,Date,Day,Daystatus..
In my form I have a button and it's fucntion is filter by date using bidingsource.fiter and this was the result
EID------Date-----------Day---Daystatus
10175--10/11/2014---sat--------regular
10176--10/11/2014---sat--------regular
10177--10/11/2014---sat--------regular
10178--10/11/2014---sat--------regular
what I want to happen is when I click another button called "Apply to all" I want to Update all the daystatus to "Legal Holiday" of the filtered records..I know how to update one by one using simple update..but I need to do the multiple update..
I tried to make a code but it was updating all the records not the filtered only here's my code hope someone can help me
try
{
OleDbCommand command = new OleDbCommand();
connection.Open();
command.Connection = connection;
string query = "SELECT EID From EmployeeTable";
command.CommandText = query;
String a = "Legal Holiday";
using (OleDbDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
OleDbCommand command2 = new OleDbCommand();
command2.Connection = connection;
//String counter2;
//String status = "Absent";
for (var i = 0; i < 1; i++)
{
command2.Connection = connection;
string query2 = "update EmployeeData set DayStatus='" + a + "'where EID='" + reader["EID"] + "'";
command2.CommandText = query2;
command2.ExecuteNonQuery();
}
}
MessageBox.Show("Successfully");
}
connection.Close();
}
catch (Exception ex)
{
MessageBox.Show("error" + ex);
}
modified 11-Oct-14 11:09am.
|
|
|
|
|
Your code is potentially susceptible to SQL Injection[^].
NEVER use string concatenation to build a SQL query; always use a parameterized query instead.
using (var command2 = new OleDbCommand())
{
command2.Connection = connection;
command2.CommandText = "update EmployeeData set DayStatus = ? where EID = ?";
command2.Parameters.AddWithValue("@DayStatus", a);
OleDbParameter pEID = command2.Parameters.Add("@EID", OleDbType.VarChar);
while (reader.Read())
{
pEID.Value = reader["EID"];
command2.ExecuteNonQuery();
}
}
In this case, since you're filtering by date, you'll need to pass that date filter to your query:
using (var command = new OleDbCommand())
{
command.Connection = connection;
command.CommandText = "update EmployeeData set DayStatus = ? where Date = ?";
command.Parameters.AddWithValue("@DayStatus", a);
command.Parameters.AddWithValue("@Date", theFilteredDate);
command.ExecuteNonQuery();
}
If you can't pass the filter to the query, then you'll have no choice but to update each record individually.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Please provide code to create Web browser in C# without using web browser control and perform Sending HTTP request messages
and Receiving HTTP response messages,History and fav
|
|
|
|
|
Use the HttpWebRequest and HttpWebResponse classes to send/receive raw HTML. (Both are available on MSDN)
If you consider that hard, then also consider that interpreting the HTML "correctly" will be harder.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Errm. That is not the way this site works. Building a we browser from scratch is a complex task. It's highly unlikely that we are just going to give you that.
|
|
|
|
|
I want to invoke MapWindow GIS software from external .net or c# programme script give any simple examples like "hello World" and small processes like "union","intersection" etc
|
|
|
|